org.apache.maven.plugin.war
Class WarMojoTest
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
- All Implemented Interfaces:
- Test
public class WarMojoTest
- extends AbstractWarMojoTest
comprehensive test on buildExplodedWebApp is done on WarExplodedMojoTest
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
basedir, container |
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.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, failNotEquals, failNotSame, failSame, format |
WarMojoTest
public WarMojoTest()
getTestDirectory
protected File getTestDirectory()
- Specified by:
getTestDirectory
in class AbstractWarMojoTest
setUp
public void setUp()
throws Exception
- Overrides:
setUp
in class AbstractMojoTestCase
- Throws:
Exception
testEnvironment
public void testEnvironment()
throws Exception
- Throws:
Exception
testSimpleWar
public void testSimpleWar()
throws Exception
- Throws:
Exception
testSimpleWarPackagingExcludeWithIncludesRegEx
public void testSimpleWarPackagingExcludeWithIncludesRegEx()
throws Exception
- Throws:
Exception
testClassifier
public void testClassifier()
throws Exception
- Throws:
Exception
testPrimaryArtifact
public void testPrimaryArtifact()
throws Exception
- Throws:
Exception
testNotPrimaryArtifact
public void testNotPrimaryArtifact()
throws Exception
- Throws:
Exception
testMetaInfContent
public void testMetaInfContent()
throws Exception
- Throws:
Exception
testMetaInfContentWithContainerConfig
public void testMetaInfContentWithContainerConfig()
throws Exception
- Throws:
Exception
testFailOnMissingWebXmlFalse
public void testFailOnMissingWebXmlFalse()
throws Exception
- Throws:
Exception
testFailOnMissingWebXmlTrue
public void testFailOnMissingWebXmlTrue()
throws Exception
- Throws:
Exception
testAttachClasses
public void testAttachClasses()
throws Exception
- Throws:
Exception
testAttachClassesWithCustomClassifier
public void testAttachClassesWithCustomClassifier()
throws Exception
- Throws:
Exception
assertJarContent
protected Map assertJarContent(File expectedJarFile,
String[] files,
String[] filesContent)
throws IOException
- Throws:
IOException
assertJarContent
protected Map assertJarContent(File expectedJarFile,
String[] files,
String[] filesContent,
String[] mustNotBeInJar)
throws IOException
- Throws:
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.