Summary

Tests Errors Failures Skipped Success Rate Time
477 0 0 0 100% 1.784

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.cli2.util 38 0 0 0 100% 0.063
org.apache.commons.cli2.resource 6 0 0 0 100% 0.016
org.apache.commons.cli2 26 0 0 0 100% 0.047
org.apache.commons.cli2.commandline 152 0 0 0 100% 0.158
org.apache.commons.cli2.bug 13 0 0 0 100% 0.076
org.apache.commons.cli2.validation 41 0 0 0 100% 0.282
org.apache.commons.cli2.jdepend 4 0 0 0 100% 0.875
org.apache.commons.cli2.builder 31 0 0 0 100% 0.047
org.apache.commons.cli2.application 7 0 0 0 100% 0.031
org.apache.commons.cli2.option 159 0 0 0 100% 0.189

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

org.apache.commons.cli2.util

Class Tests Errors Failures Skipped Success Rate Time
ComparatorsTest 15 0 0 0 100% 0.032
HelpFormatterTest 23 0 0 0 100% 0.031

org.apache.commons.cli2.resource

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

org.apache.commons.cli2

Class Tests Errors Failures Skipped Success Rate Time
CommandLineDefaultsTest 15 0 0 0 100% 0.015
DocumentationTest 3 0 0 0 100% 0.016
PrecedenceTest 8 0 0 0 100% 0.016

org.apache.commons.cli2.commandline

Class Tests Errors Failures Skipped Success Rate Time
DefaultingCommandLineTest 36 0 0 0 100% 0.032
ParserTest 6 0 0 0 100% 0
PreferencesCommandLineTest 36 0 0 0 100% 0.078
PropertiesCommandLineTest 36 0 0 0 100% 0.032
WriteableCommandLineImplTest 38 0 0 0 100% 0.016

org.apache.commons.cli2.bug

Class Tests Errors Failures Skipped Success Rate Time
Bug13886Test 1 0 0 0 100% 0
Bug13935Test 1 0 0 0 100% 0
Bug15046Test 1 0 0 0 100% 0
Bug15648Test 1 0 0 0 100% 0.015
Bug27575Test 1 0 0 0 100% 0.015
Bug28005Test 1 0 0 0 100% 0
Bug32533Test 1 0 0 0 100% 0
BugCLI122Test 1 0 0 0 100% 0.031
BugCLI12Test 1 0 0 0 100% 0
BugCLI18Test 1 0 0 0 100% 0
BugCLI80Test 1 0 0 0 100% 0.015
BugLoopingOptionLookAlikeTest 2 0 0 0 100% 0

org.apache.commons.cli2.validation

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

org.apache.commons.cli2.jdepend

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

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.016

org.apache.commons.cli2.application

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

org.apache.commons.cli2.option

Class Tests Errors Failures Skipped Success Rate Time
ArgumentTest 36 0 0 0 100% 0.094
CommandTest 17 0 0 0 100% 0.016
DefaultOptionTest 14 0 0 0 100% 0.016
GroupTest 24 0 0 0 100% 0.016
NestedGroupTest 2 0 0 0 100% 0
ParentTest 26 0 0 0 100% 0
PropertyOptionTest 17 0 0 0 100% 0.031
SwitchTest 23 0 0 0 100% 0.016

Test Cases

AntTest

testAnt 0.015

CpTest

testNoSource 0
testOneSource 0
testMultiSource 0
testHelp 0

CvsTest

testCVS 0

LsTest

testLs 0

Bug13886Test

testMandatoryGroup 0

Bug13935Test

testRequiredGroup 0

Bug15046Test

testParamNamedAsOption 0

Bug15648Test

testQuotedArgumentValue 0

Bug27575Test

testRequiredOptions 0.015

Bug28005Test

testInfiniteLoop 0

Bug32533Test

testBlah 0

BugCLI122Test

testArgumentWhichStartsWithDash 0.016

BugCLI12Test

testBug 0

BugCLI18Test

testBug 0

BugCLI80Test

testBug 0.015

BugLoopingOptionLookAlikeTest

testLoopingOptionLookAlike 0
testLoopingOptionLookAlike2 0

ArgumentBuilderTest

testConsumeRemaining 0
testNullConsumeRemaining 0
testEmptyConsumeRemaining 0
testDefault 0
testDefaultX2 0
testNullDefault 0
testDefaults 0
testNullDefaults 0
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.016
testNew_NullLongPrefix 0
testNew_EmptyLongPrefix 0
testCreate 0
testWithDescription 0
testWithRequired 0
testWithChildren 0
testWithArgument 0
testWithId 0

DefaultingCommandLineTest

testDefaults 0
testAppendCommandLine 0
testInsertCommandLine 0
testTriggers 0.016
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
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
testGetOptionCount_Strings 0
testOptionAsArgument 0.016

ParserTest

testParse_Successful 0
testParse_WithUnexpectedOption 0
testParseAndHelp_Successful 0
testParseAndHelp_ByHelpOption 0
testParseAndHelp_ByHelpTrigger 0
testParseAndHelp_WithUnexpectedOption 0

PreferencesCommandLineTest

testPropertyValues 0.031
testNoSeparator 0
testNullOption 0
testPreferenceTriggers 0.016
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.016
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
testGetOptionCount_Strings 0
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
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
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
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
testGetOptionCount_Strings 0
testOptionAsArgument 0

CommandLineDefaultsTest

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

DocumentationTest

testBasicUsage 0.016
testManualIntroduction 0
testExampleAnt 0

JDependTest

testJUnitNotPresent 0.203
testAcceptableDistance 0.188
testNoCyclesPresent 0.156
testApiIndependance 0.328

ArgumentTest

testTriggers 0
testNew 0.031
testProcessValues 0
testProcessValues_BoundaryQuotes 0
testProcessValues_SpareValues 0
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
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.016

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.016
testNullPreferredName 0
testEmotyPreferredName 0
testAppendUsage_NoOptional 0
testAppendUsage_NoAlias 0

DefaultOptionTest

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

GroupTest

testTriggers 0
testCanProcess 0
testPrefixes 0
testProcess 0
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
testHelpLines_NoExpanded 0
testHelpLines_NoName 0

NestedGroupTest

testNestedGroup 0
testNestedGroupHelp 0

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
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
testBurstVsChildren 0
testArgumentVsBurstVsChildren 0

ResourceHelperTest

testOverridden 0
testNewMessage1Param 0
testNewMessage2Params 0
testNewMessage3Params 0
testNewMessage4Params 0
testDefaultBundle 0.016

ComparatorsTest

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

HelpFormatterTest

testPrint 0
testComparator 0
testPrintHelp 0
testPrintHelp_WithException 0
testPrintHelp_TooNarrow 0
testPrintException 0
testPrintUsage 0
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
testPad 0
testPad_Null 0
testPad_TooLong 0
testPad_TooShort 0
testGutters 0

ClassValidatorTest

testValidName 0
testNameBadStart 0
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
testMinimumBounds 0
testFormats 0
testMaximumBounds 0

EnumValidatorTest

testValidate 0
testNonMember 0

FileValidatorTest

testValidate 0
testValidate_Directory 0
testValidate_ReadableFile 0
testValidate_WritableFile 0
testValidate_HiddenFile 0.203
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
testMalformedURL 0
testBadProtocol 0