public class EjbMojoTest extends AbstractMojoTestCase
Constructor and Description |
---|
EjbMojoTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertClientJarContent(MavenProject project,
String[] expectedFiles,
String[] unexpectedFiles) |
protected void |
assertJarContent(MavenProject project,
String[] expectedFiles,
String[] unexpectedFiles) |
protected void |
assertJarCreation(MavenProject project,
boolean ejbJarCreated,
boolean ejbClientJarCreated) |
protected void |
assertJarCreation(MavenProject project,
boolean ejbJarCreated,
boolean ejbClientJarCreated,
String classifier) |
protected MavenProjectResourcesStub |
createTestProject(String testName) |
protected org.apache.maven.plugins.ejb.EjbMojo |
lookupMojo() |
protected org.apache.maven.plugins.ejb.EjbMojo |
lookupMojoWithDefaultSettings(MavenProject project) |
protected org.apache.maven.plugins.ejb.EjbMojo |
lookupMojoWithSettings(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 |
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 occursprotected org.apache.maven.plugins.ejb.EjbMojo lookupMojo() throws Exception
Exception
protected MavenProjectResourcesStub createTestProject(String testName) throws Exception
Exception
protected void setupDefaultProject(MavenProjectResourcesStub project) throws Exception
Exception
protected org.apache.maven.plugins.ejb.EjbMojo lookupMojoWithSettings(MavenProject project, List<String> clientIncludes, List<String> clientExcludes, List<String> excludes) throws Exception
Exception
protected org.apache.maven.plugins.ejb.EjbMojo lookupMojoWithDefaultSettings(MavenProject project) throws Exception
Exception
protected void assertJarCreation(MavenProject project, boolean ejbJarCreated, boolean ejbClientJarCreated, String classifier)
protected void assertJarCreation(MavenProject project, boolean ejbJarCreated, boolean ejbClientJarCreated)
protected void assertJarContent(MavenProject project, String[] expectedFiles, String[] unexpectedFiles) throws IOException
IOException
protected void assertClientJarContent(MavenProject project, String[] expectedFiles, String[] unexpectedFiles) throws IOException
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.