Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
70 0 0 0 100% 80.825

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.exec.util 3 0 0 0 100% 0.007
org.apache.commons.exec 63 0 0 0 100% 80.715
org.apache.commons.exec.environment 4 0 0 0 100% 0.103

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.exec.util

Class Tests Errors Failures Skipped Success Rate Time
MapUtilTest 3 0 0 0 100% 0.007

org.apache.commons.exec

Class Tests Errors Failures Skipped Success Rate Time
CommandLineTest 31 0 0 0 100% 0.046
DefaultExecutorTest 25 0 0 0 100% 80.66
TestUtilTest 7 0 0 0 100% 0.009

org.apache.commons.exec.environment

Class Tests Errors Failures Skipped Success Rate Time
EnvironmentUtilTest 4 0 0 0 100% 0.103

Test Cases

CommandLineTest

testExecutable 0.005
testExecutableZeroLengthString 0
testExecutableWhitespaceString 0
testNullExecutable 0
testAddArgument 0.001
testAddNullArgument 0
testAddArgumentWithSpace 0
testAddArgumentWithQuote 0
testAddArgumentWithQuotesAround 0
testAddArgumentWithSingleQuote 0
testAddArgumentWithBothQuotes 0.001
testAddArguments 0
testAddArgumentsWithQuotes 0
testAddArgumentsWithQuotesAndSpaces 0.001
testAddArgumentsArray 0
testAddArgumentsArrayNull 0
testAddTwoArguments 0
testParseCommandLine 0
testParseCommandLineWithQuotes 0
testParseCommandLineWithUnevenQuotes 0
testParseCommandLineWithNull 0
testParseCommandLineWithOnlyWhitespace 0
testParseComplexCommandLine1 0.001
testParseComplexCommandLine2 0
testComplexAddArgument 0.001
testComplexAddArguments1 0
testComplexAddArguments2 0
testCommandLineParsingWithExpansion1 0.001
testCommandLineParsingWithExpansion2 0
testCommandLineParsingWithExpansion3 0
testToString 0

DefaultExecutorTest

testExecute 0.202
testExecuteWithWorkingDirectory 0.043
testExecuteWithInvalidWorkingDirectory 0.001
testExecuteWithError 0.063
testExecuteWithArg 0.043
testExecuteWithEnv 0.045
testExecuteAsync 2.005
testExecuteAsyncWithError 2.002
testExecuteAsyncWithTimelyUserTermination 2.096
testExecuteAsyncWithTooLateUserTermination 6.002
testExecuteWatchdog 10.21
testExecuteNonExistingApplication 0.001
testExecuteAsyncWithNonExistingApplication 2
testExecuteStability 43.718
testExecuteWithCustomExitValue1 0.043
testExecuteWithCustomExitValue2 0.044
testExecuteWithProcessDestroyer 0.048
testExecuteAsyncWithProcessDestroyer 2.582
testExecuteWithFancyArg 0.044
testExecuteWithRedirectedStreams 0.07
testExecuteWithStdin 0.11
testExecuteWithStdOutErr 0.044
testExecuteWithNullOutErr 0.045
testExecuteWithRedirectOutErr 0.068
testExec41 9.065

EnvironmentUtilTest

testToStrings 0.024
testGetProcEnvironment 0.032
testGetProcEnvironmentCaseInsensitiveLookup 0.001
testCaseInsensitiveVariableLookup 0.001

TestUtilTest

testAssertArrayEquals 0.001
testAssertArrayNotEquals 0
testAssertArrayNotOrderEquals 0
testAssertArrayEqualsOrderNotSignificant 0
testAssertArrayEqualsNullNull 0.001
testAssertArrayEqualsActualNull 0
testAssertArrayEqualsExpectedNull 0

MapUtilTest

testCopyMap 0.002
testMergeMap 0.001
testPrefixMap 0.001