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(Collection<ArtifactItem> 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 Exception
Overrides:
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
Throws:
Exception

tearDown

protected void tearDown()
Overrides:
tearDown in class AbstractDependencyMojoTestCase

assertMarkerFiles

public void assertMarkerFiles(Collection<ArtifactItem> items,
                              boolean exist)

assertMarkerFile

public void assertMarkerFile(boolean val,
                             ArtifactItem item)

testUnpackIncludesManyFiles

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

Throws:
Exception

testUnpackIncludesSingleFile

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

Throws:
Exception

testUnpackIncludesAllFiles

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

Throws:
Exception

testUnpackExcludesManyFiles

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

Throws:
Exception

testUnpackExcludesSingleFile

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

Throws:
Exception

testUnpackExcludesAllFiles

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

Throws:
Exception

testNoIncludeExcludes

public void testNoIncludeExcludes()
                           throws Exception
Throws:
Exception

testIncludeArtifactItemOverride

public void testIncludeArtifactItemOverride()
                                     throws Exception
Throws:
Exception

testExcludeArtifactItemOverride

public void testExcludeArtifactItemOverride()
                                     throws Exception
Throws:
Exception

testIncludeArtifactItemMultipleMarker

public void testIncludeArtifactItemMultipleMarker()
                                           throws Exception
Throws:
Exception

testIncludeArtifactItemMultipleExecutions

public void testIncludeArtifactItemMultipleExecutions()
                                               throws Exception
Throws:
Exception


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