org.apache.maven.plugin.assembly.io
Class DefaultAssemblyReaderTest

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

public class DefaultAssemblyReaderTest
extends junit.framework.TestCase


Constructor Summary
DefaultAssemblyReaderTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testGetAssemblyForDescriptorReference_ShouldReadBinaryAssemblyRef()
           
 void testGetAssemblyFromDescriptorFile_ShouldReadAssembly()
           
 void testIncludeSiteInAssembly_ShouldAddSiteDirFileSetWhenDirExists()
           
 void testIncludeSiteInAssembly_ShouldFailIfSiteDirectoryNonExistent()
           
 void testMergeComponentsWithMainAssembly_ShouldAddOneFileSetToAssembly()
           
 void testMergeComponentWithAssembly_ShouldAddOneContainerDescriptorHandlerToExistingListOfTwo()
           
 void testMergeComponentWithAssembly_ShouldAddOneDependencySetToExistingListOfTwo()
           
 void testMergeComponentWithAssembly_ShouldAddOneFileItemToExistingListOfTwo()
           
 void testMergeComponentWithAssembly_ShouldAddOneFileSetToExistingListOfTwo()
           
 void testMergeComponentWithAssembly_ShouldAddOneRepositoryToExistingListOfTwo()
           
 void testReadAssemblies_ShouldFailWhenSingleDescriptorFileMissing()
           
 void testReadAssemblies_ShouldGetAssemblyDescriptorFromDirectory()
           
 void testReadAssemblies_ShouldGetAssemblyDescriptorFromFileArray()
           
 void testReadAssemblies_ShouldGetAssemblyDescriptorFromMultipleRefs()
           
 void testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleFile()
           
 void testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleRef()
           
 void testReadAssemblies_ShouldGetTwoAssemblyDescriptorsFromDirectoryWithThreeFiles()
           
 void testReadAssemblies_ShouldIgnoreMissingSingleDescriptorFileWhenIgnoreIsConfigured()
           
 void testReadAssembly_ShouldReadAssemblyWithComponentInterpolationWithoutSiteDirInclusionOrAssemblyInterpolation()
           
 void testReadAssembly_ShouldReadAssemblyWithComponentWithoutSiteDirInclusionOrInterpolation()
           
 void testReadAssembly_ShouldReadAssemblyWithInterpolationWithoutComponentsOrSiteDirInclusion()
           
 void testReadAssembly_ShouldReadAssemblyWithoutComponentsInterpolationOrSiteDirInclusion()
           
 void testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromAssemblyWithoutComponentsOrInterpolation()
           
 void testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromConfigWithoutComponentsOrInterpolation()
           
 
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

DefaultAssemblyReaderTest

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

testIncludeSiteInAssembly_ShouldFailIfSiteDirectoryNonExistent

public void testIncludeSiteInAssembly_ShouldFailIfSiteDirectoryNonExistent()
                                                                    throws IOException
Throws:
IOException

testIncludeSiteInAssembly_ShouldAddSiteDirFileSetWhenDirExists

public void testIncludeSiteInAssembly_ShouldAddSiteDirFileSetWhenDirExists()
                                                                    throws IOException,
                                                                           InvalidAssemblerConfigurationException
Throws:
IOException
InvalidAssemblerConfigurationException

testMergeComponentWithAssembly_ShouldAddOneFileSetToExistingListOfTwo

public void testMergeComponentWithAssembly_ShouldAddOneFileSetToExistingListOfTwo()

testMergeComponentWithAssembly_ShouldAddOneFileItemToExistingListOfTwo

public void testMergeComponentWithAssembly_ShouldAddOneFileItemToExistingListOfTwo()

testMergeComponentWithAssembly_ShouldAddOneDependencySetToExistingListOfTwo

public void testMergeComponentWithAssembly_ShouldAddOneDependencySetToExistingListOfTwo()

testMergeComponentWithAssembly_ShouldAddOneRepositoryToExistingListOfTwo

public void testMergeComponentWithAssembly_ShouldAddOneRepositoryToExistingListOfTwo()

testMergeComponentWithAssembly_ShouldAddOneContainerDescriptorHandlerToExistingListOfTwo

public void testMergeComponentWithAssembly_ShouldAddOneContainerDescriptorHandlerToExistingListOfTwo()

testMergeComponentsWithMainAssembly_ShouldAddOneFileSetToAssembly

public void testMergeComponentsWithMainAssembly_ShouldAddOneFileSetToAssembly()
                                                                       throws IOException,
                                                                              AssemblyReadException
Throws:
IOException
AssemblyReadException

testReadAssembly_ShouldReadAssemblyWithoutComponentsInterpolationOrSiteDirInclusion

public void testReadAssembly_ShouldReadAssemblyWithoutComponentsInterpolationOrSiteDirInclusion()
                                                                                         throws IOException,
                                                                                                AssemblyReadException,
                                                                                                InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromAssemblyWithoutComponentsOrInterpolation

public void testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromAssemblyWithoutComponentsOrInterpolation()
                                                                                                         throws IOException,
                                                                                                                AssemblyReadException,
                                                                                                                InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromConfigWithoutComponentsOrInterpolation

public void testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromConfigWithoutComponentsOrInterpolation()
                                                                                                       throws IOException,
                                                                                                              AssemblyReadException,
                                                                                                              InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssembly_ShouldReadAssemblyWithComponentWithoutSiteDirInclusionOrInterpolation

public void testReadAssembly_ShouldReadAssemblyWithComponentWithoutSiteDirInclusionOrInterpolation()
                                                                                            throws IOException,
                                                                                                   AssemblyReadException,
                                                                                                   InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssembly_ShouldReadAssemblyWithComponentInterpolationWithoutSiteDirInclusionOrAssemblyInterpolation

public void testReadAssembly_ShouldReadAssemblyWithComponentInterpolationWithoutSiteDirInclusionOrAssemblyInterpolation()
                                                                                                                 throws IOException,
                                                                                                                        AssemblyReadException,
                                                                                                                        InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssembly_ShouldReadAssemblyWithInterpolationWithoutComponentsOrSiteDirInclusion

public void testReadAssembly_ShouldReadAssemblyWithInterpolationWithoutComponentsOrSiteDirInclusion()
                                                                                             throws IOException,
                                                                                                    AssemblyReadException,
                                                                                                    InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testGetAssemblyFromDescriptorFile_ShouldReadAssembly

public void testGetAssemblyFromDescriptorFile_ShouldReadAssembly()
                                                          throws IOException,
                                                                 AssemblyReadException,
                                                                 InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testGetAssemblyForDescriptorReference_ShouldReadBinaryAssemblyRef

public void testGetAssemblyForDescriptorReference_ShouldReadBinaryAssemblyRef()
                                                                       throws IOException,
                                                                              AssemblyReadException,
                                                                              InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleFile

public void testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleFile()
                                                                  throws IOException,
                                                                         AssemblyReadException,
                                                                         InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldFailWhenSingleDescriptorFileMissing

public void testReadAssemblies_ShouldFailWhenSingleDescriptorFileMissing()
                                                                  throws IOException,
                                                                         InvalidAssemblerConfigurationException
Throws:
IOException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldIgnoreMissingSingleDescriptorFileWhenIgnoreIsConfigured

public void testReadAssemblies_ShouldIgnoreMissingSingleDescriptorFileWhenIgnoreIsConfigured()
                                                                                      throws IOException,
                                                                                             InvalidAssemblerConfigurationException
Throws:
IOException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleRef

public void testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleRef()
                                                                 throws IOException,
                                                                        AssemblyReadException,
                                                                        InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldGetAssemblyDescriptorFromFileArray

public void testReadAssemblies_ShouldGetAssemblyDescriptorFromFileArray()
                                                                 throws IOException,
                                                                        AssemblyReadException,
                                                                        InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldGetAssemblyDescriptorFromMultipleRefs

public void testReadAssemblies_ShouldGetAssemblyDescriptorFromMultipleRefs()
                                                                    throws IOException,
                                                                           AssemblyReadException,
                                                                           InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldGetAssemblyDescriptorFromDirectory

public void testReadAssemblies_ShouldGetAssemblyDescriptorFromDirectory()
                                                                 throws IOException,
                                                                        AssemblyReadException,
                                                                        InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException

testReadAssemblies_ShouldGetTwoAssemblyDescriptorsFromDirectoryWithThreeFiles

public void testReadAssemblies_ShouldGetTwoAssemblyDescriptorsFromDirectoryWithThreeFiles()
                                                                                   throws IOException,
                                                                                          AssemblyReadException,
                                                                                          InvalidAssemblerConfigurationException
Throws:
IOException
AssemblyReadException
InvalidAssemblerConfigurationException


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