org.apache.maven.plugin.dependency
Class TestUnpackDependenciesMojo

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

public class TestUnpackDependenciesMojo
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
TestUnpackDependenciesMojo()
           
 
Method Summary
 void assertMarkerFile(boolean val, org.apache.maven.artifact.Artifact artifact)
           
 void assertUnpacked(org.apache.maven.artifact.Artifact artifact)
           
 void assertUnpacked(org.apache.maven.artifact.Artifact artifact, boolean overWrite)
           
 void assertUnpacked(boolean val, org.apache.maven.artifact.Artifact artifact)
           
 void dotestArtifactExceptions(boolean are, boolean anfe)
           
 void dotestClassifierType(String testClassifier, String testType)
           
 File getUnpackedFile(org.apache.maven.artifact.Artifact artifact)
           
 DefaultFileMarkerHandler getUnpackedMarkerHandler(org.apache.maven.artifact.Artifact artifact)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testArtifactNotFound()
           
 void testArtifactResolutionException()
           
 void testCDMClassifier()
           
 void testCDMClassifierType()
           
 void testCDMType()
           
 void testExcludeArtifactId()
           
 void testExcludeCompileScope()
           
 void testExcludeGroupId()
           
 void testExcludeProvidedScope()
           
 void testExcludeRuntimeScope()
           
 void testExcludeSystemScope()
           
 void testExcludeTestScope()
           
 void testExcludeType()
           
 void testIncludeArtifactId()
           
 void testIncludeCompileScope()
           
 void testIncludeGroupId()
           
 void testIncludeprovidedScope()
           
 void testIncludeRuntimeScope()
           
 void testIncludesystemScope()
           
 void testIncludeTestScope()
           
 void testIncludeType()
           
 void testMojo()
           
 void testNoTransitive()
           
 void testSubPerArtifact()
           
 void testSubPerArtifactAndType()
           
 void testSubPerArtifactAndTypeRemoveVersion()
           
 void testSubPerArtifactRemoveVersion()
           
 void testSubPerType()
           
 
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojoTestCase
setUp
 
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

TestUnpackDependenciesMojo

public TestUnpackDependenciesMojo()
Method Detail

setUp

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

tearDown

protected void tearDown()
Overrides:
tearDown in class AbstractDependencyMojoTestCase

assertUnpacked

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

assertUnpacked

public void assertUnpacked(boolean val,
                           org.apache.maven.artifact.Artifact artifact)

assertMarkerFile

public void assertMarkerFile(boolean val,
                             org.apache.maven.artifact.Artifact artifact)

testMojo

public void testMojo()
              throws Exception
Throws:
Exception

testNoTransitive

public void testNoTransitive()
                      throws Exception
Throws:
Exception

testExcludeType

public void testExcludeType()
                     throws Exception
Throws:
Exception

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

testIncludeType

public void testIncludeType()
                     throws Exception
Throws:
Exception

testSubPerType

public void testSubPerType()
                    throws Exception
Throws:
Exception

testSubPerArtifact

public void testSubPerArtifact()
                        throws Exception
Throws:
Exception

testSubPerArtifactAndType

public void testSubPerArtifactAndType()
                               throws Exception
Throws:
Exception

testSubPerArtifactRemoveVersion

public void testSubPerArtifactRemoveVersion()
                                     throws Exception
Throws:
Exception

testSubPerArtifactAndTypeRemoveVersion

public void testSubPerArtifactAndTypeRemoveVersion()
                                            throws Exception
Throws:
Exception

testIncludeCompileScope

public void testIncludeCompileScope()
                             throws Exception
Throws:
Exception

testIncludeTestScope

public void testIncludeTestScope()
                          throws Exception
Throws:
Exception

testIncludeRuntimeScope

public void testIncludeRuntimeScope()
                             throws Exception
Throws:
Exception

testIncludeprovidedScope

public void testIncludeprovidedScope()
                              throws Exception
Throws:
Exception

testIncludesystemScope

public void testIncludesystemScope()
                            throws Exception
Throws:
Exception

testIncludeArtifactId

public void testIncludeArtifactId()
                           throws Exception
Throws:
Exception

testExcludeArtifactId

public void testExcludeArtifactId()
                           throws Exception
Throws:
Exception

testExcludeGroupId

public void testExcludeGroupId()
                        throws Exception
Throws:
Exception

testIncludeGroupId

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

getUnpackedFile

public File getUnpackedFile(org.apache.maven.artifact.Artifact artifact)

getUnpackedMarkerHandler

public DefaultFileMarkerHandler getUnpackedMarkerHandler(org.apache.maven.artifact.Artifact artifact)

assertUnpacked

public void assertUnpacked(org.apache.maven.artifact.Artifact artifact,
                           boolean overWrite)
                    throws InterruptedException,
                           org.apache.maven.plugin.MojoExecutionException
Throws:
InterruptedException
org.apache.maven.plugin.MojoExecutionException


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