org.apache.maven.plugin.dependency
Class TestCopyDependenciesMojo

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.TestCopyDependenciesMojo
All Implemented Interfaces:
junit.framework.Test

public class TestCopyDependenciesMojo
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
TestCopyDependenciesMojo()
           
 
Method Summary
 void assertNoMarkerFile(org.apache.maven.artifact.Artifact artifact)
           
 void dotestArtifactExceptions(boolean are, boolean anfe)
           
 void dotestClassifierType(String testClassifier, String testType)
           
protected  void setUp()
           
 void testArtifactNotFound()
           
 void testArtifactResolutionException()
           
 void testCDMClassifier()
           
 void testCDMClassifierType()
           
 void testCDMType()
           
 void testCopyFile()
           
 void testCopyPom()
           
 void testDontOverWriteRelease()
           
 void testDontOverWriteSnap()
           
 void testExcludeArtifactId()
           
 void testExcludeClassifier()
           
 void testExcludeCompileScope()
           
 void testExcludeGroupId()
           
 void testExcludeMultipleGroupIds()
           
 void testExcludeProvidedScope()
           
 void testExcludeRuntimeScope()
           
 void testExcludeSystemScope()
           
 void testExcludeTestScope()
           
 void testExcludeType()
           
 void testGetDependencies()
           
 void testIncludeArtifactId()
           
 void testIncludeClassifier()
           
 void testIncludeGroupId()
           
 void testIncludeType()
           
 void testMojo()
          tests the proper discovery and configuration of the mojo
 void testNoTransitive()
           
 void testOverWriteRelease()
           
 void testOverWriteSnap()
           
 void testPrependGroupId()
           
 void testStripVersion()
           
 void testSubPerType()
           
 
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

TestCopyDependenciesMojo

public TestCopyDependenciesMojo()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
Throws:
Exception

assertNoMarkerFile

public void assertNoMarkerFile(org.apache.maven.artifact.Artifact artifact)

testCopyFile

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

testMojo

public void testMojo()
              throws Exception
tests the proper discovery and configuration of the mojo

Throws:
Exception

testStripVersion

public void testStripVersion()
                      throws Exception
Throws:
Exception

testNoTransitive

public void testNoTransitive()
                      throws Exception
Throws:
Exception

testExcludeType

public void testExcludeType()
                     throws Exception
Throws:
Exception

testIncludeType

public void testIncludeType()
                     throws Exception
Throws:
Exception

testExcludeArtifactId

public void testExcludeArtifactId()
                           throws Exception
Throws:
Exception

testIncludeArtifactId

public void testIncludeArtifactId()
                           throws Exception
Throws:
Exception

testIncludeGroupId

public void testIncludeGroupId()
                        throws Exception
Throws:
Exception

testExcludeGroupId

public void testExcludeGroupId()
                        throws Exception
Throws:
Exception

testExcludeMultipleGroupIds

public void testExcludeMultipleGroupIds()
                                 throws Exception
Throws:
Exception

testExcludeClassifier

public void testExcludeClassifier()
                           throws Exception
Throws:
Exception

testIncludeClassifier

public void testIncludeClassifier()
                           throws Exception
Throws:
Exception

testSubPerType

public void testSubPerType()
                    throws Exception
Throws:
Exception

testCDMClassifier

public void testCDMClassifier()
                       throws Exception
Throws:
Exception

testCDMType

public void testCDMType()
                 throws Exception
Throws:
Exception

testCDMClassifierType

public void testCDMClassifierType()
                           throws Exception
Throws:
Exception

dotestClassifierType

public void dotestClassifierType(String testClassifier,
                                 String testType)
                          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

testDontOverWriteRelease

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

testOverWriteRelease

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

testDontOverWriteSnap

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

testOverWriteSnap

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

testGetDependencies

public void testGetDependencies()
                         throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

testExcludeProvidedScope

public void testExcludeProvidedScope()
                              throws Exception
Throws:
Exception

testExcludeSystemScope

public void testExcludeSystemScope()
                            throws Exception
Throws:
Exception

testExcludeCompileScope

public void testExcludeCompileScope()
                             throws Exception
Throws:
Exception

testExcludeTestScope

public void testExcludeTestScope()
                          throws IOException
Throws:
IOException

testExcludeRuntimeScope

public void testExcludeRuntimeScope()
                             throws Exception
Throws:
Exception

testCopyPom

public void testCopyPom()
                 throws Exception
Throws:
Exception

testPrependGroupId

public void testPrependGroupId()
                        throws Exception
Throws:
Exception


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