org.apache.maven.plugin.dependency.fromConfiguration
Class TestUnpackMojo
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
org.apache.maven.plugin.dependency.AbstractDependencyMojoTestCase
org.apache.maven.plugin.dependency.fromConfiguration.TestUnpackMojo
- All Implemented Interfaces:
- junit.framework.Test
public class TestUnpackMojo
- extends AbstractDependencyMojoTestCase
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
basedir |
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase |
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
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, fail, fail, failNotEquals, failNotSame, failSame |
TestUnpackMojo
public TestUnpackMojo()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class AbstractMojoTestCase
- Throws:
Exception
getSingleArtifactItem
public ArtifactItem getSingleArtifactItem(boolean removeVersion)
throws MojoExecutionException
- Throws:
MojoExecutionException
testGetArtifactItems
public void testGetArtifactItems()
throws MojoExecutionException
- Throws:
MojoExecutionException
assertMarkerFiles
public void assertMarkerFiles(Collection<ArtifactItem> items,
boolean exist)
assertMarkerFile
public void assertMarkerFile(boolean val,
ArtifactItem item)
testUnpackFile
public void testUnpackFile()
throws Exception
- Throws:
Exception
testSkip
public void testSkip()
throws Exception
- Throws:
Exception
testUnpackToLocation
public void testUnpackToLocation()
throws Exception
- Throws:
Exception
testMissingVersionNotFound
public void testMissingVersionNotFound()
throws Exception
- Throws:
Exception
getDependencyList
public List<Dependency> getDependencyList(ArtifactItem item)
testMissingVersionFromDependencies
public void testMissingVersionFromDependencies()
throws Exception
- Throws:
Exception
testMissingVersionFromDependenciesWithClassifier
public void testMissingVersionFromDependenciesWithClassifier()
throws Exception
- Throws:
Exception
getDependencyMgtList
public List<Dependency> getDependencyMgtList(ArtifactItem item)
testMissingVersionFromDependencyMgt
public void testMissingVersionFromDependencyMgt()
throws Exception
- Throws:
Exception
testMissingVersionFromDependencyMgtWithClassifier
public void testMissingVersionFromDependencyMgtWithClassifier()
throws Exception
- Throws:
Exception
testArtifactNotFound
public void testArtifactNotFound()
throws Exception
- Throws:
Exception
testArtifactResolutionException
public void testArtifactResolutionException()
throws Exception
- Throws:
Exception
dotestArtifactExceptions
public void dotestArtifactExceptions(boolean are,
boolean anfe)
throws Exception
- Throws:
Exception
testNoArtifactItems
public void testNoArtifactItems()
testUnpackDontOverWriteReleases
public void testUnpackDontOverWriteReleases()
throws Exception
- Throws:
Exception
testUnpackDontOverWriteSnapshots
public void testUnpackDontOverWriteSnapshots()
throws Exception
- Throws:
Exception
testUnpackOverWriteReleases
public void testUnpackOverWriteReleases()
throws Exception
- Throws:
Exception
testUnpackOverWriteSnapshot
public void testUnpackOverWriteSnapshot()
throws Exception
- Throws:
Exception
testUnpackOverWriteIfNewer
public void testUnpackOverWriteIfNewer()
throws Exception
- Throws:
Exception
assertUnpacked
public void assertUnpacked(ArtifactItem item,
boolean overWrite)
throws Exception
- Throws:
Exception
getUnpackedFile
public File getUnpackedFile(ArtifactItem item)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.