org.apache.maven.plugin.dependency.utils.filters
Class TestDestFileFilter

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.plugin.dependency.utils.filters.TestDestFileFilter
All Implemented Interfaces:
junit.framework.Test

public class TestDestFileFilter
extends junit.framework.TestCase

Author:
brianf

Constructor Summary
TestDestFileFilter()
           
 
Method Summary
 File createFile(org.apache.maven.artifact.Artifact artifact)
           
 File createFile(org.apache.maven.artifact.Artifact artifact, boolean useSubDirectoryPerArtifact, boolean useSubDirectoryPerType, boolean removeVersion)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testDestFileOverwriteIfNewer()
           
 void testDestFileRelease()
           
 void testDestFileSnapshot()
           
 void testDestFileStripVersion()
           
 void testDestFileSubPerArtifact()
           
 void testDestFileSubPerType()
           
 void testGettersSetters()
           
 
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

TestDestFileFilter

public TestDestFileFilter()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws IOException
Overrides:
tearDown in class junit.framework.TestCase
Throws:
IOException

createFile

public File createFile(org.apache.maven.artifact.Artifact artifact)
                throws IOException
Throws:
IOException

createFile

public File createFile(org.apache.maven.artifact.Artifact artifact,
                       boolean useSubDirectoryPerArtifact,
                       boolean useSubDirectoryPerType,
                       boolean removeVersion)
                throws IOException
Throws:
IOException

testDestFileRelease

public void testDestFileRelease()
                         throws IOException,
                                org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
Throws:
IOException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException

testDestFileSnapshot

public void testDestFileSnapshot()
                          throws IOException,
                                 org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
Throws:
IOException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException

testDestFileStripVersion

public void testDestFileStripVersion()
                              throws IOException,
                                     org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
Throws:
IOException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException

testDestFileSubPerArtifact

public void testDestFileSubPerArtifact()
                                throws IOException,
                                       org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
Throws:
IOException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException

testDestFileSubPerType

public void testDestFileSubPerType()
                            throws org.apache.maven.plugin.MojoExecutionException,
                                   IOException,
                                   org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException

testDestFileOverwriteIfNewer

public void testDestFileOverwriteIfNewer()
                                  throws org.apache.maven.plugin.MojoExecutionException,
                                         IOException,
                                         org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException

testGettersSetters

public void testGettersSetters()


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