org.apache.maven.plugin.assembly.utils
Class AssemblyFormatUtilsTest

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

public class AssemblyFormatUtilsTest
extends junit.framework.TestCase


Constructor Summary
AssemblyFormatUtilsTest()
           
 
Method Summary
 void testEvalFileNameMapping_ShouldAppendDashClassifierWhenClassifierPresent()
           
 void testEvalFileNameMapping_ShouldInsertClassifierAheadOfExtension()
           
 void testEvalFileNameMapping_ShouldNotAppendDashClassifierWhenClassifierMissing()
           
 void testEvalFileNameMapping_ShouldPassExpressionThroughUnchanged()
           
 void testEvalFileNameMapping_ShouldResolveArtifactId()
           
 void testEvalFileNameMapping_ShouldResolveArtifactIdAndBaseVersionInOutDir_UseArtifactInfo_WithValidMainProject()
           
 void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfo()
           
 void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfoAndModulePrefix()
           
 void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef()
           
 void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject()
           
 void testEvalFileNameMapping_ShouldResolveExtension()
           
 void testEvalFileNameMapping_ShouldResolveGroupId()
           
 void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfo()
           
 void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfoAndModulePrefix()
           
 void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef()
           
 void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject()
           
 void testEvalFileNameMapping_ShouldResolveProjectProperty()
           
 void testEvalFileNameMapping_ShouldResolveProjectPropertyAltExpr()
           
 void testEvalFileNameMapping_ShouldResolveSystemPropertyWithoutMainProjectPresent()
           
 void testEvalFileNameMapping_ShouldResolveVersion()
           
 void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfo()
           
 void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfoAndModulePrefix()
           
 void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef()
           
 void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject()
           
 void testGetDistroName_ShouldUseFinalNamePlusClassifierWhenAppendAssemblyIdIsNull()
           
 void testGetDistroName_ShouldUseJustFinalNameWithNoAppendAssemblyIdOrClassifier()
           
 void testGetOutputDir_ShouldAppendSlashToOutDirWhenMissingAndIncludeBaseFalseAndNoExpressions()
           
 void testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions_CheckWithBackslash()
           
 void testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions()
           
 void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseArtifactInfo()
           
 void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef()
           
 void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject()
           
 void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseModuleInfo()
           
 void testGetOutputDir_ShouldResolveArtifactIdInOutDir()
           
 void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseArtifactInfo()
           
 void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject_projectRef()
           
 void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject()
           
 void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseModuleInfo()
           
 void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir()
           
 void testGetOutputDir_ShouldResolveFinalNameInOutDir()
           
 void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseArtifactInfo()
           
 void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef()
           
 void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject()
           
 void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseModuleInfo()
           
 void testGetOutputDir_ShouldResolveGroupIdInOutDir()
           
 void testGetOutputDir_ShouldResolveProjectProperty()
           
 void testGetOutputDir_ShouldResolveProjectPropertyAltExpr()
           
 void testGetOutputDir_ShouldResolveVersionInLargerOutDirExpr()
           
 void testGetOutputDir_ShouldResolveVersionInOutDir_UseArtifactInfo()
           
 void testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef()
           
 void testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject()
           
 void testGetOutputDir_ShouldResolveVersionInOutDir_UseModuleInfo()
           
 void testGetOutputDir_ShouldResolveVersionInOutDir()
           
 void testGetOutputDir_ShouldReturnEmptyPathWhenAllInputIsEmptyAndIncludeBaseFalse()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

AssemblyFormatUtilsTest

public AssemblyFormatUtilsTest()
Method Detail

testGetDistroName_ShouldUseJustFinalNameWithNoAppendAssemblyIdOrClassifier

public void testGetDistroName_ShouldUseJustFinalNameWithNoAppendAssemblyIdOrClassifier()

testGetDistroName_ShouldUseFinalNamePlusClassifierWhenAppendAssemblyIdIsNull

public void testGetDistroName_ShouldUseFinalNamePlusClassifierWhenAppendAssemblyIdIsNull()

testGetOutputDir_ShouldResolveGroupIdInOutDir_UseArtifactInfo

public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseArtifactInfo()
                                                                   throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseArtifactInfo

public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseArtifactInfo()
                                                                      throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveVersionInOutDir_UseArtifactInfo

public void testGetOutputDir_ShouldResolveVersionInOutDir_UseArtifactInfo()
                                                                   throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseArtifactInfo

public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseArtifactInfo()
                                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveGroupIdInOutDir_UseModuleInfo

public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseModuleInfo()
                                                                 throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseModuleInfo

public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseModuleInfo()
                                                                    throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveVersionInOutDir_UseModuleInfo

public void testGetOutputDir_ShouldResolveVersionInOutDir_UseModuleInfo()
                                                                 throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseModuleInfo

public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseModuleInfo()
                                                                        throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject

public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject()
                                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject

public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject()
                                                                             throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject

public void testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject()
                                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject

public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject()
                                                                                 throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef

public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef()
                                                                                     throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef

public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef()
                                                                                        throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef

public void testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef()
                                                                                     throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject_projectRef

public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject_projectRef()
                                                                                            throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions

public void testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions()
                                                                               throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions_CheckWithBackslash

public void testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions_CheckWithBackslash()
                                                                                                  throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldAppendSlashToOutDirWhenMissingAndIncludeBaseFalseAndNoExpressions

public void testGetOutputDir_ShouldAppendSlashToOutDirWhenMissingAndIncludeBaseFalseAndNoExpressions()
                                                                                              throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveGroupIdInOutDir

public void testGetOutputDir_ShouldResolveGroupIdInOutDir()
                                                   throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveArtifactIdInOutDir

public void testGetOutputDir_ShouldResolveArtifactIdInOutDir()
                                                      throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveVersionInOutDir

public void testGetOutputDir_ShouldResolveVersionInOutDir()
                                                   throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveVersionInLargerOutDirExpr

public void testGetOutputDir_ShouldResolveVersionInLargerOutDirExpr()
                                                             throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveFinalNameInOutDir

public void testGetOutputDir_ShouldResolveFinalNameInOutDir()
                                                     throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveBuildFinalNameInOutDir

public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir()
                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldReturnEmptyPathWhenAllInputIsEmptyAndIncludeBaseFalse

public void testGetOutputDir_ShouldReturnEmptyPathWhenAllInputIsEmptyAndIncludeBaseFalse()
                                                                                  throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveProjectProperty

public void testGetOutputDir_ShouldResolveProjectProperty()
                                                   throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testGetOutputDir_ShouldResolveProjectPropertyAltExpr

public void testGetOutputDir_ShouldResolveProjectPropertyAltExpr()
                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveArtifactIdAndBaseVersionInOutDir_UseArtifactInfo_WithValidMainProject

public void testEvalFileNameMapping_ShouldResolveArtifactIdAndBaseVersionInOutDir_UseArtifactInfo_WithValidMainProject()
                                                                                                                throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfo

public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfo()
                                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfo

public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfo()
                                                                             throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfo

public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfo()
                                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfoAndModulePrefix

public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfoAndModulePrefix()
                                                                                         throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfoAndModulePrefix

public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfoAndModulePrefix()
                                                                                            throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfoAndModulePrefix

public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfoAndModulePrefix()
                                                                                         throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject

public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject()
                                                                                 throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject

public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject()
                                                                                    throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject

public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject()
                                                                                 throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef

public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef()
                                                                                            throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef

public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef()
                                                                                               throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef

public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef()
                                                                                            throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldPassExpressionThroughUnchanged

public void testEvalFileNameMapping_ShouldPassExpressionThroughUnchanged()
                                                                  throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldInsertClassifierAheadOfExtension

public void testEvalFileNameMapping_ShouldInsertClassifierAheadOfExtension()
                                                                    throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldAppendDashClassifierWhenClassifierPresent

public void testEvalFileNameMapping_ShouldAppendDashClassifierWhenClassifierPresent()
                                                                             throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldNotAppendDashClassifierWhenClassifierMissing

public void testEvalFileNameMapping_ShouldNotAppendDashClassifierWhenClassifierMissing()
                                                                                throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveGroupId

public void testEvalFileNameMapping_ShouldResolveGroupId()
                                                  throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveArtifactId

public void testEvalFileNameMapping_ShouldResolveArtifactId()
                                                     throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveVersion

public void testEvalFileNameMapping_ShouldResolveVersion()
                                                  throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveExtension

public void testEvalFileNameMapping_ShouldResolveExtension()
                                                    throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveProjectProperty

public void testEvalFileNameMapping_ShouldResolveProjectProperty()
                                                          throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveProjectPropertyAltExpr

public void testEvalFileNameMapping_ShouldResolveProjectPropertyAltExpr()
                                                                 throws AssemblyFormattingException
Throws:
AssemblyFormattingException

testEvalFileNameMapping_ShouldResolveSystemPropertyWithoutMainProjectPresent

public void testEvalFileNameMapping_ShouldResolveSystemPropertyWithoutMainProjectPresent()
                                                                                  throws AssemblyFormattingException
Throws:
AssemblyFormattingException


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