Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
91 1 0 0 98.901% 73.534

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


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.exec.util 7 0 0 0 100% 0.021
org.apache.commons.exec.environment 4 0 0 0 100% 0.005
org.apache.commons.exec 80 1 0 0 98.75% 73.508

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.004
StringUtilTest 4 0 0 0 100% 0.017

org.apache.commons.exec.environment

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

org.apache.commons.exec

Class Tests Errors Failures Skipped Success Rate Time
CommandLineTest 33 0 0 0 100% 0.014
DefaultExecutorTest 37 1 0 0 97.297% 63.224
LogOutputStreamTest 1 0 0 0 100% 0.065
StandAloneTest 1 0 0 0 100% 0.134
TestUtilTest 7 0 0 0 100% 0.004
TutorialTest 1 0 0 0 100% 10.067

Test Cases

[Summary] [Package List] [Test Cases]

CommandLineTest

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

DefaultExecutorTest

testExecute 0.012
testExecuteWithWorkingDirectory 0.012
testExecuteWithInvalidWorkingDirectory 0.01
testExecuteWithError 0.011
testExecuteWithArg 0.014
testExecuteWithSingleEnvironmentVariable 0.013
testExecuteAsync 0.052
testExecuteAsyncWithError 0.051
testExecuteAsyncWithTimelyUserTermination 2.055
testExecuteAsyncWithTooLateUserTermination 6.183
testExecuteWatchdogSync 20.03
testExecuteWatchdogAsync 10.167
testExecuteNonExistingApplication 0.021
testExecuteAsyncWithNonExistingApplication 2.001
testExecuteWithCustomExitValue1 0.012
testExecuteWithCustomExitValue2 0.013
testExecuteWithProcessDestroyer 0.02
testExecuteAsyncWithProcessDestroyer 2.052
testExecuteWithFancyArg 0.028
testExecuteWithRedirectedStreams 0.028
testExecuteWithStdOutErr 0.013
testExecuteWithNullOutErr 0.011
testExecuteWithRedirectOutErr 0.113
testExecuteWithComplexArguments 0.012
testStdInHandling 0.051
testEnvironmentVariables 0.013
testAddEnvironmentVariables 0.016
testAddEnvironmentVariableEmbeddedQuote 0.016
testExec33 0.015
testExec34_1 2.002
testExec34_2 9.02
testExec36_1 0.015
testExec36_2 0.013
testExec41WithStreams 2.016
testExec41WithoutStreams 2.014
testExec44 5.003
testExec49 0.058
Write end dead

EnvironmentUtilTest

testToStrings 0
testGetProcEnvironment 0.002
testGetProcEnvironmentCaseInsensitiveLookup 0
testCaseInsensitiveVariableLookup 0

LogOutputStreamTest

testStdout 0.056

StandAloneTest

testMe 0.133

TestUtilTest

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

TutorialTest

testTutorialExample 10.065

MapUtilTest

testCopyMap 0.002
testMergeMap 0
testPrefixMap 0

StringUtilTest

testNoStringSubstitution 0.003
testDefaultStringSubstitution 0.001
testIncompleteSubstitution 0
testErroneousTemplate 0

Failure Details

[Summary] [Package List] [Test Cases]


testExec49
java.io.IOException: Write end dead