|
||||||||||
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.AbstractWarExplodedMojoTest org.apache.maven.plugin.war.WarOverlaysTest
public class WarOverlaysTest
Field Summary |
---|
Fields inherited from class org.apache.maven.plugin.war.AbstractWarExplodedMojoTest |
---|
mojo |
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 | |
---|---|
WarOverlaysTest()
|
Method Summary | |
---|---|
protected void |
assertDefaultFileContent(String testId,
File webAppDirectory,
String filePath)
Asserts that the content of an overlayed file is correct. |
protected void |
assertOverlayedFile(File webAppDirectory,
String overlayId,
String filePath)
Asserts that the content of an overlayed file is correct. |
protected ArtifactStub |
generateSimpleWarArtifactStub(String id)
|
protected File |
getPomFile()
Returns the pom configuration to use. |
protected File |
getTestDirectory()
Returns the test directory to use. |
void |
setUp()
|
void |
testCacheWithRemovedOverlay()
|
void |
testCacheWithUpdatedOverlay()
|
void |
testDefaultOverlay()
|
void |
testDefaultOverlays()
|
void |
testEnvironment()
|
void |
testNoOverlay()
|
void |
testOverlaysIncludesExcludesWithMultipleDefinitions()
|
void |
testOverlaysIncludesExcludesWithMultipleDefinitions2()
|
void |
testScenarioOneWithDefaulSettings()
Merge a dependent WAR when a file in the war source directory overrides one found in the WAR. |
void |
testScenarioOneWithFullSettings()
Tests that specifying the overlay explicitely has the same behavior as the default (i.e. |
void |
testScenarioOneWithOverlaySettings()
Tests that specifying the overlay explicitely has the same behavior as the default (i.e. |
Methods inherited from class org.apache.maven.plugin.war.AbstractWarExplodedMojoTest |
---|
assertCustomContent, assertDefaultContent, assertWebAppContent, assertWebXml, cleanDirectory, setUpMojo, setUpMojo |
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 WarOverlaysTest()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class AbstractWarExplodedMojoTest
Exception
protected File getPomFile()
AbstractWarExplodedMojoTest
getPomFile
in class AbstractWarExplodedMojoTest
protected File getTestDirectory()
AbstractWarExplodedMojoTest
getTestDirectory
in class AbstractWarExplodedMojoTest
public void testEnvironment() throws Exception
Exception
public void testNoOverlay() throws Exception
Exception
public void testDefaultOverlay() throws Exception
Exception
public void testDefaultOverlays() throws Exception
Exception
public void testScenarioOneWithDefaulSettings() throws Exception
Exception
- if any error occurspublic void testScenarioOneWithOverlaySettings() throws Exception
Exception
- if an error occurspublic void testScenarioOneWithFullSettings() throws Exception
Exception
- if an error occurspublic void testOverlaysIncludesExcludesWithMultipleDefinitions() throws Exception
Exception
public void testOverlaysIncludesExcludesWithMultipleDefinitions2() throws Exception
Exception
public void testCacheWithUpdatedOverlay() throws Exception
Exception
public void testCacheWithRemovedOverlay() throws Exception
Exception
protected void assertOverlayedFile(File webAppDirectory, String overlayId, String filePath) throws IOException
webAppDirectory
- the webapp directoryoverlayId
- the id of the overlayfilePath
- the relative path
IOException
- if an error occurred while reading the filesprotected void assertDefaultFileContent(String testId, File webAppDirectory, String filePath) throws Exception
testId
- te id of the testwebAppDirectory
- the webapp directoryfilePath
- the relative path
IOException
- if an error occurred while reading the files
Exception
protected ArtifactStub generateSimpleWarArtifactStub(String id) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |