org.apache.maven.plugin.dependency
Class TestUnpackDependenciesMojo2

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

public class TestUnpackDependenciesMojo2
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
TestUnpackDependenciesMojo2()
           
 
Method Summary
 void assertUnpacked(org.apache.maven.artifact.Artifact artifact, boolean overWrite)
           
 File getUnpackedFile(org.apache.maven.artifact.Artifact artifact)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testDontOverWriteRelease()
           
 void testDontOverWriteSnap()
           
 void testOverWriteIfNewer()
           
 void testOverWriteRelease()
           
 void testOverWriteSnap()
           
 
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

TestUnpackDependenciesMojo2

public TestUnpackDependenciesMojo2()
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

getUnpackedFile

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

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

testOverWriteIfNewer

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

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.