|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.codehaus.plexus.PlexusTestCase org.apache.maven.plugin.testing.AbstractMojoTestCase org.apache.maven.plugin.war.AbstractWarMojoTest org.apache.maven.plugin.war.WarMojoTest
public class WarMojoTest
comprehensive test on buildExplodedWebApp is done on WarExplodedMojoTest
Field Summary |
---|
Fields inherited from class org.apache.maven.plugin.war.AbstractWarMojoTest |
---|
MANIFEST_PATH, OVERLAYS_ROOT_DIR, OVERLAYS_TEMP_DIR |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
basedir, container |
Constructor Summary | |
---|---|
WarMojoTest()
|
Method Summary | |
---|---|
protected Map |
assertJarContent(File expectedJarFile,
String[] files,
String[] filesContent)
|
protected Map |
assertJarContent(File expectedJarFile,
String[] files,
String[] filesContent,
String[] mustNotBeInJar)
|
protected File |
getTestDirectory()
|
void |
setUp()
|
void |
testAttachClasses()
|
void |
testAttachClassesWithCustomClassifier()
|
void |
testClassifier()
|
void |
testEnvironment()
|
void |
testFailOnMissingWebXmlFalse()
|
void |
testFailOnMissingWebXmlTrue()
|
void |
testMetaInfContent()
|
void |
testMetaInfContentWithContainerConfig()
|
void |
testNotPrimaryArtifact()
|
void |
testPrimaryArtifact()
|
void |
testSimpleWar()
|
void |
testSimpleWarPackagingExcludeWithIncludesRegEx()
|
Methods inherited from class org.apache.maven.plugin.war.AbstractWarMojoTest |
---|
buildWarOverlayStub, configureMojo, createArchive, createClassesDir, createDir, createFile, createFile, createWebAppSource, createWebAppSource, createXMLConfigDir, generateFullOverlayWar, getOverlayFile, getWebAppSource |
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, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WarMojoTest()
Method Detail |
---|
protected File getTestDirectory()
getTestDirectory
in class AbstractWarMojoTest
public void setUp() throws Exception
setUp
in class AbstractMojoTestCase
Exception
public void testEnvironment() throws Exception
Exception
public void testSimpleWar() throws Exception
Exception
public void testSimpleWarPackagingExcludeWithIncludesRegEx() throws Exception
Exception
public void testClassifier() throws Exception
Exception
public void testPrimaryArtifact() throws Exception
Exception
public void testNotPrimaryArtifact() throws Exception
Exception
public void testMetaInfContent() throws Exception
Exception
public void testMetaInfContentWithContainerConfig() throws Exception
Exception
public void testFailOnMissingWebXmlFalse() throws Exception
Exception
public void testFailOnMissingWebXmlTrue() throws Exception
Exception
public void testAttachClasses() throws Exception
Exception
public void testAttachClassesWithCustomClassifier() throws Exception
Exception
protected Map assertJarContent(File expectedJarFile, String[] files, String[] filesContent) throws IOException
IOException
protected Map assertJarContent(File expectedJarFile, String[] files, String[] filesContent, String[] mustNotBeInJar) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |