Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
506 0 0 0 100% 8.156

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.cli2.builder 31 0 0 0 100% 0.062
org.apache.commons.cli2.application 7 0 0 0 100% 0.109
org.apache.commons.cli2.option 169 0 0 0 100% 0.734
org.apache.commons.cli2.util 38 0 0 0 100% 0.235
org.apache.commons.cli2.commandline 153 0 0 0 100% 0.655
org.apache.commons.cli2.validation 41 0 0 0 100% 1.032
org.apache.commons.cli2 26 0 0 0 100% 0.173
org.apache.commons.cli2.bug 31 0 0 0 100% 1.078
org.apache.commons.cli2.resource 6 0 0 0 100% 0.031
org.apache.commons.cli2.jdepend 4 0 0 0 100% 4.047

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

org.apache.commons.cli2.builder

Class Tests Errors Failures Skipped Success Rate Time
ArgumentBuilderTest 20 0 0 0 100% 0.031
DefaultOptionBuilderTest 11 0 0 0 100% 0.031

org.apache.commons.cli2.application

Class Tests Errors Failures Skipped Success Rate Time
AntTest 1 0 0 0 100% 0.016
CpTest 4 0 0 0 100% 0.047
CvsTest 1 0 0 0 100% 0.031
LsTest 1 0 0 0 100% 0.015

org.apache.commons.cli2.option

Class Tests Errors Failures Skipped Success Rate Time
ArgumentTest 36 0 0 0 100% 0.234
CommandTest 17 0 0 0 100% 0.032
DefaultOptionTest 14 0 0 0 100% 0.297
GroupTest 33 0 0 0 100% 0.047
NestedGroupTest 3 0 0 0 100% 0.046
ParentTest 26 0 0 0 100% 0.031
PropertyOptionTest 17 0 0 0 100% 0.031
SwitchTest 23 0 0 0 100% 0.016

org.apache.commons.cli2.util

Class Tests Errors Failures Skipped Success Rate Time
ComparatorsTest 15 0 0 0 100% 0.094
HelpFormatterTest 23 0 0 0 100% 0.141

org.apache.commons.cli2.commandline

Class Tests Errors Failures Skipped Success Rate Time
DefaultingCommandLineTest 36 0 0 0 100% 0.141
ParserTest 7 0 0 0 100% 0.015
PreferencesCommandLineTest 36 0 0 0 100% 0.281
PropertiesCommandLineTest 36 0 0 0 100% 0.109
WriteableCommandLineImplTest 38 0 0 0 100% 0.109

org.apache.commons.cli2.validation

Class Tests Errors Failures Skipped Success Rate Time
ClassValidatorTest 13 0 0 0 100% 0.047
DateValidatorTest 9 0 0 0 100% 0.063
EnumValidatorTest 2 0 0 0 100% 0.031
FileValidatorTest 7 0 0 0 100% 0.625
NumberValidatorTest 7 0 0 0 100% 0.016
UrlValidatorTest 3 0 0 0 100% 0.25

org.apache.commons.cli2

Class Tests Errors Failures Skipped Success Rate Time
CommandLineDefaultsTest 15 0 0 0 100% 0.047
DocumentationTest 3 0 0 0 100% 0.094
PrecedenceTest 8 0 0 0 100% 0.032

org.apache.commons.cli2.bug

Class Tests Errors Failures Skipped Success Rate Time
Bug13886Test 1 0 0 0 100% 0.016
Bug13935Test 1 0 0 0 100% 0.015
Bug15046Test 1 0 0 0 100% 0.047
Bug15648Test 1 0 0 0 100% 0.015
Bug27575Test 1 0 0 0 100% 0.032
Bug28005Test 1 0 0 0 100% 0.015
Bug32533Test 1 0 0 0 100% 0.015
BugCLI122Test 1 0 0 0 100% 0
BugCLI123Test 4 0 0 0 100% 0.016
BugCLI126Test 1 0 0 0 100% 0
BugCLI12Test 1 0 0 0 100% 0.015
BugCLI144Test 1 0 0 0 100% 0.016
BugCLI145Test 2 0 0 0 100% 0.015
BugCLI150Test 1 0 0 0 100% 0.031
BugCLI158Test 3 0 0 0 100% 0.032
BugCLI159Test 6 0 0 0 100% 0.016
BugCLI18Test 1 0 0 0 100% 0.719
BugCLI80Test 1 0 0 0 100% 0.063
BugLoopingOptionLookAlikeTest 2 0 0 0 100% 0

org.apache.commons.cli2.resource

Class Tests Errors Failures Skipped Success Rate Time
ResourceHelperTest 6 0 0 0 100% 0.031

org.apache.commons.cli2.jdepend

Class Tests Errors Failures Skipped Success Rate Time
JDependTest 4 0 0 0 100% 4.047

Test Cases

[Summary] [Package List] [Test Cases]

AntTest

testAnt 0

CpTest

testNoSource 0.015
testOneSource 0
testMultiSource 0.016
testHelp 0.016

CvsTest

testCVS 0.016

LsTest

testLs 0

Bug13886Test

testMandatoryGroup 0

Bug13935Test

testRequiredGroup 0

Bug15046Test

testParamNamedAsOption 0.016

Bug15648Test

testQuotedArgumentValue 0

Bug27575Test

testRequiredOptions 0.016

Bug28005Test

testInfiniteLoop 0.015

Bug32533Test

testBlah 0.015

BugCLI122Test

testArgumentWhichStartsWithDash 0

BugCLI123Test

testSingleChildOption 0
testMultipleChildOptions 0.016
testSingleParentOption 0
testParentOptionAndChildOption 0

BugCLI126Test

testMultiplePropertyArgs 0

BugCLI12Test

testBug 0.015

BugCLI144Test

testFileValidator 0

BugCLI145Test

testWithMaximum 0.015
testWithMaximumUsingDefaultValues 0

BugCLI150Test

testNegativeNumber 0.015

BugCLI158Test

testSingleOptionSingleArgument 0
testSingleOptionNoArgument 0.016
testSingleOptionMaximumNumberOfArgument 0.016

BugCLI159Test

testNoChildGroup 0
testNoChildGroupRequired 0
testNoOptions 0
testWithChildOptions 0.016
testWithChildOptionsMissing 0
testRequiredRootGroup 0

BugCLI18Test

testBug 0.578

BugCLI80Test

testBug 0.047

BugLoopingOptionLookAlikeTest

testLoopingOptionLookAlike 0
testLoopingOptionLookAlike2 0

ArgumentBuilderTest

testConsumeRemaining 0
testNullConsumeRemaining 0
testEmptyConsumeRemaining 0
testDefault 0
testDefaultX2 0
testNullDefault 0
testDefaults 0
testNullDefaults 0.015
testId 0
testInitialSeparator 0
testMaximum 0
testNegativeMaximum 0
testMinimum 0
testNegativeMinimum 0
testName 0
testNullName 0
testEmptyName 0
testSubsequentSeparator 0
testValidator 0
testNullValidator 0

DefaultOptionBuilderTest

testName 0
testNew_NullShortPrefix 0
testNew_EmptyShortPrefix 0
testNew_NullLongPrefix 0
testNew_EmptyLongPrefix 0
testCreate 0
testWithDescription 0
testWithRequired 0
testWithChildren 0
testWithArgument 0
testWithId 0.016

DefaultingCommandLineTest

testDefaults 0
testAppendCommandLine 0.015
testInsertCommandLine 0
testTriggers 0
testHasOptionString 0
testHasOptionOption 0
testGetOption 0
testGetValuesString 0
testGetValuesStringList 0
testGetValuesOption 0
testGetValuesOptionList 0
testGetValueString 0
testGetValueStringObject 0
testGetValueOption 0.016
testGetValueOptionObject 0
testGetSwitchString 0
testGetSwitchStringBoolean 0
testGetSwitchOption 0
testGetSwitchOptionBoolean 0
testGetPropertyString 0
testGetPropertyStringString 0
testGetProperties 0.015
testGetOptionCountString 0
testGetOptionCountOption 0
testGetOptions 0
testGetOptionTriggers 0
testProperties 0
testOptions 0
testValues 0
testSwitches 0
testSwitches_True 0
testSwitches_False 0
testGetOptions_Order 0
testGetOptionCount 0.016
testGetOptionCount_Strings 0
testOptionAsArgument 0

ParserTest

testParse_Successful 0
testParse_WithUnexpectedOption 0
testParse_WithUnexpectedShortOption 0
testParseAndHelp_Successful 0.015
testParseAndHelp_ByHelpOption 0
testParseAndHelp_ByHelpTrigger 0
testParseAndHelp_WithUnexpectedOption 0

PreferencesCommandLineTest

testPropertyValues 0.031
testNoSeparator 0.016
testNullOption 0.031
testPreferenceTriggers 0.016
testHasOptionString 0
testHasOptionOption 0
testGetOption 0
testGetValuesString 0.015
testGetValuesStringList 0
testGetValuesOption 0
testGetValuesOptionList 0.016
testGetValueString 0.016
testGetValueStringObject 0
testGetValueOption 0
testGetValueOptionObject 0.015
testGetSwitchString 0
testGetSwitchStringBoolean 0
testGetSwitchOption 0.016
testGetSwitchOptionBoolean 0
testGetPropertyString 0
testGetPropertyStringString 0.016
testGetProperties 0
testGetOptionCountString 0
testGetOptionCountOption 0.015
testGetOptions 0
testGetOptionTriggers 0
testProperties 0
testOptions 0.016
testValues 0
testSwitches 0
testSwitches_True 0
testSwitches_False 0.015
testGetOptions_Order 0
testGetOptionCount 0
testGetOptionCount_Strings 0.016
testOptionAsArgument 0

PropertiesCommandLineTest

testPropertyValues 0
testNoSeparator 0
testNullOption 0
testPropertyTriggers 0
testHasOptionString 0
testHasOptionOption 0
testGetOption 0
testGetValuesString 0
testGetValuesStringList 0
testGetValuesOption 0
testGetValuesOptionList 0
testGetValueString 0
testGetValueStringObject 0
testGetValueOption 0
testGetValueOptionObject 0
testGetSwitchString 0
testGetSwitchStringBoolean 0
testGetSwitchOption 0
testGetSwitchOptionBoolean 0
testGetPropertyString 0
testGetPropertyStringString 0
testGetProperties 0
testGetOptionCountString 0.016
testGetOptionCountOption 0
testGetOptions 0
testGetOptionTriggers 0
testProperties 0
testOptions 0
testValues 0
testSwitches 0
testSwitches_True 0
testSwitches_False 0
testGetOptions_Order 0
testGetOptionCount 0.016
testGetOptionCount_Strings 0
testOptionAsArgument 0

WriteableCommandLineImplTest

testToMakeEclipseSpotTheTestCase 0
testAddOption 0
testAddValue 0
testAddSwitch 0
testAddProperty 0
testLooksLikeOption 0
testHasOptionString 0
testHasOptionOption 0
testGetOption 0
testGetValuesString 0
testGetValuesStringList 0.015
testGetValuesOption 0.016
testGetValuesOptionList 0
testGetValueString 0
testGetValueStringObject 0
testGetValueOption 0
testGetValueOptionObject 0
testGetSwitchString 0
testGetSwitchStringBoolean 0
testGetSwitchOption 0
testGetSwitchOptionBoolean 0
testGetPropertyString 0
testGetPropertyStringString 0
testGetProperties 0
testGetOptionCountString 0.015
testGetOptionCountOption 0
testGetOptions 0
testGetOptionTriggers 0
testProperties 0
testOptions 0
testValues 0
testSwitches 0
testSwitches_True 0.016
testSwitches_False 0
testGetOptions_Order 0
testGetOptionCount 0
testGetOptionCount_Strings 0
testOptionAsArgument 0

CommandLineDefaultsTest

testValues 0
testSwitch_Method 0.015
testSwitch_Method_Option 0
testSwitch_Option 0
testSwitch_Parsed 0
testSwitch_Parsed_Method 0
testSwitch_Parsed_Method_Option 0
testSwitch_Parsed_Option 0.016
testValues_Method 0
testValues_Method_Option 0
testValues_Option 0
testValues_Parsed 0
testValues_Parsed_Method 0
testValues_Parsed_Method_Option 0
testValues_Parsed_Option 0

DocumentationTest

testBasicUsage 0.015
testManualIntroduction 0
testExampleAnt 0.063

JDependTest

testJUnitNotPresent 1.234
testAcceptableDistance 0.688
testNoCyclesPresent 0.906
testApiIndependance 1.219

ArgumentTest

testTriggers 0
testNew 0.141
testProcessValues 0
testProcessValues_BoundaryQuotes 0
testProcessValues_SpareValues 0.015
testProcessValues_Optional 0
testProcessValues_Multiple 0
testProcessValues_Contracted 0
testProcessValues_ContractedTooFew 0
testProcessValues_ContractedTooMany 0
testCanProcess 0
testPrefixes 0
testProcess 0
testValidate 0
testValidate_Minimum 0
testRequired 0
testValidate_Maximum 0
testValidate_Validator 0
testValidate_ValidatorInvalidDate 0
testAppendUsage 0
testAppendUsage_Infinite 0.016
testAppendUsage_InfiniteNoOptional 0
testAppendUsage_InfiniteNoNumbering 0
testAppendUsage_Minimum 0
testGetPreferredName 0
testGetDescription 0
testHelpLines 0
testCanProcess_ConsumeRemaining 0
testProcess_ConsumeRemaining 0
testProcess_ConsumeNothing 0
testProcess_InterrogatedDefaultValue 0
testTooFewDefaults 0
testTooManyDefaults 0
testProcess_InterrogatedDefaultValues 0
testProcess_StripBoundaryQuotes 0
testSourceDestArgument 0

CommandTest

testTriggers 0
testCanProcess 0
testPrefixes 0
testProcess 0
testValidate 0
testAppendUsage 0
testGetPreferredName 0
testGetDescription 0
testHelpLines 0
testProcessParent 0
testProcessParent_Spare 0
testCanProcess_BadMatch 0
testCanProcess_Alias 0
testNullPreferredName 0
testEmotyPreferredName 0
testAppendUsage_NoOptional 0
testAppendUsage_NoAlias 0

DefaultOptionTest

testTriggers 0
testCanProcess 0.063
testPrefixes 0
testProcess 0
testValidate 0.062
testAppendUsage 0
testGetPreferredName 0
testGetDescription 0
testHelpLines 0
testProcessParent 0.016
testCanProcess_BadMatch 0
testAppendUsage_NoOptional 0
testAppendUsage_NoAlias 0
testProcessParent_Burst 0

GroupTest

testTriggers 0
testCanProcess 0
testPrefixes 0
testProcess 0.015
testValidate 0
testAppendUsage 0
testGetPreferredName 0
testGetDescription 0
testHelpLines 0
testCanProcess_BadMatch 0
testAppendUsage_NoOptional 0
testProcessAnonymousArguments 0
testProcessOptions 0
testCanProcess_NullMatch 0
testProcess_Nested 0
testValidate_UnexpectedOption 0
testValidate_MissingOption 0
testValidate_RequiredChild 0
testAppendUsage_NoExpand 0
testAppendUsage_NoExpandOrName 0
testAppendUsage_NoName 0
testAppendUsage_WithArgs 0
testAppendUsage_OptionalChildGroup 0
testAppendUsage_OptionalChildGroupNoSetting 0
testAppendUsage_RequiredChildGroup 0
testHelpLines_NoExpanded 0
testHelpLines_NoName 0
testIsRequired_ChildNoFlagNoMinimum 0
testIsRequired_ChildNoFlagMinimum 0
testIsRequired_ChildFlagNoMinimum 0
testIsRequired_ChildFlagMinimum 0
testIsRequired_ParentNoMinimum 0
testIsRequired_ParentMiminum 0

NestedGroupTest

testNestedGroup 0
testNestedGroupHelp 0.016
testNestedGroupHelpOptional 0.015

ParentTest

testTriggers 0
testCanProcess 0
testPrefixes 0
testProcess 0
testValidate 0
testRequired 0
testAppendUsage 0
testGetPreferredName 0
testGetDescription 0
testHelpLines 0
testProcessParent 0
testCanProcess_BadMatch 0
testNullPreferredName 0
testCanProcess_ContractedArgument 0
testProcess_NoMatch 0
testProcess_Children 0.015
testProcess_Argument 0
testValidate_Children 0
testValidate_Argument 0
testAppendUsage_NoArguments 0
testAppendUsage_NoChildren 0
testAppendUsage_NoArgumentsOrChildren 0
testHelpLines_NoArgument 0
testHelpLines_NoChildren 0
testID 0
testGetId 0

PropertyOptionTest

testTriggers 0
testCanProcess 0
testPrefixes 0
testProcess 0
testValidate 0
testAppendUsage 0
testGetPreferredName 0
testGetDescription 0
testHelpLines 0
testCanProcess_BadMatch 0
testCanProcess_Null 0
testCanProcess_TooShort 0
testProcess_UnexpectedOptionException 0
testProcess_BadPropertyException 0
testProcess_SetToEmpty 0
testAppendUsage_Hidden 0
testHelpLines_NoDisplay 0

SwitchTest

testTriggers 0
testCanProcess 0
testPrefixes 0
testProcess 0
testValidate 0.016
testAppendUsage 0
testGetPreferredName 0
testGetDescription 0
testHelpLines 0
testProcessParent 0
testCanProcess_BadMatch 0
testNullPreferredName 0
testAppendUsage_NoAlias 0
testProcessParent_Disabled 0
testAppendUsage_NoDisabled 0
testAppendUsage_NoEnabled 0
testAppendUsage_NoDisabledOrEnabled 0
testEmptyPreferredName 0
testNullAliases 0
testNullEnablePrefix 0
testNullDisablePrefix 0
testEnabledPrefixStartsWithDisabledPrefix 0
testDisabledPrefixStartsWithEnabledPrefix 0

PrecedenceTest

testSimple 0
testArgument 0
testBurst 0
testChildren 0
testArgumentVsBurst 0
testArgumentVsChildren 0.016
testBurstVsChildren 0
testArgumentVsBurstVsChildren 0

ResourceHelperTest

testOverridden 0.015
testNewMessage1Param 0
testNewMessage2Params 0
testNewMessage3Params 0
testNewMessage4Params 0
testDefaultBundle 0

ComparatorsTest

testGroupFirst 0.015
testGroupLast 0.016
testSwitchFirst 0
testSwitchLast 0
testCommandFirst 0
testCommandLast 0
testDefaultOptionFirst 0
testDefaultOptionLast 0
testNamedFirst 0.016
testNamedLast 0
testPreferredNameFirst 0
testPreferredNameLast 0
testRequiredFirst 0
testRequiredLast 0
testChained 0.016

HelpFormatterTest

testPrint 0.015
testComparator 0.016
testPrintHelp 0.031
testPrintHelp_WithException 0
testPrintHelp_TooNarrow 0
testPrintException 0
testPrintUsage 0.016
testPrintHeader 0
testPrintFooter 0
testPrintDivider 0
testWrap 0
testWrap_WrapNeeded 0
testWrap_BeforeSpace 0
testWrap_AfterSpace 0
testWrap_InWord 0
testWrap_NewLine 0
testWrap_NewLine2 0
testWrap_Below1Length 0.016
testPad 0
testPad_Null 0
testPad_TooLong 0
testPad_TooShort 0
testGutters 0

ClassValidatorTest

testValidName 0
testNameBadStart 0.015
testNameBadEnd 0
testNameBadMiddle 0
testIllegalNameChar 0
testLoadable 0
testLoadValid 0
testLoadInvalid 0
testInstantiate 0
testCreateClassInstance 0
testCreateInterfaceInstance 0
testCreateProtectedInstance 0
testClassloader 0

DateValidatorTest

testValidate 0
testSingleFormatValidate 0
testDefaultDateFormatValidate 0
testDefaultTimeFormatValidate 0
testDefaultDateTimeFormatValidate 0
testDefaultValidator 0.016
testMinimumBounds 0
testFormats 0
testMaximumBounds 0

EnumValidatorTest

testValidate 0.015
testNonMember 0

FileValidatorTest

testValidate 0
testValidate_Directory 0
testValidate_ReadableFile 0
testValidate_WritableFile 0
testValidate_HiddenFile 0.61
testValidate_Existing 0
testValidate_File 0

NumberValidatorTest

testValidate_Minimum 0
testValidate_Maximum 0
testValidate_Number 0
testValidate_Currency 0
testValidate_Percent 0
testValidate_Integer 0
testValidate_ExcessChars 0

UrlValidatorTest

testValidate 0.204
testMalformedURL 0.015
testBadProtocol 0