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: 
 - Test
 
public class TestCopyMojo
- 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 | 
 
 
TestCopyMojo
public TestCopyMojo()
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
 
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 IOException,
                         MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
testSkip
public void testSkip()
              throws IOException,
                     MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
testCopyFileNoOverwrite
public void testCopyFileNoOverwrite()
                             throws IOException,
                                    MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
testCopyToLocation
public void testCopyToLocation()
                        throws IOException,
                               MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
testCopyStripVersionSetInMojo
public void testCopyStripVersionSetInMojo()
                                   throws IOException,
                                          MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
testNonClassifierStrip
public void testNonClassifierStrip()
                            throws IOException,
                                   MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
testNonClassifierNoStrip
public void testNonClassifierNoStrip()
                              throws IOException,
                                     MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
testMissingVersionNotFound
public void testMissingVersionNotFound()
                                throws MojoExecutionException
- Throws:
 MojoExecutionException
 
getDependencyList
public List<Dependency> getDependencyList(ArtifactItem item)
 
testMissingVersionFromDependencies
public void testMissingVersionFromDependencies()
                                        throws MojoExecutionException
- Throws:
 MojoExecutionException
 
testMissingVersionFromDependenciesLooseMatch
public void testMissingVersionFromDependenciesLooseMatch()
                                                  throws MojoExecutionException
- Throws:
 MojoExecutionException
 
testMissingVersionFromDependenciesWithClassifier
public void testMissingVersionFromDependenciesWithClassifier()
                                                      throws MojoExecutionException
- Throws:
 MojoExecutionException
 
getDependencyMgtList
public List<Dependency> getDependencyMgtList(ArtifactItem item)
 
testMissingVersionFromDependencyMgt
public void testMissingVersionFromDependencyMgt()
                                         throws MojoExecutionException
- Throws:
 MojoExecutionException
 
testMissingVersionFromDependencyMgtLooseMatch
public void testMissingVersionFromDependencyMgtLooseMatch()
                                                   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()
 
testCopyDontOverWriteReleases
public void testCopyDontOverWriteReleases()
                                   throws IOException,
                                          MojoExecutionException,
                                          InterruptedException
- Throws:
 IOException
MojoExecutionException
InterruptedException
 
testCopyDontOverWriteSnapshots
public void testCopyDontOverWriteSnapshots()
                                    throws IOException,
                                           MojoExecutionException,
                                           InterruptedException
- Throws:
 IOException
MojoExecutionException
InterruptedException
 
testCopyOverWriteReleases
public void testCopyOverWriteReleases()
                               throws IOException,
                                      MojoExecutionException,
                                      InterruptedException
- Throws:
 IOException
MojoExecutionException
InterruptedException
 
testCopyOverWriteSnapshot
public void testCopyOverWriteSnapshot()
                               throws IOException,
                                      MojoExecutionException,
                                      InterruptedException
- Throws:
 IOException
MojoExecutionException
InterruptedException
 
testCopyOverWriteIfNewer
public void testCopyOverWriteIfNewer()
                              throws IOException,
                                     MojoExecutionException,
                                     InterruptedException
- Throws:
 IOException
MojoExecutionException
InterruptedException
 
testCopyFileWithOverideLocalRepo
public void testCopyFileWithOverideLocalRepo()
                                      throws IOException,
                                             MojoExecutionException
- Throws:
 IOException
MojoExecutionException
 
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.