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_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 AssemblyFormattingException
Throws:
AssemblyFormattingException

testCreateFileSet_ShouldPrependModuleDirWhenOutDirIsProvided

public void testCreateFileSet_ShouldPrependModuleDirWhenOutDirIsProvided()
                                                                  throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testCreateFileSet_ShouldAddExcludesForSubModulesWhenExcludeSubModDirsIsTrue

public void testCreateFileSet_ShouldAddExcludesForSubModulesWhenExcludeSubModDirsIsTrue()
                                                                                 throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testExecute_ShouldSkipIfNoModuleSetsFound

public void testExecute_ShouldSkipIfNoModuleSetsFound()
                                               throws ArchiveCreationException,
                                                      AssemblyFormattingException,
                                                      InvalidAssemblerConfigurationException,
                                                      DependencyResolutionException
Throws:
ArchiveCreationException
AssemblyFormattingException
InvalidAssemblerConfigurationException
DependencyResolutionException

testExecute_ShouldAddOneModuleSetWithOneModuleInIt

public void testExecute_ShouldAddOneModuleSetWithOneModuleInIt()
                                                        throws ArchiveCreationException,
                                                               AssemblyFormattingException,
                                                               IOException,
                                                               InvalidAssemblerConfigurationException,
                                                               DependencyResolutionException
Throws:
ArchiveCreationException
AssemblyFormattingException
IOException
InvalidAssemblerConfigurationException
DependencyResolutionException

testAddModuleBinaries_ShouldReturnImmediatelyWhenBinariesIsNull

public void testAddModuleBinaries_ShouldReturnImmediatelyWhenBinariesIsNull()
                                                                     throws ArchiveCreationException,
                                                                            AssemblyFormattingException,
                                                                            InvalidAssemblerConfigurationException,
                                                                            DependencyResolutionException
Throws:
ArchiveCreationException
AssemblyFormattingException
InvalidAssemblerConfigurationException
DependencyResolutionException

testAddModuleBinaries_ShouldFilterPomModule

public void testAddModuleBinaries_ShouldFilterPomModule()
                                                 throws ArchiveCreationException,
                                                        AssemblyFormattingException,
                                                        IOException,
                                                        InvalidAssemblerConfigurationException,
                                                        DependencyResolutionException
Throws:
ArchiveCreationException
AssemblyFormattingException
IOException
InvalidAssemblerConfigurationException
DependencyResolutionException

testAddModuleBinaries_ShouldAddOneModuleAttachmentArtifactAndNoDeps

public void testAddModuleBinaries_ShouldAddOneModuleAttachmentArtifactAndNoDeps()
                                                                         throws ArchiveCreationException,
                                                                                AssemblyFormattingException,
                                                                                IOException,
                                                                                InvalidAssemblerConfigurationException,
                                                                                DependencyResolutionException
Throws:
ArchiveCreationException
AssemblyFormattingException
IOException
InvalidAssemblerConfigurationException
DependencyResolutionException

testAddModuleBinaries_ShouldFailWhenOneModuleDoesntHaveAttachmentWithMatchingClassifier

public void testAddModuleBinaries_ShouldFailWhenOneModuleDoesntHaveAttachmentWithMatchingClassifier()
                                                                                             throws ArchiveCreationException,
                                                                                                    AssemblyFormattingException,
                                                                                                    IOException,
                                                                                                    DependencyResolutionException
Throws:
ArchiveCreationException
AssemblyFormattingException
IOException
DependencyResolutionException

testAddModuleBinaries_ShouldAddOneModuleArtifactAndNoDeps

public void testAddModuleBinaries_ShouldAddOneModuleArtifactAndNoDeps()
                                                               throws ArchiveCreationException,
                                                                      AssemblyFormattingException,
                                                                      IOException,
                                                                      InvalidAssemblerConfigurationException,
                                                                      DependencyResolutionException
Throws:
ArchiveCreationException
AssemblyFormattingException
IOException
InvalidAssemblerConfigurationException
DependencyResolutionException

testAddModuleArtifact_ShouldThrowExceptionWhenArtifactFileIsNull

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

testAddModuleArtifact_ShouldAddOneArtifact

public void testAddModuleArtifact_ShouldAddOneArtifact()
                                                throws AssemblyFormattingException,
                                                       IOException,
                                                       ArchiveCreationException
Throws:
AssemblyFormattingException
IOException
ArchiveCreationException

testAddModuleSourceFileSets_ShouldReturnImmediatelyIfSourcesIsNull

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

testAddModuleSourceFileSets_ShouldAddOneSourceDirectory

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

testGetModuleProjects_ShouldReturnNothingWhenReactorContainsOnlyCurrentProject

public void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsOnlyCurrentProject()
                                                                                    throws ArchiveCreationException
Throws:
ArchiveCreationException

testGetModuleProjects_ShouldReturnNothingWhenReactorContainsTwoSiblingProjects

public void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsTwoSiblingProjects()
                                                                                    throws ArchiveCreationException
Throws:
ArchiveCreationException

testGetModuleProjects_ShouldReturnModuleOfCurrentProject

public void testGetModuleProjects_ShouldReturnModuleOfCurrentProject()
                                                              throws ArchiveCreationException
Throws:
ArchiveCreationException

testGetModuleProjects_ShouldReturnDescendentModulesOfCurrentProject

public void testGetModuleProjects_ShouldReturnDescendentModulesOfCurrentProject()
                                                                         throws ArchiveCreationException
Throws:
ArchiveCreationException

testGetModuleProjects_ShouldExcludeModuleAndDescendentsTransitively

public void testGetModuleProjects_ShouldExcludeModuleAndDescendentsTransitively()
                                                                         throws ArchiveCreationException
Throws:
ArchiveCreationException


Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.