org.apache.maven.plugin.dependency.fromConfiguration
Class TestCopyMojo

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.plugin.testing.AbstractMojoTestCase
                  extended by org.apache.maven.plugin.dependency.AbstractDependencyMojoTestCase
                      extended by org.apache.maven.plugin.dependency.fromConfiguration.TestCopyMojo
All Implemented Interfaces:
junit.framework.Test

public class TestCopyMojo
extends AbstractDependencyMojoTestCase


Field Summary
 
Fields inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojoTestCase
stubFactory, testDir
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
TestCopyMojo()
           
 
Method Summary
 void assertFileExists(ArtifactItem item, boolean exist)
           
 void assertFilesExist(Collection<ArtifactItem> items, boolean exist)
           
 void dotestArtifactExceptions(boolean are, boolean anfe)
           
 List<org.apache.maven.model.Dependency> getDependencyList(ArtifactItem item)
           
 List<org.apache.maven.model.Dependency> getDependencyMgtList(ArtifactItem item)
           
 ArtifactItem getSingleArtifactItem(boolean removeVersion)
           
protected  void setUp()
           
 void testArtifactNotFound()
           
 void testArtifactResolutionException()
           
 void testCopyDontOverWriteReleases()
           
 void testCopyDontOverWriteSnapshots()
           
 void testCopyFile()
           
 void testCopyFileNoOverwrite()
           
 void testCopyFileWithOverideLocalRepo()
           
 void testCopyOverWriteIfNewer()
           
 void testCopyOverWriteReleases()
           
 void testCopyOverWriteSnapshot()
           
 void testCopyStripVersionSetInMojo()
           
 void testCopyToLocation()
           
 void testGetArtifactItems()
           
 void testMissingVersionFromDependencies()
           
 void testMissingVersionFromDependenciesLooseMatch()
           
 void testMissingVersionFromDependenciesWithClassifier()
           
 void testMissingVersionFromDependencyMgt()
           
 void testMissingVersionFromDependencyMgtLooseMatch()
           
 void testMissingVersionFromDependencyMgtWithClassifier()
           
 void testMissingVersionNotFound()
           
 void testMojoDefaults()
           
 void testNoArtifactItems()
           
 void testNonClassifierNoStrip()
           
 void testNonClassifierStrip()
           
 void testSkip()
           
 
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojoTestCase
setUp, tearDown
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCopyMojo

public TestCopyMojo()
Method Detail

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

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,
                         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

testCopyFileNoOverwrite

public void testCopyFileNoOverwrite()
                             throws IOException,
                                    org.apache.maven.plugin.MojoExecutionException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException

testCopyToLocation

public void testCopyToLocation()
                        throws IOException,
                               org.apache.maven.plugin.MojoExecutionException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException

testCopyStripVersionSetInMojo

public void testCopyStripVersionSetInMojo()
                                   throws IOException,
                                          org.apache.maven.plugin.MojoExecutionException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException

testNonClassifierStrip

public void testNonClassifierStrip()
                            throws IOException,
                                   org.apache.maven.plugin.MojoExecutionException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException

testNonClassifierNoStrip

public void testNonClassifierNoStrip()
                              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

testMissingVersionFromDependenciesLooseMatch

public void testMissingVersionFromDependenciesLooseMatch()
                                                  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

testMissingVersionFromDependencyMgtLooseMatch

public void testMissingVersionFromDependencyMgtLooseMatch()
                                                   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()

testCopyDontOverWriteReleases

public void testCopyDontOverWriteReleases()
                                   throws IOException,
                                          org.apache.maven.plugin.MojoExecutionException,
                                          InterruptedException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException

testCopyDontOverWriteSnapshots

public void testCopyDontOverWriteSnapshots()
                                    throws IOException,
                                           org.apache.maven.plugin.MojoExecutionException,
                                           InterruptedException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException

testCopyOverWriteReleases

public void testCopyOverWriteReleases()
                               throws IOException,
                                      org.apache.maven.plugin.MojoExecutionException,
                                      InterruptedException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException

testCopyOverWriteSnapshot

public void testCopyOverWriteSnapshot()
                               throws IOException,
                                      org.apache.maven.plugin.MojoExecutionException,
                                      InterruptedException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException

testCopyOverWriteIfNewer

public void testCopyOverWriteIfNewer()
                              throws IOException,
                                     org.apache.maven.plugin.MojoExecutionException,
                                     InterruptedException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
InterruptedException

testCopyFileWithOverideLocalRepo

public void testCopyFileWithOverideLocalRepo()
                                      throws IOException,
                                             org.apache.maven.plugin.MojoExecutionException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.