org.apache.maven.shared.invoker
Class MavenCommandLineBuilderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.shared.invoker.MavenCommandLineBuilderTest
All Implemented Interfaces:
junit.framework.Test

public class MavenCommandLineBuilderTest
extends junit.framework.TestCase


Constructor Summary
MavenCommandLineBuilderTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testActivateReactor()
           
 void testActivateReactorIncludesExcludes()
           
 void testAlsoMake()
           
 void testAlsoMakeDependents()
           
 void testBuildTypicalMavenInvocationEndToEnd()
           
 void testDebugOptionShouldMaskShowErrorsOption()
           
 void testMvnCommand()
           
 void testProjectsAndAlsoMake()
           
 void testProjectsAndAlsoMakeAndAlsoMakeDependents()
           
 void testProjectsAndAlsoMakeDependents()
           
 void testRequestProvidedLocalRepoLocationShouldOverrideGlobal()
           
 void testRequestProvidedWorkingDirectoryShouldOverrideGlobal()
           
 void testShouldFailIfLoggerSetToNull()
           
 void testShouldFailToSetLocalRepoLocationFromRequestWhenItIsAFile()
           
 void testShouldFailToSetLocalRepoLocationGloballyWhenItIsAFile()
           
 void testShouldFindDummyMavenExecutable()
           
 void testShouldInsertActivatedProfiles()
           
 void testShouldNotSpecifyFileOptionUsingStandardPomFileLocation()
           
 void testShouldNotSpecifyFileOptionUsingStandardPomInBasedir()
           
 void testShouldSetBatchModeFlagFromRequest()
           
 void testShouldSetDebugFlagFromRequest()
           
 void testShouldSetEnvVar_MAVEN_TERMINATE_CMD()
           
 void testShouldSetErrorFlagFromRequest()
           
 void testShouldSetFailAtEndFlagFromRequest()
           
 void testShouldSetFailNeverFlagFromRequest()
           
 void testShouldSetLaxChecksumPolicyFlagFromRequest()
           
 void testShouldSetLocalRepoLocationFromRequest()
           
 void testShouldSetLocalRepoLocationGlobally()
           
 void testShouldSetOfflineFlagFromRequest()
           
 void testShouldSetResumeFrom()
           
 void testShouldSetStrictChecksumPolityFlagFromRequest()
           
 void testShouldSetUpdateSnapshotsFlagFromRequest()
           
 void testShouldSetWorkingDirectoryFromRequest()
           
 void testShouldSetWorkingDirectoryGlobally()
           
 void testShouldSpecifyCustomGlobalSettingsLocationFromRequest()
           
 void testShouldSpecifyCustomPropertyFromRequest()
           
 void testShouldSpecifyCustomPropertyWithSpacesInKeyFromRequest()
           
 void testShouldSpecifyCustomPropertyWithSpacesInValueFromRequest()
           
 void testShouldSpecifyCustomToolchainsLocationFromRequest()
           
 void testShouldSpecifyCustomUserSettingsLocationFromRequest()
           
 void testShouldSpecifyFileOptionUsingNonStandardPomFileLocation()
           
 void testShouldSpecifyFileOptionUsingNonStandardPomInBasedir()
           
 void testShouldSpecifyPomFileWhenBasedirSpecifiedWithPomFileName()
           
 void testShouldSpecifySingleGoalFromRequest()
           
 void testShouldSpecifyThreadsFromRequest()
           
 void testShouldSpecifyTwoGoalsFromRequest()
           
 void testShouldUseDefaultOfFailFastWhenSpecifiedInRequest()
           
 void testShouldUseDefaultPomFileWhenBasedirSpecifiedWithoutPomFileName()
           
 void testShouldUseSystemOutLoggerWhenNoneSpecified()
           
 void testWrapwithQuotes()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenCommandLineBuilderTest

public MavenCommandLineBuilderTest()
Method Detail

testWrapwithQuotes

public void testWrapwithQuotes()

testShouldFailToSetLocalRepoLocationGloballyWhenItIsAFile

public void testShouldFailToSetLocalRepoLocationGloballyWhenItIsAFile()
                                                               throws IOException
Throws:
IOException

testShouldFailToSetLocalRepoLocationFromRequestWhenItIsAFile

public void testShouldFailToSetLocalRepoLocationFromRequestWhenItIsAFile()
                                                                  throws IOException
Throws:
IOException

testShouldSetLocalRepoLocationGlobally

public void testShouldSetLocalRepoLocationGlobally()
                                            throws Exception
Throws:
Exception

testShouldSetLocalRepoLocationFromRequest

public void testShouldSetLocalRepoLocationFromRequest()
                                               throws Exception
Throws:
Exception

testRequestProvidedLocalRepoLocationShouldOverrideGlobal

public void testRequestProvidedLocalRepoLocationShouldOverrideGlobal()
                                                              throws Exception
Throws:
Exception

testShouldSetWorkingDirectoryGlobally

public void testShouldSetWorkingDirectoryGlobally()
                                           throws Exception
Throws:
Exception

testShouldSetWorkingDirectoryFromRequest

public void testShouldSetWorkingDirectoryFromRequest()
                                              throws Exception
Throws:
Exception

testRequestProvidedWorkingDirectoryShouldOverrideGlobal

public void testRequestProvidedWorkingDirectoryShouldOverrideGlobal()
                                                             throws Exception
Throws:
Exception

testShouldUseSystemOutLoggerWhenNoneSpecified

public void testShouldUseSystemOutLoggerWhenNoneSpecified()
                                                   throws Exception
Throws:
Exception

testShouldFailIfLoggerSetToNull

public void testShouldFailIfLoggerSetToNull()

testShouldFindDummyMavenExecutable

public void testShouldFindDummyMavenExecutable()
                                        throws Exception
Throws:
Exception

testShouldSetBatchModeFlagFromRequest

public void testShouldSetBatchModeFlagFromRequest()

testShouldSetOfflineFlagFromRequest

public void testShouldSetOfflineFlagFromRequest()

testShouldSetUpdateSnapshotsFlagFromRequest

public void testShouldSetUpdateSnapshotsFlagFromRequest()

testShouldSetDebugFlagFromRequest

public void testShouldSetDebugFlagFromRequest()

testShouldSetErrorFlagFromRequest

public void testShouldSetErrorFlagFromRequest()

testDebugOptionShouldMaskShowErrorsOption

public void testDebugOptionShouldMaskShowErrorsOption()

testActivateReactor

public void testActivateReactor()

testActivateReactorIncludesExcludes

public void testActivateReactorIncludesExcludes()

testAlsoMake

public void testAlsoMake()

testProjectsAndAlsoMake

public void testProjectsAndAlsoMake()

testAlsoMakeDependents

public void testAlsoMakeDependents()

testProjectsAndAlsoMakeDependents

public void testProjectsAndAlsoMakeDependents()

testProjectsAndAlsoMakeAndAlsoMakeDependents

public void testProjectsAndAlsoMakeAndAlsoMakeDependents()

testShouldSetResumeFrom

public void testShouldSetResumeFrom()

testShouldSetStrictChecksumPolityFlagFromRequest

public void testShouldSetStrictChecksumPolityFlagFromRequest()

testShouldSetLaxChecksumPolicyFlagFromRequest

public void testShouldSetLaxChecksumPolicyFlagFromRequest()

testShouldSetFailAtEndFlagFromRequest

public void testShouldSetFailAtEndFlagFromRequest()

testShouldSetFailNeverFlagFromRequest

public void testShouldSetFailNeverFlagFromRequest()

testShouldUseDefaultOfFailFastWhenSpecifiedInRequest

public void testShouldUseDefaultOfFailFastWhenSpecifiedInRequest()

testShouldSpecifyFileOptionUsingNonStandardPomFileLocation

public void testShouldSpecifyFileOptionUsingNonStandardPomFileLocation()
                                                                throws Exception
Throws:
Exception

testShouldSpecifyFileOptionUsingNonStandardPomInBasedir

public void testShouldSpecifyFileOptionUsingNonStandardPomInBasedir()
                                                             throws Exception
Throws:
Exception

testShouldNotSpecifyFileOptionUsingStandardPomFileLocation

public void testShouldNotSpecifyFileOptionUsingStandardPomFileLocation()
                                                                throws Exception
Throws:
Exception

testShouldNotSpecifyFileOptionUsingStandardPomInBasedir

public void testShouldNotSpecifyFileOptionUsingStandardPomInBasedir()
                                                             throws Exception
Throws:
Exception

testShouldUseDefaultPomFileWhenBasedirSpecifiedWithoutPomFileName

public void testShouldUseDefaultPomFileWhenBasedirSpecifiedWithoutPomFileName()
                                                                       throws Exception
Throws:
Exception

testShouldSpecifyPomFileWhenBasedirSpecifiedWithPomFileName

public void testShouldSpecifyPomFileWhenBasedirSpecifiedWithPomFileName()
                                                                 throws Exception
Throws:
Exception

testShouldSpecifyCustomUserSettingsLocationFromRequest

public void testShouldSpecifyCustomUserSettingsLocationFromRequest()
                                                            throws Exception
Throws:
Exception

testShouldSpecifyCustomGlobalSettingsLocationFromRequest

public void testShouldSpecifyCustomGlobalSettingsLocationFromRequest()
                                                              throws Exception
Throws:
Exception

testShouldSpecifyCustomToolchainsLocationFromRequest

public void testShouldSpecifyCustomToolchainsLocationFromRequest()
                                                          throws Exception
Throws:
Exception

testShouldSpecifyCustomPropertyFromRequest

public void testShouldSpecifyCustomPropertyFromRequest()
                                                throws IOException
Throws:
IOException

testShouldSpecifyCustomPropertyWithSpacesInValueFromRequest

public void testShouldSpecifyCustomPropertyWithSpacesInValueFromRequest()
                                                                 throws IOException
Throws:
IOException

testShouldSpecifyCustomPropertyWithSpacesInKeyFromRequest

public void testShouldSpecifyCustomPropertyWithSpacesInKeyFromRequest()
                                                               throws IOException
Throws:
IOException

testShouldSpecifySingleGoalFromRequest

public void testShouldSpecifySingleGoalFromRequest()
                                            throws IOException
Throws:
IOException

testShouldSpecifyTwoGoalsFromRequest

public void testShouldSpecifyTwoGoalsFromRequest()
                                          throws IOException
Throws:
IOException

testShouldSpecifyThreadsFromRequest

public void testShouldSpecifyThreadsFromRequest()
                                         throws IOException
Throws:
IOException

testBuildTypicalMavenInvocationEndToEnd

public void testBuildTypicalMavenInvocationEndToEnd()
                                             throws Exception
Throws:
Exception

testShouldSetEnvVar_MAVEN_TERMINATE_CMD

public void testShouldSetEnvVar_MAVEN_TERMINATE_CMD()
                                             throws Exception
Throws:
Exception

testShouldInsertActivatedProfiles

public void testShouldInsertActivatedProfiles()
                                       throws Exception
Throws:
Exception

testMvnCommand

public void testMvnCommand()
                    throws Exception
Throws:
Exception

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


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