org.apache.maven.plugin.assembly.archive.phase
Class ModuleSetAssemblyPhaseTest

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

public class ModuleSetAssemblyPhaseTest
extends junit.framework.TestCase


Constructor Summary
ModuleSetAssemblyPhaseTest()
           
 
Method Summary
 void tearDown()
           
 void testAddModuleArtifact_ShouldAddOneArtifact()
           
 void testAddModuleArtifact_ShouldThrowExceptionWhenArtifactFileIsNull()
           
 void testAddModuleBinaries_ShouldAddOneModuleArtifactAndNoDeps()
           
 void testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifact()
           
 void testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifactUsingImpliedDepSet()
           
 void testAddModuleBinaries_ShouldAddOneModuleAttachmentArtifactAndNoDeps()
           
 void testAddModuleBinaries_ShouldFailWhenOneModuleDoesntHaveAttachmentWithMatchingClassifier()
           
 void testAddModuleBinaries_ShouldFilterPomModule()
           
 void testAddModuleBinaries_ShouldReturnImmediatelyWhenBinariesIsNull()
           
 void testAddModuleSourceFileSets_ShouldAddOneSourceDirectory()
           
 void testAddModuleSourceFileSets_ShouldReturnImmediatelyIfSourcesIsNull()
           
 void testCreateFileSet_ShouldAddExcludesForSubModulesWhenExcludeSubModDirsIsTrue()
           
 void testCreateFileSet_ShouldPrependModuleDirWhenOutDirIsProvided()
           
 void testCreateFileSet_ShouldUseModuleDirOnlyWhenOutDirIsNull()
           
 void testExecute_ShouldAddOneModuleSetWithOneModuleInIt()
           
 void testExecute_ShouldSkipIfNoModuleSetsFound()
           
 void testGetModuleProjects_ShouldExcludeModuleAndDescendentsTransitively()
           
 void testGetModuleProjects_ShouldReturnDescendentModulesOfCurrentProject()
           
 void testGetModuleProjects_ShouldReturnModuleOfCurrentProject()
           
 void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsOnlyCurrentProject()
           
 void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsTwoSiblingProjects()
           
 void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchExclude()
           
 void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchInclude()
           
 void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchOutputDir()
           
 void testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchDirMode()
           
 void testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchFileMode()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

ModuleSetAssemblyPhaseTest

public ModuleSetAssemblyPhaseTest()
Method Detail

tearDown

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

testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchOutputDir

public void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchOutputDir()

testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchInclude

public void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchInclude()

testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchExclude

public void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchExclude()

testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchFileMode

public void testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchFileMode()

testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchDirMode

public void testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchDirMode()

testCreateFileSet_ShouldUseModuleDirOnlyWhenOutDirIsNull

public void testCreateFileSet_ShouldUseModuleDirOnlyWhenOutDirIsNull()
                                                              throws org.apache.maven.plugin.assembly.format.AssemblyFormattingException
Throws:
org.apache.maven.plugin.assembly.format.AssemblyFormattingException

testCreateFileSet_ShouldPrependModuleDirWhenOutDirIsProvided

public void testCreateFileSet_ShouldPrependModuleDirWhenOutDirIsProvided()
                                                                  throws org.apache.maven.plugin.assembly.format.AssemblyFormattingException
Throws:
org.apache.maven.plugin.assembly.format.AssemblyFormattingException

testCreateFileSet_ShouldAddExcludesForSubModulesWhenExcludeSubModDirsIsTrue

public void testCreateFileSet_ShouldAddExcludesForSubModulesWhenExcludeSubModDirsIsTrue()
                                                                                 throws org.apache.maven.plugin.assembly.format.AssemblyFormattingException
Throws:
org.apache.maven.plugin.assembly.format.AssemblyFormattingException

testExecute_ShouldSkipIfNoModuleSetsFound

public void testExecute_ShouldSkipIfNoModuleSetsFound()
                                               throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                      org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                      org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testExecute_ShouldAddOneModuleSetWithOneModuleInIt

public void testExecute_ShouldAddOneModuleSetWithOneModuleInIt()
                                                        throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                               org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                               IOException,
                                                               org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testAddModuleBinaries_ShouldReturnImmediatelyWhenBinariesIsNull

public void testAddModuleBinaries_ShouldReturnImmediatelyWhenBinariesIsNull()
                                                                     throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                            org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                                            org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testAddModuleBinaries_ShouldFilterPomModule

public void testAddModuleBinaries_ShouldFilterPomModule()
                                                 throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                        org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                        IOException,
                                                        org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testAddModuleBinaries_ShouldAddOneModuleAttachmentArtifactAndNoDeps

public void testAddModuleBinaries_ShouldAddOneModuleAttachmentArtifactAndNoDeps()
                                                                         throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                                org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                                                IOException,
                                                                                org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testAddModuleBinaries_ShouldFailWhenOneModuleDoesntHaveAttachmentWithMatchingClassifier

public void testAddModuleBinaries_ShouldFailWhenOneModuleDoesntHaveAttachmentWithMatchingClassifier()
                                                                                             throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                                                    org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                                                                    IOException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException

testAddModuleBinaries_ShouldAddOneModuleArtifactAndNoDeps

public void testAddModuleBinaries_ShouldAddOneModuleArtifactAndNoDeps()
                                                               throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                      org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                                      IOException,
                                                                      org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifact

public void testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifact()
                                                                           throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                                  org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                                                  IOException,
                                                                                  org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifactUsingImpliedDepSet

public void testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifactUsingImpliedDepSet()
                                                                                             throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                                                    org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                                                                    IOException,
                                                                                                    org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException
org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException

testAddModuleArtifact_ShouldThrowExceptionWhenArtifactFileIsNull

public void testAddModuleArtifact_ShouldThrowExceptionWhenArtifactFileIsNull()
                                                                      throws org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                                             IOException
Throws:
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException

testAddModuleArtifact_ShouldAddOneArtifact

public void testAddModuleArtifact_ShouldAddOneArtifact()
                                                throws org.apache.maven.plugin.assembly.format.AssemblyFormattingException,
                                                       IOException,
                                                       org.apache.maven.plugin.assembly.archive.ArchiveCreationException
Throws:
org.apache.maven.plugin.assembly.format.AssemblyFormattingException
IOException
org.apache.maven.plugin.assembly.archive.ArchiveCreationException

testAddModuleSourceFileSets_ShouldReturnImmediatelyIfSourcesIsNull

public void testAddModuleSourceFileSets_ShouldReturnImmediatelyIfSourcesIsNull()
                                                                        throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                               org.apache.maven.plugin.assembly.format.AssemblyFormattingException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException

testAddModuleSourceFileSets_ShouldAddOneSourceDirectory

public void testAddModuleSourceFileSets_ShouldAddOneSourceDirectory()
                                                             throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException,
                                                                    org.apache.maven.plugin.assembly.format.AssemblyFormattingException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException
org.apache.maven.plugin.assembly.format.AssemblyFormattingException

testGetModuleProjects_ShouldReturnNothingWhenReactorContainsOnlyCurrentProject

public void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsOnlyCurrentProject()
                                                                                    throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException

testGetModuleProjects_ShouldReturnNothingWhenReactorContainsTwoSiblingProjects

public void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsTwoSiblingProjects()
                                                                                    throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException

testGetModuleProjects_ShouldReturnModuleOfCurrentProject

public void testGetModuleProjects_ShouldReturnModuleOfCurrentProject()
                                                              throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException

testGetModuleProjects_ShouldReturnDescendentModulesOfCurrentProject

public void testGetModuleProjects_ShouldReturnDescendentModulesOfCurrentProject()
                                                                         throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException

testGetModuleProjects_ShouldExcludeModuleAndDescendentsTransitively

public void testGetModuleProjects_ShouldExcludeModuleAndDescendentsTransitively()
                                                                         throws org.apache.maven.plugin.assembly.archive.ArchiveCreationException
Throws:
org.apache.maven.plugin.assembly.archive.ArchiveCreationException


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