|
||||||||||
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.WarDependenciesAnalysisTest
public class WarDependenciesAnalysisTest
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 | |
---|---|
WarDependenciesAnalysisTest()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.apache.maven.plugin.war.AbstractWarExplodedMojoTest |
---|
assertCustomContent, assertDefaultContent, assertWebAppContent, assertWebXml, cleanDirectory, setUp, 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 WarDependenciesAnalysisTest()
Method Detail |
---|
protected File getPomFile()
AbstractWarExplodedMojoTest
getPomFile
in class AbstractWarExplodedMojoTest
protected File getTestDirectory()
AbstractWarExplodedMojoTest
getTestDirectory
in class AbstractWarExplodedMojoTest
public void testNoChange() throws Exception
Exception
public void testRemovedDependency() throws Exception
Exception
public void testDependencyWithUpdatedVersion() throws Exception
Exception
public void testDependencyNowProvided() throws Exception
Exception
protected void doTestTwiceWithUpdatedDependency(String testId, ArtifactStub[] firstStubs, ArtifactStub[] secondStubs, String[] firstCustomContent, String[] secondCustomContent) throws Exception
Exception
protected 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 mojo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |