|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
org.apache.maven.plugin.ejb.EjbMojoTest
EJB plugin Test Case
Field Summary |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
basedir, container |
Constructor Summary | |
EjbMojoTest()
|
Method Summary | |
protected void |
assertClientJarContent(org.apache.maven.project.MavenProject project,
java.lang.String[] expectedFiles,
java.lang.String[] unexpectedFiles)
|
protected void |
assertJarContent(org.apache.maven.project.MavenProject project,
java.lang.String[] expectedFiles,
java.lang.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,
java.lang.String classifier)
|
protected MavenProjectResourcesStub |
createTestProject(java.lang.String testName)
|
protected EjbMojo |
lookupMojo()
|
protected EjbMojo |
lookupMojoWithDefaultSettings(org.apache.maven.project.MavenProject project)
|
protected EjbMojo |
lookupMojoWithSettings(org.apache.maven.project.MavenProject project,
java.util.LinkedList clientIncludes,
java.util.LinkedList clientExcludes,
java.util.LinkedList 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 |
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase |
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObject |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
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, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EjbMojoTest()
Method Detail |
public void setUp() throws java.lang.Exception
java.lang.Exception
public void tearDown() throws java.lang.Exception
java.lang.Exception
public void testTestEnvironment() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testDefaultWithoutClientJar() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testClassifiedJarWithoutClientJar() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testDefaultWithClientJar() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testClassifiedJarWithClientJar() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testDefaultInclusionsExclusions() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testClientJarDefaultInclusionsExclusions() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testClientJarInclusions() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testClientJarExclusions() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testMainJarExclusions() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testClientJarInclusionsWithSubPackage() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testClientJarExclusionsWithEmptyPackage() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testEjbComplianceVersionTwoDotOneWithoutDescriptor() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testEjbComplianceVersionThreeWithDescriptor() throws java.lang.Exception
java.lang.Exception
- if any exception occurspublic void testEjbCompliance_3_0_WithoutDescriptor() throws java.lang.Exception
java.lang.Exception
- if any exception occursprotected EjbMojo lookupMojo() throws java.lang.Exception
java.lang.Exception
protected MavenProjectResourcesStub createTestProject(java.lang.String testName) throws java.lang.Exception
java.lang.Exception
protected void setupDefaultProject(MavenProjectResourcesStub project) throws java.lang.Exception
java.lang.Exception
protected EjbMojo lookupMojoWithSettings(org.apache.maven.project.MavenProject project, java.util.LinkedList clientIncludes, java.util.LinkedList clientExcludes, java.util.LinkedList excludes) throws java.lang.Exception
java.lang.Exception
protected EjbMojo lookupMojoWithDefaultSettings(org.apache.maven.project.MavenProject project) throws java.lang.Exception
java.lang.Exception
protected void assertJarCreation(org.apache.maven.project.MavenProject project, boolean ejbJarCreated, boolean ejbClientJarCreated, java.lang.String classifier)
protected void assertJarCreation(org.apache.maven.project.MavenProject project, boolean ejbJarCreated, boolean ejbClientJarCreated)
protected void assertJarContent(org.apache.maven.project.MavenProject project, java.lang.String[] expectedFiles, java.lang.String[] unexpectedFiles) throws java.io.IOException
java.io.IOException
protected void assertClientJarContent(org.apache.maven.project.MavenProject project, java.lang.String[] expectedFiles, java.lang.String[] unexpectedFiles) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |