org.apache.maven.plugin.dependency.fromConfiguration
Class TestCopyMojo
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.TestCopyMojo
- All Implemented Interfaces:
- junit.framework.Test
public class TestCopyMojo
- 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 |
TestCopyMojo
public TestCopyMojo()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class AbstractMojoTestCase
- Throws:
Exception
getSingleArtifactItem
public ArtifactItem getSingleArtifactItem(boolean removeVersion,
boolean useBaseVersion)
throws MojoExecutionException
- Throws:
MojoExecutionException
testGetArtifactItems
public void testGetArtifactItems()
throws MojoExecutionException
- Throws:
MojoExecutionException
assertFilesExist
public void assertFilesExist(Collection<ArtifactItem> items,
boolean exist)
assertFileExists
public void assertFileExists(ArtifactItem item,
boolean exist)
testMojoDefaults
public void testMojoDefaults()
testCopyFile
public void testCopyFile()
throws Exception
- Throws:
Exception
testCopyFileWithBaseVersion
public void testCopyFileWithBaseVersion()
throws Exception
- Throws:
Exception
testSkip
public void testSkip()
throws Exception
- Throws:
Exception
testCopyFileNoOverwrite
public void testCopyFileNoOverwrite()
throws Exception
- Throws:
Exception
testCopyToLocation
public void testCopyToLocation()
throws Exception
- Throws:
Exception
testCopyStripVersionSetInMojo
public void testCopyStripVersionSetInMojo()
throws Exception
- Throws:
Exception
testNonClassifierStrip
public void testNonClassifierStrip()
throws Exception
- Throws:
Exception
testNonClassifierNoStrip
public void testNonClassifierNoStrip()
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
testMissingVersionFromDependenciesLooseMatch
public void testMissingVersionFromDependenciesLooseMatch()
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
testMissingVersionFromDependencyMgtLooseMatch
public void testMissingVersionFromDependencyMgtLooseMatch()
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()
testCopyDontOverWriteReleases
public void testCopyDontOverWriteReleases()
throws Exception
- Throws:
Exception
testCopyDontOverWriteSnapshots
public void testCopyDontOverWriteSnapshots()
throws Exception
- Throws:
Exception
testCopyOverWriteReleases
public void testCopyOverWriteReleases()
throws Exception
- Throws:
Exception
testCopyOverWriteSnapshot
public void testCopyOverWriteSnapshot()
throws Exception
- Throws:
Exception
testCopyOverWriteIfNewer
public void testCopyOverWriteIfNewer()
throws Exception
- Throws:
Exception
testCopyFileWithOverideLocalRepo
public void testCopyFileWithOverideLocalRepo()
throws Exception
- Throws:
Exception
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.