public class WarMojoTest extends AbstractWarMojoTest
MANIFEST_PATH, OVERLAYS_ROOT_DIR, OVERLAYS_TEMP_DIR
Constructor and Description |
---|
WarMojoTest() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,JarEntry> |
assertJarContent(File expectedJarFile,
String[] files,
String[] filesContent) |
protected Map<String,JarEntry> |
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 |
testFailOnMissingWebXmlNotSpecifiedAndServlet30NotUsed() |
void |
testFailOnMissingWebXmlNotSpecifiedAndServlet30Used() |
void |
testFailOnMissingWebXmlTrue() |
void |
testMetaInfContent() |
void |
testMetaInfContentWithContainerConfig() |
void |
testNotPrimaryArtifact() |
void |
testPrimaryArtifact() |
void |
testSimpleWar() |
void |
testSimpleWarPackagingExcludeWithIncludesRegEx() |
buildWarOverlayStub, configureMojo, createArchive, createClassesDir, createDir, createFile, createFile, createWebAppSource, createWebAppSource, createXMLConfigDir, generateFullOverlayWar, getOverlayFile, getWebAppSource
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown
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
protected File getTestDirectory()
getTestDirectory
in class AbstractWarMojoTest
public void setUp() throws Exception
setUp
in class AbstractMojoTestCase
Exception
public void testSimpleWarPackagingExcludeWithIncludesRegEx() throws Exception
Exception
public void testMetaInfContentWithContainerConfig() throws Exception
Exception
public void testFailOnMissingWebXmlFalse() throws Exception
Exception
public void testFailOnMissingWebXmlTrue() throws Exception
Exception
public void testFailOnMissingWebXmlNotSpecifiedAndServlet30Used() throws Exception
Exception
public void testFailOnMissingWebXmlNotSpecifiedAndServlet30NotUsed() throws Exception
Exception
public void testAttachClassesWithCustomClassifier() throws Exception
Exception
protected Map<String,JarEntry> assertJarContent(File expectedJarFile, String[] files, String[] filesContent) throws IOException
IOException
protected Map<String,JarEntry> assertJarContent(File expectedJarFile, String[] files, String[] filesContent, String[] mustNotBeInJar) throws IOException
IOException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.