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
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.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 org.apache.maven.plugin.testing.AbstractMojoTestCase
- Throws:
Exception
getSingleArtifactItem
public ArtifactItem getSingleArtifactItem(boolean removeVersion)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
testGetArtifactItems
public void testGetArtifactItems()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
assertMarkerFiles
public void assertMarkerFiles(Collection<ArtifactItem> items,
boolean exist)
assertMarkerFile
public void assertMarkerFile(boolean val,
ArtifactItem item)
testUnpackFile
public void testUnpackFile()
throws IOException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
testSkip
public void testSkip()
throws IOException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
testUnpackToLocation
public void testUnpackToLocation()
throws IOException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
testMissingVersionNotFound
public void testMissingVersionNotFound()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getDependencyList
public List<org.apache.maven.model.Dependency> getDependencyList(ArtifactItem item)
testMissingVersionFromDependencies
public void testMissingVersionFromDependencies()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
testMissingVersionFromDependenciesWithClassifier
public void testMissingVersionFromDependenciesWithClassifier()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getDependencyMgtList
public List<org.apache.maven.model.Dependency> getDependencyMgtList(ArtifactItem item)
testMissingVersionFromDependencyMgt
public void testMissingVersionFromDependencyMgt()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
testMissingVersionFromDependencyMgtWithClassifier
public void testMissingVersionFromDependencyMgtWithClassifier()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.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,
org.apache.maven.plugin.MojoExecutionException,
InterruptedException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException
testUnpackDontOverWriteSnapshots
public void testUnpackDontOverWriteSnapshots()
throws IOException,
org.apache.maven.plugin.MojoExecutionException,
InterruptedException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException
testUnpackOverWriteReleases
public void testUnpackOverWriteReleases()
throws IOException,
org.apache.maven.plugin.MojoExecutionException,
InterruptedException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException
testUnpackOverWriteSnapshot
public void testUnpackOverWriteSnapshot()
throws IOException,
org.apache.maven.plugin.MojoExecutionException,
InterruptedException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException
testUnpackOverWriteIfNewer
public void testUnpackOverWriteIfNewer()
throws IOException,
org.apache.maven.plugin.MojoExecutionException,
InterruptedException
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException
assertUnpacked
public void assertUnpacked(ArtifactItem item,
boolean overWrite)
throws InterruptedException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
InterruptedException
org.apache.maven.plugin.MojoExecutionException
getUnpackedFile
public File getUnpackedFile(ArtifactItem item)
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.