org.apache.maven.plugin.dependency
Class TestIncludeExcludeUnpackMojo

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

public class TestIncludeExcludeUnpackMojo
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
TestIncludeExcludeUnpackMojo()
           
 
Method Summary
 void assertMarkerFile(boolean val, ArtifactItem item)
           
 void assertMarkerFiles(java.util.Collection items, boolean exist)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testExcludeArtifactItemOverride()
           
 void testIncludeArtifactItemMultipleExecutions()
           
 void testIncludeArtifactItemMultipleMarker()
           
 void testIncludeArtifactItemOverride()
           
 void testNoIncludeExcludes()
           
 void testUnpackExcludesAllFiles()
          This test will verify no files get unpacked
 void testUnpackExcludesManyFiles()
          This test will validate that only the 2 and 3 files get unpacked
 void testUnpackExcludesSingleFile()
          This test will verify only the 1, 11 & 3 files get unpacked
 void testUnpackIncludesAllFiles()
          This test will verify all files get unpacked
 void testUnpackIncludesManyFiles()
          This test will validate that only the 1 and 11 files get unpacked
 void testUnpackIncludesSingleFile()
          This test will verify only the 2 file gets unpacked
 
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

TestIncludeExcludeUnpackMojo

public TestIncludeExcludeUnpackMojo()
Method Detail

setUp

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

tearDown

protected void tearDown()
Overrides:
tearDown in class AbstractDependencyMojoTestCase

assertMarkerFiles

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

assertMarkerFile

public void assertMarkerFile(boolean val,
                             ArtifactItem item)

testUnpackIncludesManyFiles

public void testUnpackIncludesManyFiles()
                                 throws java.lang.Exception
This test will validate that only the 1 and 11 files get unpacked

Throws:
java.lang.Exception

testUnpackIncludesSingleFile

public void testUnpackIncludesSingleFile()
                                  throws java.lang.Exception
This test will verify only the 2 file gets unpacked

Throws:
java.lang.Exception

testUnpackIncludesAllFiles

public void testUnpackIncludesAllFiles()
                                throws java.lang.Exception
This test will verify all files get unpacked

Throws:
java.lang.Exception

testUnpackExcludesManyFiles

public void testUnpackExcludesManyFiles()
                                 throws java.lang.Exception
This test will validate that only the 2 and 3 files get unpacked

Throws:
java.lang.Exception

testUnpackExcludesSingleFile

public void testUnpackExcludesSingleFile()
                                  throws java.lang.Exception
This test will verify only the 1, 11 & 3 files get unpacked

Throws:
java.lang.Exception

testUnpackExcludesAllFiles

public void testUnpackExcludesAllFiles()
                                throws java.lang.Exception
This test will verify no files get unpacked

Throws:
java.lang.Exception

testNoIncludeExcludes

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

testIncludeArtifactItemOverride

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

testExcludeArtifactItemOverride

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

testIncludeArtifactItemMultipleMarker

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

testIncludeArtifactItemMultipleExecutions

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


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