public class EjbMojoTest extends 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) |
void |
setUp() |
protected void |
setupDefaultProject(MavenProjectResourcesStub project) |
void |
tearDown() |
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 |
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
|
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObjectcreateContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, releasecountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, fail, fail, failNotEquals, failNotSame, failSamepublic void setUp()
throws Exception
setUp in class AbstractMojoTestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class org.codehaus.plexus.PlexusTestCaseExceptionpublic 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 occursprotected MavenProjectResourcesStub createTestProject(String testName) throws Exception
Exceptionprotected void setupDefaultProject(MavenProjectResourcesStub project) throws Exception
Exceptionprotected EjbMojo lookupMojoWithSettings(org.apache.maven.project.MavenProject project, List<String> clientIncludes, List<String> clientExcludes, List<String> excludes) throws Exception
Exceptionprotected EjbMojo lookupMojoWithDefaultSettings(org.apache.maven.project.MavenProject project) throws Exception
Exceptionprotected 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
IOExceptionprotected void assertClientJarContent(org.apache.maven.project.MavenProject project,
String[] expectedFiles,
String[] unexpectedFiles)
throws IOException
IOExceptionCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.