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

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

public class TestUnpackMojo
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
TestUnpackMojo()
           
 
Method Summary
 void assertMarkerFile(boolean val, ArtifactItem item)
           
 void assertMarkerFiles(java.util.Collection items, boolean exist)
           
 void assertUnpacked(ArtifactItem item, boolean overWrite)
           
 void dotestArtifactExceptions(boolean are, boolean anfe)
           
 java.util.List getDependencyList(ArtifactItem item)
           
 java.util.List getDependencyMgtList(ArtifactItem item)
           
 ArtifactItem getSingleArtifactItem(boolean removeVersion)
           
 java.io.File getUnpackedFile(ArtifactItem item)
           
protected  void setUp()
           
 void testArtifactNotFound()
           
 void testArtifactResolutionException()
           
 void testGetArtifactItems()
           
 void testMissingVersionFromDependencies()
           
 void testMissingVersionFromDependenciesWithClassifier()
           
 void testMissingVersionFromDependencyMgt()
           
 void testMissingVersionFromDependencyMgtWithClassifier()
           
 void testMissingVersionNotFound()
           
 void testNoArtifactItems()
           
 void testUnpackDontOverWriteReleases()
           
 void testUnpackDontOverWriteSnapshots()
           
 void testUnpackFile()
           
 void testUnpackOverWriteIfNewer()
           
 void testUnpackOverWriteReleases()
           
 void testUnpackOverWriteSnapshot()
           
 void testUnpackToLocation()
           
 
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

TestUnpackMojo

public TestUnpackMojo()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
Throws:
java.lang.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

assertMarkerFiles

public void assertMarkerFiles(java.util.Collection items,
                              boolean exist)

assertMarkerFile

public void assertMarkerFile(boolean val,
                             ArtifactItem item)

testUnpackFile

public void testUnpackFile()
                    throws java.io.IOException,
                           org.apache.maven.plugin.MojoExecutionException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException

testUnpackToLocation

public void testUnpackToLocation()
                          throws java.io.IOException,
                                 org.apache.maven.plugin.MojoExecutionException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException

testMissingVersionNotFound

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

getDependencyList

public java.util.List getDependencyList(ArtifactItem item)

testMissingVersionFromDependencies

public void testMissingVersionFromDependencies()
                                        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 java.util.List getDependencyMgtList(ArtifactItem item)

testMissingVersionFromDependencyMgt

public void testMissingVersionFromDependencyMgt()
                                         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 java.lang.Exception
Throws:
java.lang.Exception

testArtifactResolutionException

public void testArtifactResolutionException()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

dotestArtifactExceptions

public void dotestArtifactExceptions(boolean are,
                                     boolean anfe)
                              throws java.lang.Exception
Throws:
java.lang.Exception

testNoArtifactItems

public void testNoArtifactItems()

testUnpackDontOverWriteReleases

public void testUnpackDontOverWriteReleases()
                                     throws java.io.IOException,
                                            org.apache.maven.plugin.MojoExecutionException,
                                            java.lang.InterruptedException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
java.lang.InterruptedException

testUnpackDontOverWriteSnapshots

public void testUnpackDontOverWriteSnapshots()
                                      throws java.io.IOException,
                                             org.apache.maven.plugin.MojoExecutionException,
                                             java.lang.InterruptedException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
java.lang.InterruptedException

testUnpackOverWriteReleases

public void testUnpackOverWriteReleases()
                                 throws java.io.IOException,
                                        org.apache.maven.plugin.MojoExecutionException,
                                        java.lang.InterruptedException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
java.lang.InterruptedException

testUnpackOverWriteSnapshot

public void testUnpackOverWriteSnapshot()
                                 throws java.io.IOException,
                                        org.apache.maven.plugin.MojoExecutionException,
                                        java.lang.InterruptedException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
java.lang.InterruptedException

testUnpackOverWriteIfNewer

public void testUnpackOverWriteIfNewer()
                                throws java.io.IOException,
                                       org.apache.maven.plugin.MojoExecutionException,
                                       java.lang.InterruptedException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
java.lang.InterruptedException

assertUnpacked

public void assertUnpacked(ArtifactItem item,
                           boolean overWrite)
                    throws java.lang.InterruptedException,
                           org.apache.maven.plugin.MojoExecutionException
Throws:
java.lang.InterruptedException
org.apache.maven.plugin.MojoExecutionException

getUnpackedFile

public java.io.File getUnpackedFile(ArtifactItem item)


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