public abstract class AbstractWarExplodedMojoTest extends AbstractWarMojoTest
| Modifier and Type | Field and Description |
|---|---|
protected WarExplodedMojo |
mojo |
MANIFEST_PATH, OVERLAYS_ROOT_DIR, OVERLAYS_TEMP_DIR| Constructor and Description |
|---|
AbstractWarExplodedMojoTest() |
| Modifier and Type | Method and Description |
|---|---|
protected List<File> |
assertCustomContent(File webAppDirectory,
String[] filePaths,
String customMessage)
Asserts custom content of the war based on the specified webapp directory.
|
protected List<File> |
assertDefaultContent(File webAppDirectory)
Asserts the default content of the war based on the specified webapp directory.
|
protected void |
assertWebAppContent(File webAppDirectory,
List<File> expectedFiles,
FileFilter filter)
Asserts that the webapp contains only the specified files.
|
protected List<File> |
assertWebXml(File webAppDirectory)
Asserts the web.xml file of the war based on the specified webapp directory.
|
protected void |
cleanDirectory(File directory)
Cleans up a directory.
|
protected abstract File |
getPomFile()
Returns the pom configuration to use.
|
protected abstract File |
getTestDirectory()
Returns the test directory to use.
|
void |
setUp() |
protected File |
setUpMojo(String testId,
ArtifactStub[] artifactStubs)
Configures the exploded mojo for the specified test.
|
protected File |
setUpMojo(String testId,
ArtifactStub[] artifactStubs,
String[] sourceFiles)
Configures the exploded mojo for the specified test.
|
buildWarOverlayStub, configureMojo, createArchive, createClassesDir, createDir, createFile, createFile, createWebAppSource, createWebAppSource, createXMLConfigDir, generateFullOverlayWar, getOverlayFile, getWebAppSourceconfigureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObjectcreateContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDownassertEquals, 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, toStringprotected WarExplodedMojo mojo
public void setUp()
throws Exception
setUp in class AbstractMojoTestCaseExceptionprotected abstract File getPomFile()
protected abstract File getTestDirectory()
getTestDirectory in class AbstractWarMojoTestprotected File setUpMojo(String testId, ArtifactStub[] artifactStubs, String[] sourceFiles) throws Exception
testId - the id of the testartifactStubs - the dependencies (may be null)sourceFiles - the source files to create (may be null)Exception - if an error occurs while configuring the mojoprotected File setUpMojo(String testId, ArtifactStub[] artifactStubs) throws Exception
testId - the id of the testartifactStubs - the dependencies (may be null)Exception - if an error occurs while configuring the mojoprotected void cleanDirectory(File directory) throws IOException
directory - the directory to removeIOException - if an error occurred while removing the directoryprotected List<File> assertDefaultContent(File webAppDirectory)
webAppDirectory - the webapp directoryprotected List<File> assertWebXml(File webAppDirectory)
webAppDirectory - the webapp directoryprotected List<File> assertCustomContent(File webAppDirectory, String[] filePaths, String customMessage)
webAppDirectory - the webapp directoryfilePaths - an array of file paths relative to the webapp directorycustomMessage - a custom message if an assertion failsprotected void assertWebAppContent(File webAppDirectory, List<File> expectedFiles, FileFilter filter)
webAppDirectory - the webapp directoryexpectedFiles - the expected filesfilter - an optional filter to ignore some resourcesCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.