|
||||||||||
| 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
public class 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,
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,
LinkedList clientIncludes,
LinkedList clientExcludes,
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 Exception
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCaseException
public void tearDown()
throws Exception
tearDown in class PlexusTestCaseException
public void testTestEnvironment()
throws Exception
Exception - if any exception occurs
public void testDefaultWithoutClientJar()
throws Exception
Exception - if any exception occurs
public void testClassifiedJarWithoutClientJar()
throws Exception
Exception - if any exception occurs
public void testDefaultWithClientJar()
throws Exception
Exception - if any exception occurs
public void testClassifiedJarWithClientJar()
throws Exception
Exception - if any exception occurs
public void testDefaultInclusionsExclusions()
throws Exception
Exception - if any exception occurs
public void testClientJarDefaultInclusionsExclusions()
throws Exception
Exception - if any exception occurs
public void testClientJarInclusions()
throws Exception
Exception - if any exception occurs
public void testClientJarExclusions()
throws Exception
Exception - if any exception occurs
public void testMainJarExclusions()
throws Exception
Exception - if any exception occurs
public void testClientJarInclusionsWithSubPackage()
throws Exception
Exception - if any exception occurs
public void testClientJarExclusionsWithEmptyPackage()
throws Exception
Exception - if any exception occurs
public void testEjbComplianceVersionTwoDotOneWithoutDescriptor()
throws Exception
Exception - if any exception occurs
public void testEjbComplianceVersionThreeWithDescriptor()
throws Exception
Exception - if any exception occurs
public void testEjbCompliance_3_0_WithoutDescriptor()
throws Exception
Exception - if any exception occurs
protected EjbMojo lookupMojo()
throws Exception
Exception
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,
LinkedList clientIncludes,
LinkedList clientExcludes,
LinkedList 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||