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:
- Test
public class TestUnpackMojo
- extends AbstractDependencyMojoTestCase
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
basedir, container |
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 |
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 org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem getSingleArtifactItem(boolean removeVersion)
throws MojoExecutionException
- Throws:
MojoExecutionException
testGetArtifactItems
public void testGetArtifactItems()
throws MojoExecutionException
- Throws:
MojoExecutionException
assertMarkerFiles
public void assertMarkerFiles(Collection<org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem> items,
boolean exist)
assertMarkerFile
public void assertMarkerFile(boolean val,
org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem item)
testUnpackFile
public void testUnpackFile()
throws IOException,
MojoExecutionException
- Throws:
IOException
MojoExecutionException
testSkip
public void testSkip()
throws IOException,
MojoExecutionException
- Throws:
IOException
MojoExecutionException
testUnpackToLocation
public void testUnpackToLocation()
throws IOException,
MojoExecutionException
- Throws:
IOException
MojoExecutionException
testMissingVersionNotFound
public void testMissingVersionNotFound()
throws MojoExecutionException
- Throws:
MojoExecutionException
getDependencyList
public List<Dependency> getDependencyList(org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem item)
testMissingVersionFromDependencies
public void testMissingVersionFromDependencies()
throws MojoExecutionException
- Throws:
MojoExecutionException
testMissingVersionFromDependenciesWithClassifier
public void testMissingVersionFromDependenciesWithClassifier()
throws MojoExecutionException
- Throws:
MojoExecutionException
getDependencyMgtList
public List<Dependency> getDependencyMgtList(org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem item)
testMissingVersionFromDependencyMgt
public void testMissingVersionFromDependencyMgt()
throws MojoExecutionException
- Throws:
MojoExecutionException
testMissingVersionFromDependencyMgtWithClassifier
public void testMissingVersionFromDependencyMgtWithClassifier()
throws MojoExecutionException
- Throws:
MojoExecutionException
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 IOException,
MojoExecutionException,
InterruptedException
- Throws:
IOException
MojoExecutionException
InterruptedException
testUnpackDontOverWriteSnapshots
public void testUnpackDontOverWriteSnapshots()
throws IOException,
MojoExecutionException,
InterruptedException
- Throws:
IOException
MojoExecutionException
InterruptedException
testUnpackOverWriteReleases
public void testUnpackOverWriteReleases()
throws IOException,
MojoExecutionException,
InterruptedException
- Throws:
IOException
MojoExecutionException
InterruptedException
testUnpackOverWriteSnapshot
public void testUnpackOverWriteSnapshot()
throws IOException,
MojoExecutionException,
InterruptedException
- Throws:
IOException
MojoExecutionException
InterruptedException
testUnpackOverWriteIfNewer
public void testUnpackOverWriteIfNewer()
throws IOException,
MojoExecutionException,
InterruptedException
- Throws:
IOException
MojoExecutionException
InterruptedException
assertUnpacked
public void assertUnpacked(org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem item,
boolean overWrite)
throws InterruptedException,
MojoExecutionException
- Throws:
InterruptedException
MojoExecutionException
getUnpackedFile
public File getUnpackedFile(org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem item)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.