Summary

Tests Errors Failures Skipped Success Rate Time
354 0 0 0 100% 14.737

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.validator 130 0 0 0 100% 13.001
org.apache.commons.validator.routines.checkdigit 31 0 0 0 100% 0.078
org.apache.commons.validator.util 11 0 0 0 100% 0.078
org.apache.commons.validator.routines 182 0 0 0 100% 1.58

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

org.apache.commons.validator

Class Tests Errors Failures Skipped Success Rate Time
ByteTest 8 0 0 0 100% 0.313
CreditCardValidatorTest 2 0 0 0 100% 0
CustomValidatorResourcesTest 1 0 0 0 100% 0.047
DateTest 2 0 0 0 100% 0.063
DoubleTest 6 0 0 0 100% 0.125
EmailTest 9 0 0 0 100% 0.172
EntityImportTest 2 0 0 0 100% 0.031
ExceptionTest 1 0 0 0 100% 0.032
ExtensionTest 8 0 0 0 100% 0.218
FieldTest 9 0 0 0 100% 0.016
FloatTest 6 0 0 0 100% 0.172
GenericTypeValidatorTest 3 0 0 0 100% 0.094
GenericValidatorTest 2 0 0 0 100% 0
IntegerTest 8 0 0 0 100% 0.219
ISBNValidatorTest 1 0 0 0 100% 0.015
LocaleTest 5 0 0 0 100% 0.094
LongTest 8 0 0 0 100% 0.235
MultipleConfigFilesTest 5 0 0 0 100% 0.141
MultipleTest 8 0 0 0 100% 0.125
ParameterTest 1 0 0 0 100% 0.015
RequiredIfTest 5 0 0 0 100% 0.094
RequiredNameTest 6 0 0 0 100% 0.109
RetrieveFormTest 5 0 0 0 100% 0.562
ShortTest 6 0 0 0 100% 0.141
UrlTest 5 0 0 0 100% 9.781
ValidatorResourcesTest 1 0 0 0 100% 0.015
ValidatorResultsTest 2 0 0 0 100% 0.11
ValidatorTest 4 0 0 0 100% 0.015
VarTest 1 0 0 0 100% 0.047

org.apache.commons.validator.routines.checkdigit

Class Tests Errors Failures Skipped Success Rate Time
EAN13CheckDigitTest 6 0 0 0 100% 0
ISBN10CheckDigitTest 6 0 0 0 100% 0
ISBNCheckDigitTest 7 0 0 0 100% 0
LuhnCheckDigitTest 6 0 0 0 100% 0.078
VerhoeffCheckDigitTest 6 0 0 0 100% 0

org.apache.commons.validator.util

Class Tests Errors Failures Skipped Success Rate Time
FlagsTest 11 0 0 0 100% 0.078

org.apache.commons.validator.routines

Class Tests Errors Failures Skipped Success Rate Time
BigDecimalValidatorTest 11 0 0 0 100% 0.015
BigIntegerValidatorTest 11 0 0 0 100% 0.016
ByteValidatorTest 11 0 0 0 100% 0
CalendarValidatorTest 9 0 0 0 100% 0.032
CodeValidatorTest 5 0 0 0 100% 0.016
CreditCardValidatorTest 14 0 0 0 100% 0.015
CurrencyValidatorTest 6 0 0 0 100% 0.016
DateValidatorTest 7 0 0 0 100% 0.266
DomainValidatorTest 3 0 0 0 100% 0
DoubleValidatorTest 11 0 0 0 100% 0.141
EmailValidatorTest 9 0 0 0 100% 0.047
FloatValidatorTest 12 0 0 0 100% 0.016
InetAddressValidatorTest 4 0 0 0 100% 0.016
IntegerValidatorTest 11 0 0 0 100% 0.016
ISBNValidatorTest 12 0 0 0 100% 0.015
LongValidatorTest 11 0 0 0 100% 0.015
PercentValidatorTest 3 0 0 0 100% 0.031
RegexValidatorTest 7 0 0 0 100% 0
ShortValidatorTest 11 0 0 0 100% 0.016
TimeValidatorTest 7 0 0 0 100% 0.016
UrlValidatorTest 7 0 0 0 100% 0.875

Test Cases

ByteTest

testByte 0.078
testByteMin 0.032
testByteMax 0.031
testByteFailure 0.062
testByteBeyondMin 0.016
testByteBeyondMax 0.016
testNumber 0.062
testNumberFailure 0.016

CreditCardValidatorTest

testIsValid 0
testAddAllowedCardType 0

CustomValidatorResourcesTest

testCustomResources 0.016

DateTest

testValidDate 0.016
testInvalidDate 0.047

DoubleTest

testDouble 0.016
testDoubleMin 0.016
testDoubleMax 0.015
testDoubleFailure 0.047
testNumber 0.016
testNumberFailure 0.015

EmailTest

testEmail 0.016
testEmailWithNumericAddress 0.016
testEmailExtension 0
testEmailWithDash 0.015
testEmailWithDotEnd 0.047
testEmailWithBogusCharacter 0.016
testEmailWithCommas 0
testEmailWithSpaces 0.015
testEmailWithControlChars 0.016

EntityImportTest

testEntityImport 0.016
testParseURL 0.015

ExceptionTest

testValidatorException 0.016

ExtensionTest

testRequired 0.046
testRequiredFirstNameBlank 0.016
testRequiredFirstName 0.031
testRequiredLastNameBlank 0.016
testRequiredLastName 0.016
testRequiredName 0.031
testOverrideRule 0.015
testOrder 0.047

FieldTest

testEmptyArgs 0
testDefaultPositionImplied 0
testDefaultUsingPositions 0
testDefaultOnePosition 0
testDefaultSomePositions 0
testOverrideUsingPositionA 0
testOverrideUsingPositionB 0
testOverridePositionImplied 0
testOverrideSomePosition 0

FloatTest

testFloat 0.016
testFloatMin 0.047
testFloatMax 0.016
testFloatFailure 0.015
testNumber 0.031
testNumberFailure 0.016

GenericTypeValidatorTest

testType 0.031
testUSLocale 0.047
testFRLocale 0.016

GenericValidatorTest

testMinLength 0
testMaxLength 0

IntegerTest

testInt 0.016
testIntMin 0.078
testIntegerMax 0.016
testIntFailure 0.015
testIntBeyondMin 0.016
testIntBeyondMax 0.015
testNumber 0.016
testNumberFailure 0.047

ISBNValidatorTest

testIsValid 0

LocaleTest

testLocale1 0.015
testLocale2 0.016
testLocale3 0
testLocale4 0.016
testLocale5 0.016

LongTest

testLong 0.016
testLongMin 0.015
testLongMax 0.047
testLongFailure 0.032
testLongBeyondMin 0.015
testLongBeyondMax 0.047
testNumber 0.016
testNumberFailure 0.047

MultipleConfigFilesTest

testMergedConfig 0.016
testBothBlank 0.047
testRequiredFirstNameBlankLastNameShort 0.015
testRequiredLastNameShort 0.016
testRequiredLastNameLong 0.031

MultipleTest

testBothBlank 0.016
testRequiredFirstNameBlankLastNameShort 0.015
testRequiredLastNameShort 0.047
testRequiredLastNameLong 0
testFailingFirstDependentValidator 0.016
testFailingNextDependentValidator 0.015
testPassingDependentsFailingMain 0.016
testPassingDependentsPassingMain 0

ParameterTest

testAllValid 0.015

RequiredIfTest

testRequired 0.016
testRequiredFirstNameBlank 0.031
testRequiredFirstName 0.015
testRequiredLastNameBlank 0
testRequiredLastName 0.016

RequiredNameTest

testRequired 0.015
testRequiredFirstNameBlank 0.016
testRequiredFirstName 0.016
testRequiredLastNameBlank 0.031
testRequiredLastName 0.016
testRequiredName 0.015

RetrieveFormTest

testDefaultForm 0.375
testLanguageForm 0.031
testLanguageCountryForm 0.047
testLanguageCountryVariantForm 0.031
testFormNotFound 0.078

BigDecimalValidatorTest

testBigDecimalValidatorMethods 0
testBigDecimalRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0
testInvalidNotStrict 0
testValidStrict 0.015
testValidNotStrict 0
testValidateLocale 0
testRangeMinMax 0

BigIntegerValidatorTest

testBigIntegerValidatorMethods 0
testBigIntegerRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0.016
testInvalidNotStrict 0
testValidStrict 0
testValidNotStrict 0
testValidateLocale 0
testRangeMinMax 0

ByteValidatorTest

testByteValidatorMethods 0
testByteRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0
testInvalidNotStrict 0
testValidStrict 0
testValidNotStrict 0
testValidateLocale 0
testRangeMinMax 0

CalendarValidatorTest

testFormat 0
testCalendarValidatorMethods 0
testCompare 0
testDateTimeStyle 0
testAdjustToTimeZone 0
testPatternValid 0
testPatternInvalid 0.016
testLocaleValid 0
testLocaleInvalid 0

EAN13CheckDigitTest

testIsValidTrue 0
testIsValidFalse 0
testCalculateValid 0
testCalculateInvalid 0
testMissingCode 0
testZeroSum 0

ISBN10CheckDigitTest

testIsValidTrue 0
testIsValidFalse 0
testCalculateValid 0
testCalculateInvalid 0
testMissingCode 0
testZeroSum 0

ISBNCheckDigitTest

testInvalidLength 0
testIsValidTrue 0
testIsValidFalse 0
testCalculateValid 0
testCalculateInvalid 0
testMissingCode 0
testZeroSum 0

LuhnCheckDigitTest

testIsValidTrue 0
testIsValidFalse 0.016
testCalculateValid 0
testCalculateInvalid 0
testMissingCode 0
testZeroSum 0

VerhoeffCheckDigitTest

testZeroSum 0
testIsValidTrue 0
testIsValidFalse 0
testCalculateValid 0
testCalculateInvalid 0
testMissingCode 0

CodeValidatorTest

testCheckDigit 0
testLength 0
testRegex 0.016
testNoInput 0
testConstructors 0

CreditCardValidatorTest

testIsValid 0
testAddAllowedCardType 0
testArrayConstructor 0
testAmexValidator 0
testAmexOption 0
testDinersValidator 0.015
testDinersOption 0
testDiscoverValidator 0
testDiscoverOption 0
testMastercardValidator 0
testMastercardOption 0
testVisaValidator 0
testVisaOption 0
testMastercardUsingSeparators 0

CurrencyValidatorTest

testPattern 0
testFormatType 0
testValid 0
testInvalid 0
testIntegerValid 0
testIntegerInvalid 0

DateValidatorTest

testCompare 0
testDateValidatorMethods 0.031
testPatternValid 0
testPatternInvalid 0.016
testLocaleValid 0
testLocaleInvalid 0
testFormat 0

DomainValidatorTest

testValidDomains 0
testInvalidDomains 0
testTopLevelDomains 0

DoubleValidatorTest

testDoubleValidatorMethods 0.109
testDoubleRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0
testInvalidNotStrict 0
testValidStrict 0
testValidNotStrict 0.016
testValidateLocale 0
testRangeMinMax 0

EmailValidatorTest

testEmail 0.016
testEmailWithNumericAddress 0
testEmailExtension 0
testEmailWithDash 0
testEmailWithDotEnd 0
testEmailWithBogusCharacter 0
testEmailWithCommas 0
testEmailWithSpaces 0
testEmailWithControlChars 0

FloatValidatorTest

testFloatValidatorMethods 0
testFloatSmallestValues 0
testFloatRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0
testInvalidNotStrict 0
testValidStrict 0
testValidNotStrict 0.016
testValidateLocale 0
testRangeMinMax 0

InetAddressValidatorTest

testInetAddressesFromTheWild 0
testInetAddressesByClass 0
testReservedInetAddresses 0
testBrokenInetAddresses 0

IntegerValidatorTest

testIntegerValidatorMethods 0
testIntegerRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0
testInvalidNotStrict 0
testValidStrict 0
testValidNotStrict 0
testValidateLocale 0
testRangeMinMax 0

ISBNValidatorTest

testInvalid 0
testValidISBN10Format 0
testInvalidISBN10Format 0
testValidISBN13Format 0
testInvalidISBN13Format 0.015
testIsValidISBN10 0
testIsValidISBN13 0
testValidateISBN10 0
testValidateISBN10Convert 0
testValidateISBN13 0
testNull 0
testConversionErrors 0

LongValidatorTest

testLongValidatorMethods 0
testLongRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0
testInvalidNotStrict 0
testValidStrict 0
testValidNotStrict 0
testValidateLocale 0
testRangeMinMax 0

PercentValidatorTest

testFormatType 0
testValid 0.031
testInvalid 0

RegexValidatorTest

testSingle 0
testMultipleSensitive 0
testMultipleInsensitive 0
testNullValue 0
testMissingRegex 0
testExceptions 0
testToString 0

ShortValidatorTest

testShortValidatorMethods 0
testShortRangeMinMax 0
testFormat 0
testFormatType 0
testValidateMinMax 0
testInvalidStrict 0.016
testInvalidNotStrict 0
testValidStrict 0
testValidNotStrict 0
testValidateLocale 0
testRangeMinMax 0

TimeValidatorTest

testPatternValid 0
testPatternInvalid 0.016
testLocaleValid 0
testLocaleInvalid 0
testFormat 0
testCompare 0
testTimeZone 0

UrlValidatorTest

testIsValid 0.859
testIsValidScheme 0
testValidator202 0
testValidator204 0
testValidator218 0
testValidator248 0
testValidateUrl 0

ShortTest

testShortMin 0.031
testShortMax 0.016
testShortBeyondMin 0.016
testShortBeyondMax 0.047
testNumber 0.015
testNumberFailure 0.016

UrlTest

testIsValid 9.781
testIsValidScheme 0
testValidator202 0
testValidator204 0
testValidateUrl 0

FlagsTest

testToString 0
testHashCode 0
testGetFlags 0
testIsOnOff 0
testTurnOnOff 0
testTurnOff 0
testTurnOffAll 0
testClear 0
testTurnOnAll 0
testClone 0
testEqualsObject 0

ValidatorResourcesTest

testNullInputStream 0

ValidatorResultsTest

testAllValid 0.016
testErrors 0.094

ValidatorTest

testManualObject 0
testOnlyReturnErrors 0.015
testOnlyValidateField 0
testManualBoolean 0

VarTest

testVars 0.047