org.apache.maven.plugin.assembly.archive.task
Class AddFileSetsTaskTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.plugin.assembly.archive.task.AddFileSetsTaskTest
All Implemented Interfaces:
junit.framework.Test

public class AddFileSetsTaskTest
extends junit.framework.TestCase


Constructor Summary
AddFileSetsTaskTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testAddFileSet_ShouldAddDirectory()
           
 void testAddFileSet_ShouldAddDirectoryUsingSourceDirNameForDestDir()
           
 void testAddFileSet_ShouldNotAddDirectoryWhenSourceDirNonExistent()
           
 void testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNonExistent()
           
 void testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNotADirectory()
           
 void testGetFileSetDirectory_ShouldReturnAbsoluteSourceDir()
           
 void testGetFileSetDirectory_ShouldReturnBasedir()
           
 void testGetFileSetDirectory_ShouldReturnDirFromArchiveBasedirAndSourceDir()
           
 void testGetFileSetDirectory_ShouldReturnDirFromBasedirAndSourceDir()
           
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddFileSetsTaskTest

public AddFileSetsTaskTest()
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

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

testGetFileSetDirectory_ShouldReturnAbsoluteSourceDir

public void testGetFileSetDirectory_ShouldReturnAbsoluteSourceDir()
                                                           throws ArchiveCreationException,
                                                                  AssemblyFormattingException
Throws:
ArchiveCreationException
AssemblyFormattingException

testGetFileSetDirectory_ShouldReturnBasedir

public void testGetFileSetDirectory_ShouldReturnBasedir()
                                                 throws ArchiveCreationException,
                                                        AssemblyFormattingException
Throws:
ArchiveCreationException
AssemblyFormattingException

testGetFileSetDirectory_ShouldReturnDirFromBasedirAndSourceDir

public void testGetFileSetDirectory_ShouldReturnDirFromBasedirAndSourceDir()
                                                                    throws ArchiveCreationException,
                                                                           AssemblyFormattingException
Throws:
ArchiveCreationException
AssemblyFormattingException

testGetFileSetDirectory_ShouldReturnDirFromArchiveBasedirAndSourceDir

public void testGetFileSetDirectory_ShouldReturnDirFromArchiveBasedirAndSourceDir()
                                                                           throws ArchiveCreationException,
                                                                                  AssemblyFormattingException
Throws:
ArchiveCreationException
AssemblyFormattingException

testAddFileSet_ShouldAddDirectory

public void testAddFileSet_ShouldAddDirectory()
                                       throws ArchiveCreationException,
                                              AssemblyFormattingException
Throws:
ArchiveCreationException
AssemblyFormattingException

testAddFileSet_ShouldAddDirectoryUsingSourceDirNameForDestDir

public void testAddFileSet_ShouldAddDirectoryUsingSourceDirNameForDestDir()
                                                                   throws ArchiveCreationException,
                                                                          AssemblyFormattingException
Throws:
ArchiveCreationException
AssemblyFormattingException

testAddFileSet_ShouldNotAddDirectoryWhenSourceDirNonExistent

public void testAddFileSet_ShouldNotAddDirectoryWhenSourceDirNonExistent()
                                                                  throws ArchiveCreationException,
                                                                         AssemblyFormattingException
Throws:
ArchiveCreationException
AssemblyFormattingException

testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNonExistent

public void testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNonExistent()
                                                                           throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNotADirectory

public void testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNotADirectory()
                                                                             throws AssemblyFormattingException,
                                                                                    IOException
Throws:
AssemblyFormattingException
IOException


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