org.apache.maven.plugin.war
Class WarMojoTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.plugin.testing.AbstractMojoTestCase
                  extended by org.apache.maven.plugin.war.AbstractWarMojoTest
                      extended by org.apache.maven.plugin.war.WarMojoTest
All Implemented Interfaces:
junit.framework.Test

public class WarMojoTest
extends AbstractWarMojoTest

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  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()
           
 
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
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

WarMojoTest

public WarMojoTest()
Method Detail

getTestDirectory

protected File getTestDirectory()
Specified by:
getTestDirectory in class AbstractWarMojoTest

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
Throws:
Exception

testEnvironment

public void testEnvironment()
                     throws Exception
Throws:
Exception

testSimpleWar

public void testSimpleWar()
                   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


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.