public class WarDependenciesAnalysisTest extends AbstractWarExplodedMojoTest
mojoMANIFEST_PATH, OVERLAYS_ROOT_DIR, OVERLAYS_TEMP_DIR| Constructor and Description |
|---|
WarDependenciesAnalysisTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTestTwiceWithUpdatedDependency(String testId,
ArtifactStub[] firstStubs,
ArtifactStub[] secondStubs,
String[] firstCustomContent,
String[] secondCustomContent) |
protected File |
getPomFile()
Returns the pom configuration to use.
|
protected File |
getTestDirectory()
Returns the test directory to use.
|
protected File |
setUpMojoWithCache(String testId,
ArtifactStub[] artifactStubs)
Configures the exploded mojo for the specified test.
|
void |
testDependencyNowProvided() |
void |
testDependencyWithUpdatedVersion() |
void |
testNoChange() |
void |
testRemovedDependency() |
assertCustomContent, assertDefaultContent, assertWebAppContent, assertWebXml, cleanDirectory, setUp, setUpMojo, setUpMojobuildWarOverlayStub, 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 File getPomFile()
AbstractWarExplodedMojoTestgetPomFile in class AbstractWarExplodedMojoTestprotected File getTestDirectory()
AbstractWarExplodedMojoTestgetTestDirectory in class AbstractWarExplodedMojoTestpublic void testDependencyWithUpdatedVersion()
throws Exception
Exceptionpublic void testDependencyNowProvided()
throws Exception
Exceptionprotected void doTestTwiceWithUpdatedDependency(String testId, ArtifactStub[] firstStubs, ArtifactStub[] secondStubs, String[] firstCustomContent, String[] secondCustomContent) throws Exception
Exceptionprotected File setUpMojoWithCache(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 mojoCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.