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 testBuildTypicalMavenInvocationEndToEnd()
           
 void testDebugOptionShouldMaskShowErrorsOption()
           
 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 testShouldSetStrictChecksumPolityFlagFromRequest()
           
 void testShouldSetUpdateSnapshotsFlagFromRequest()
           
 void testShouldSetWorkingDirectoryFromRequest()
           
 void testShouldSetWorkingDirectoryGlobally()
           
 void testShouldSpecifyCustomPropertyFromRequest()
           
 void testShouldSpecifyCustomPropertyWithSpacesInKeyFromRequest()
           
 void testShouldSpecifyCustomPropertyWithSpacesInValueFromRequest()
           
 void testShouldSpecifyCustomSettingsLocationFromRequest()
           
 void testShouldSpecifyFileOptionUsingNonStandardPomFileLocation()
           
 void testShouldSpecifyFileOptionUsingNonStandardPomInBasedir()
           
 void testShouldSpecifyPomFileWhenBasedirSpecifiedWithPomFileName()
           
 void testShouldSpecifySingleGoalFromRequest()
           
 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()

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

testShouldSpecifyCustomSettingsLocationFromRequest

public void testShouldSpecifyCustomSettingsLocationFromRequest()
                                                        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

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

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-2009 The Apache Software Foundation. All Rights Reserved.