public class EjbMojoTest
extends org.apache.maven.plugin.testing.AbstractMojoTestCase
Constructor and Description |
---|
EjbMojoTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertClientJarContent(org.apache.maven.project.MavenProject project,
String[] expectedFiles,
String[] unexpectedFiles) |
protected void |
assertJarContent(org.apache.maven.project.MavenProject project,
String[] expectedFiles,
String[] unexpectedFiles) |
protected void |
assertJarCreation(org.apache.maven.project.MavenProject project,
boolean ejbJarCreated,
boolean ejbClientJarCreated) |
protected void |
assertJarCreation(org.apache.maven.project.MavenProject project,
boolean ejbJarCreated,
boolean ejbClientJarCreated,
String classifier) |
protected MavenProjectResourcesStub |
createTestProject(String testName) |
protected EjbMojo |
lookupMojo() |
protected EjbMojo |
lookupMojoWithDefaultSettings(org.apache.maven.project.MavenProject project) |
protected EjbMojo |
lookupMojoWithSettings(org.apache.maven.project.MavenProject project,
List<String> clientIncludes,
List<String> clientExcludes,
List<String> excludes) |
protected void |
setupDefaultProject(MavenProjectResourcesStub project) |
void |
testClassifiedJarWithClientJar()
Classified jar creation test with client jar.
|
void |
testClassifiedJarWithoutClientJar()
Classified jar creation test.
|
void |
testClientJarDefaultInclusionsExclusions()
Client jar default inclusion and exclusion test.
|
void |
testClientJarExclusions()
Client jar exclusions test.
|
void |
testClientJarExclusionsWithEmptyPackage()
Client jar exclusions test that leaves an empty package.
|
void |
testClientJarInclusions()
Client jar inclusion test.
|
void |
testClientJarInclusionsWithSubPackage()
Client jar inclusion test with a sub-package.
|
void |
testDefaultInclusionsExclusions()
Default ejb jar inclusion and exclusion test.
|
void |
testDefaultWithClientJar()
Basic jar creation test with client jar.
|
void |
testDefaultWithoutClientJar()
Basic jar creation test.
|
void |
testEjb1VersionValidation() |
void |
testEjb2VersionValidation() |
void |
testEjb3VersionValidation() |
void |
testEjb4VersionValidation() |
void |
testEjbCompliance_3_0_WithoutDescriptor()
Tests if the jar is created under EJB version 3.0 without deployment descriptor present.
|
void |
testEjbComplianceVersionThreeWithDescriptor()
Tests if the jar is created under EJB version 3.0 with deployment descriptor present.
|
void |
testEjbComplianceVersionTwoDotOneWithoutDescriptor()
Tests if the mojo throws an exception when the EJB version is < 3.0 and no deployment descriptor is present.
|
void |
testMainJarExclusions()
Main jar exclusions test.
|
void |
testTestEnvironment()
check test environment
|
addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setUp, setupContainer, setupContainerConfiguration, setVariableValueToObject
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown, teardownContainer
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public void testTestEnvironment() throws Exception
Exception
- if any exception occurspublic void testDefaultWithoutClientJar() throws Exception
Exception
- if any exception occurspublic void testClassifiedJarWithoutClientJar() throws Exception
Exception
- if any exception occurspublic void testDefaultWithClientJar() throws Exception
Exception
- if any exception occurspublic void testClassifiedJarWithClientJar() throws Exception
Exception
- if any exception occurspublic void testDefaultInclusionsExclusions() throws Exception
Exception
- if any exception occurspublic void testClientJarDefaultInclusionsExclusions() throws Exception
Exception
- if any exception occurspublic void testClientJarInclusions() throws Exception
Exception
- if any exception occurspublic void testClientJarExclusions() throws Exception
Exception
- if any exception occurspublic void testMainJarExclusions() throws Exception
Exception
- if any exception occurspublic void testClientJarInclusionsWithSubPackage() throws Exception
Exception
- if any exception occurspublic void testClientJarExclusionsWithEmptyPackage() throws Exception
Exception
- if any exception occurspublic void testEjbComplianceVersionTwoDotOneWithoutDescriptor() throws Exception
Exception
- if any exception occurspublic void testEjbComplianceVersionThreeWithDescriptor() throws Exception
Exception
- if any exception occurspublic void testEjbCompliance_3_0_WithoutDescriptor() throws Exception
Exception
- if any exception occurspublic void testEjb1VersionValidation()
public void testEjb2VersionValidation() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testEjb3VersionValidation() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testEjb4VersionValidation() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected MavenProjectResourcesStub createTestProject(String testName) throws Exception
Exception
protected void setupDefaultProject(MavenProjectResourcesStub project) throws Exception
Exception
protected EjbMojo lookupMojoWithSettings(org.apache.maven.project.MavenProject project, List<String> clientIncludes, List<String> clientExcludes, List<String> excludes) throws Exception
Exception
protected EjbMojo lookupMojoWithDefaultSettings(org.apache.maven.project.MavenProject project) throws Exception
Exception
protected void assertJarCreation(org.apache.maven.project.MavenProject project, boolean ejbJarCreated, boolean ejbClientJarCreated, String classifier)
protected void assertJarCreation(org.apache.maven.project.MavenProject project, boolean ejbJarCreated, boolean ejbClientJarCreated)
protected void assertJarContent(org.apache.maven.project.MavenProject project, String[] expectedFiles, String[] unexpectedFiles) throws IOException
IOException
protected void assertClientJarContent(org.apache.maven.project.MavenProject project, String[] expectedFiles, String[] unexpectedFiles) throws IOException
IOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.