Apache Commons logo Commons Validator

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
576 0 0 1 99.826% 3.473

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.validator.util 13 0 0 0 100% 0.001
org.apache.commons.validator.routines 310 0 0 1 99.677% 1.302
org.apache.commons.validator 132 0 0 0 100% 2.129
org.apache.commons.validator.routines.checkdigit 121 0 0 0 100% 0.041

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

org.apache.commons.validator.util

Class Tests Errors Failures Skipped Success Rate Time
FlagsTest 13 0 0 0 100% 0.001

org.apache.commons.validator.routines

Class Tests Errors Failures Skipped Success Rate Time
FloatValidatorTest 13 0 0 0 100% 0.003
UrlValidatorTest 33 0 0 0 100% 0.927
ISINValidatorTest 4 0 0 0 100% 0
DomainValidatorStartupTest 21 0 0 0 100% 0.189
ISSNValidatorTest 9 0 0 0 100% 0
DomainValidatorTest 19 0 0 0 100% 0.002
TimeValidatorTest 7 0 0 0 100% 0.008
DateValidatorTest 9 0 0 0 100% 0.027
DoubleValidatorTest 12 0 0 0 100% 0.002
BigDecimalValidatorTest 12 0 0 0 100% 0.001
IntegerValidatorTest 13 0 0 0 100% 0.005
PercentValidatorTest 3 0 0 0 100% 0
LongValidatorTest 12 0 0 0 100% 0.001
BigIntegerValidatorTest 12 0 0 0 100% 0.001
ShortValidatorTest 12 0 0 0 100% 0.001
ISBNValidatorTest 12 0 0 0 100% 0.001
IBANValidatorTest 12 0 0 0 100% 0.044
ByteValidatorTest 12 0 0 0 100% 0.002
InetAddressValidatorTest 8 0 0 0 100% 0.002
CalendarValidatorTest 10 0 0 0 100% 0.014
EmailValidatorTest 25 0 0 1 96% 0.01
CreditCardValidatorTest 20 0 0 0 100% 0.062
CodeValidatorTest 7 0 0 0 100% 0
CurrencyValidatorTest 6 0 0 0 100% 0
RegexValidatorTest 7 0 0 0 100% 0

org.apache.commons.validator

Class Tests Errors Failures Skipped Success Rate Time
EmailTest 11 0 0 0 100% 0.297
UrlTest 5 0 0 0 100% 0.513
RequiredIfTest 5 0 0 0 100% 0.039
ParameterTest 1 0 0 0 100% 0
ByteTest 8 0 0 0 100% 0.091
RetrieveFormTest 5 0 0 0 100% 0.094
ISBNValidatorTest 1 0 0 0 100% 0
ExtensionTest 8 0 0 0 100% 0.066
ExceptionTest 1 0 0 0 100% 0
FloatTest 6 0 0 0 100% 0.058
EntityImportTest 2 0 0 0 100% 0
CustomValidatorResourcesTest 1 0 0 0 100% 0
DoubleTest 6 0 0 0 100% 0.067
DateTest 2 0 0 0 100% 0.01
ValidatorTest 4 0 0 0 100% 0.001
MultipleTest 8 0 0 0 100% 0.067
MultipleConfigFilesTest 5 0 0 0 100% 0.059
ValidatorResultsTest 2 0 0 0 100% 0.012
GenericValidatorTest 2 0 0 0 100% 0
FieldTest 9 0 0 0 100% 0
RequiredNameTest 6 0 0 0 100% 0.036
ShortTest 6 0 0 0 100% 0.074
ValidatorResourcesTest 1 0 0 0 100% 0
VarTest 1 0 0 0 100% 0.001
IntegerTest 8 0 0 0 100% 0.482
LongTest 8 0 0 0 100% 0.068
CreditCardValidatorTest 2 0 0 0 100% 0
LocaleTest 5 0 0 0 100% 0.052
GenericTypeValidatorTest 3 0 0 0 100% 0.042

org.apache.commons.validator.routines.checkdigit

Class Tests Errors Failures Skipped Success Rate Time
ModulusTenLuhnCheckDigitTest 7 0 0 0 100% 0.001
LuhnCheckDigitTest 7 0 0 0 100% 0
ModulusTenEAN13CheckDigitTest 7 0 0 0 100% 0.003
ModulusTenSedolCheckDigitTest 8 0 0 0 100% 0
CUSIPCheckDigitTest 9 0 0 0 100% 0.001
VerhoeffCheckDigitTest 7 0 0 0 100% 0.001
ISBNCheckDigitTest 8 0 0 0 100% 0.005
ModulusTenCUSIPCheckDigitTest 9 0 0 0 100% 0
IBANCheckDigitTest 8 0 0 0 100% 0.025
SedolCheckDigitTest 8 0 0 0 100% 0
EAN13CheckDigitTest 7 0 0 0 100% 0.001
ABANumberCheckDigitTest 7 0 0 0 100% 0
ISBN10CheckDigitTest 7 0 0 0 100% 0.001
ISSNCheckDigitTest 7 0 0 0 100% 0.002
ModulusTenABACheckDigitTest 7 0 0 0 100% 0.001
ISINCheckDigitTest 8 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

FloatValidatorTest

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

EmailTest

testEmailLocalhost 0.007
testEmailWithControlChars 0.013
testEmail 0.01
testEmailExtension 0.011
testEmailWithDash 0.01
testEmailWithCommas 0.011
testEmailWithDotEnd 0.01
testEmailWithSpaces 0.011
testEmailWithBogusCharacter 0.191
testEmailAtTLD 0.009
testEmailWithNumericAddress 0.011

UrlValidatorTest

testValidateUrl 0
testValidator339IDN 0
testIsValidScheme 0
testValidator391OK 0
testValidator473_1 0
testValidator473_2 0
testValidator473_3 0
testValidator391FAILS 0
testFragments 0
testIsValid 0.912
testValidator202 0
testValidator204 0.001
testValidator218 0
testValidator235 0.001
testValidator248 0.001
testValidator276 0.001
testValidator283 0
testValidator288 0.001
testValidator290 0.002
testValidator309 0
testValidator339 0.001
testValidator342 0
testValidator353 0.001
testValidator361 0
testValidator363 0.002
testValidator375 0.001
testValidator380 0
testValidator382 0.001
testValidator411 0
testValidator420 0
testValidator452 0
testValidator464 0
testValidator467 0.001

UrlTest

testValidateUrl 0
testIsValidScheme 0
testIsValid 0.512
testValidator202 0.001
testValidator204 0

ModulusTenLuhnCheckDigitTest

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

RequiredIfTest

testRequiredLastName 0.003
testRequiredLastNameBlank 0.01
testRequired 0.009
testRequiredFirstNameBlank 0.009
testRequiredFirstName 0.008

ISINValidatorTest

testInvalidTrue 0
testIsValidFalse 0
testIsValidTrue 0
testInvalidFalse 0

DomainValidatorStartupTest

testUpdateBaseArrayCC 0.012
testVALIDATOR_412a 0.009
testVALIDATOR_412b 0.009
testVALIDATOR_412c 0.009
testVALIDATOR_412d 0.01
testUpdateCountryCode2 0.009
testUpdateBaseArrayGeneric 0.009
testCannotUpdate 0.01
testUpdateCountryCode1a 0.009
testUpdateCountryCode1b 0.009
testUpdateCountryCode3a 0.008
testUpdateCountryCode3b 0.01
testUpdateCountryCode3c 0.01
testUpdateGeneric1 0.009
testUpdateGeneric2 0.009
testUpdateGeneric3 0.008
testUpdateGeneric4 0.009
testUpdateGeneric5 0.008
testInstanceOverride 0.008
testUpdateBaseArrayInfra 0.008
testUpdateBaseArrayLocal 0.007

ISSNValidatorTest

testNull 0
testIsValidISSN 0
testIsValidExtract 0
testValidCheckDigitEan13 0
testConversionErrors 0
testIsValidISSNConvertSuffix 0
testInvalid 0
testIsValidISSNConvertNull 0
testIsValidISSNConvert 0

LuhnCheckDigitTest

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

DomainValidatorTest

test_INFRASTRUCTURE_TLDS_sortedAndLowerCase 0
testAllowLocal 0
testRFC2396domainlabel 0
test_LOCAL_TLDS_sortedAndLowerCase 0
testGetArray 0
testIDN 0
testTopLevelDomains 0
testRFC2396toplabel 0
testIsIDNtoASCIIBroken 0.002
testDomainNoDots 0
testIDNJava6OrLater 0
testEnumIsPublic 0
testInvalidDomains 0
testUnicodeToASCII 0
test_GENERIC_TLDS_sortedAndLowerCase 0
test_COUNTRY_CODE_TLDS_sortedAndLowerCase 0
testValidDomains 0
testValidator297 0
testValidator306 0

ModulusTenEAN13CheckDigitTest

testSerialization 0.001
testIsValidFalse 0.001
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

TimeValidatorTest

testTimeZone 0
testPatternInvalid 0.002
testLocaleInvalid 0.002
testCompare 0
testPatternValid 0.002
testLocaleValid 0.001
testFormat 0

ParameterTest

testAllValid 0

ModulusTenSedolCheckDigitTest

testVALIDATOR_346 0
testSerialization 0
testIsValidFalse 0
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

DateValidatorTest

testCompare 0.003
testDateValidatorMethods 0.004
testLocaleProviders 0.001
testSerialization 0.003
testPatternInvalid 0.003
testLocaleInvalid 0.004
testPatternValid 0.004
testLocaleValid 0.002
testFormat 0.001

ByteTest

testByteFailure 0.004
testByte 0.012
testByteMax 0.013
testByteMin 0.012
testByteBeyondMax 0.013
testByteBeyondMin 0.012
testNumberFailure 0.011
testNumber 0.014

CUSIPCheckDigitTest

testVALIDATOR_336_InvalidCheckDigits 0
testVALIDATOR_336_ValidCheckDigits 0
testSerialization 0
testIsValidFalse 0
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

RetrieveFormTest

testDefaultForm 0.005
testLanguageForm 0.019
testLanguageCountryForm 0.018
testFormNotFound 0.032
testLanguageCountryVariantForm 0.019

ISBNValidatorTest

testIsValid 0

DoubleValidatorTest

testDoubleValidatorMethods 0
testDoubleRangeMinMax 0
testValidateLocale 0
testValidateMinMax 0
testRangeMinMax 0
testSerialization 0
testValidNotStrict 0
testInvalidNotStrict 0
testFormatType 0
testInvalidStrict 0
testFormat 0
testValidStrict 0.001

ExtensionTest

testOrder 0
testRequiredLastName 0.009
testRequiredName 0.009
testRequiredLastNameBlank 0.009
testRequired 0.009
testRequiredFirstNameBlank 0.01
testRequiredFirstName 0.01
testOverrideRule 0.01

ExceptionTest

testValidatorException 0

FloatTest

testFloatMax 0.005
testFloatMin 0.011
testFloat 0.011
testFloatFailure 0.01
testNumberFailure 0.01
testNumber 0.011

EntityImportTest

testEntityImport 0
testParseURL 0

BigDecimalValidatorTest

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

VerhoeffCheckDigitTest

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

IntegerValidatorTest

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

CustomValidatorResourcesTest

testCustomResources 0

DoubleTest

testDoubleMax 0.009
testDoubleMin 0.013
testDoubleFailure 0.011
testDouble 0.012
testNumberFailure 0.011
testNumber 0.01

PercentValidatorTest

testValid 0
testFormatType 0
testInvalid 0

LongValidatorTest

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

DateTest

testInvalidDate 0.001
testValidDate 0.008

BigIntegerValidatorTest

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

ISBNCheckDigitTest

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

ShortValidatorTest

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

ValidatorTest

testManualObject 0.001
testManualBoolean 0
testOnlyValidateField 0
testOnlyReturnErrors 0

MultipleTest

testBothBlank 0.003
testFailingNextDependentValidator 0.009
testRequiredLastNameShort 0.011
testRequiredFirstNameBlankLastNameShort 0.008
testPassingDependentsFailingMain 0.009
testFailingFirstDependentValidator 0.009
testPassingDependentsPassingMain 0.009
testRequiredLastNameLong 0.009

ISBNValidatorTest

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

ModulusTenCUSIPCheckDigitTest

testVALIDATOR_336_InvalidCheckDigits 0
testVALIDATOR_336_ValidCheckDigits 0
testSerialization 0
testIsValidFalse 0
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

MultipleConfigFilesTest

testBothBlank 0.008
testMergedConfig 0.012
testRequiredLastNameShort 0.013
testRequiredFirstNameBlankLastNameShort 0.013
testRequiredLastNameLong 0.013

IBANCheckDigitTest

testOther 0
testZeroSum 0
testSerialization 0
testIsValidFalse 0.023
testIsValidTrue 0
testMissingCode 0.001
testCalculateInvalid 0
testCalculateValid 0.001

ValidatorResultsTest

testAllValid 0
testErrors 0.011

GenericValidatorTest

testMaxLength 0
testMinLength 0

SedolCheckDigitTest

testVALIDATOR_346 0
testSerialization 0
testIsValidFalse 0
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

FieldTest

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

IBANValidatorTest

testValid 0.012
testHasValidator 0
testNull 0
testSetValidatorLC 0.001
testSetDefaultValidator1 0
testSetDefaultValidator2 0
testSetValidatorLen7 0.001
testGetValidator 0
testInValid 0
testSetValidatorLen35 0.001
testSetValidatorLen_1 0
testSorted 0.001

EAN13CheckDigitTest

testSerialization 0
testIsValidFalse 0
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0.001

ByteValidatorTest

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

RequiredNameTest

testRequiredLastName 0
testRequiredName 0.008
testRequiredLastNameBlank 0.007
testRequired 0.007
testRequiredFirstNameBlank 0.007
testRequiredFirstName 0.007

ShortTest

testShortMax 0.008
testShortMin 0.013
testShortBeyondMax 0.012
testShortBeyondMin 0.013
testNumberFailure 0.013
testNumber 0.015

InetAddressValidatorTest

testIPv6 0
testVALIDATOR_335 0
testVALIDATOR_419 0
testVALIDATOR_445 0
testReservedInetAddresses 0
testBrokenInetAddresses 0.001
testInetAddressesByClass 0
testInetAddressesFromTheWild 0

ValidatorResourcesTest

testNullInputStream 0

ABANumberCheckDigitTest

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

VarTest

testVars 0

CalendarValidatorTest

testCalendarValidatorMethods 0
testAdjustToTimeZone 0.001
testDateTimeStyle 0
testCompare 0.001
testFormat 0.001
testSerialization 0.001
testPatternInvalid 0.003
testLocaleInvalid 0.002
testPatternValid 0.002
testLocaleValid 0.002

EmailValidatorTest

testEmailLocalhost 0
testEmailWithControlChars 0
testEmailFromPerl 0
VALIDATOR-267
testEmail 0
testEmailWithSlashes 0
testEmailExtension 0
testEmailWithDash 0
testEmailWithCommas 0
testEmailWithDotEnd 0
testVALIDATOR_278 0
testVALIDATOR_315 0
testValidator473_1 0
testValidator473_2 0
testValidator473_3 0
testValidator473_4 0.004
testEmailWithSpaces 0
testEmailUserName 0.002
testEmailWithBogusCharacter 0
testEmailAtTLD 0
testEmailWithNumericAddress 0
testValidator235 0.002
testValidator293 0.001
testValidator359 0
testValidator365 0.001
testValidator374 0

IntegerTest

testInt 0.294
testIntFailure 0.021
testIntBeyondMax 0.029
testIntBeyondMin 0.02
testIntMin 0.019
testIntegerMax 0.02
testNumberFailure 0.016
testNumber 0.02

LongTest

testLongBeyondMax 0.001
testLongBeyondMin 0.009
testLong 0.009
testLongMax 0.011
testLongMin 0.01
testLongFailure 0.01
testNumberFailure 0.009
testNumber 0.009

CreditCardValidatorTest

testAddAllowedCardType 0
testIsValid 0

ISBN10CheckDigitTest

testSerialization 0.001
testIsValidFalse 0
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

ISSNCheckDigitTest

testSerialization 0
testIsValidFalse 0.001
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0.001
testCalculateValid 0

ModulusTenABACheckDigitTest

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

ISINCheckDigitTest

testVALIDATOR_345 0
testSerialization 0
testIsValidFalse 0
testZeroSum 0
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

CreditCardValidatorTest

testVisaOption 0
testAmexValidator 0
testVPayOption 0
testRangeGenerator 0
testMastercardOption 0
testArrayConstructor 0
testAmexOption 0
testGeneric 0
testDiscoverValidator 0
testDiscoverOption 0.001
testVisaValidator 0
testDisjointRange 0
testMastercardValidator 0.059
testAddAllowedCardType 0
testMastercardUsingSeparators 0
testDinersOption 0.001
testRangeGeneratorNoLuhn 0
testValidLength 0
testIsValid 0.001
testDinersValidator 0

CodeValidatorTest

testCheckDigit 0
testRegex 0
testConstructors 0
testValidator294_1 0
testValidator294_2 0
testLength 0
testNoInput 0

CurrencyValidatorTest

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

FlagsTest

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

LocaleTest

testLocale1 0.004
testLocale2 0.014
testLocale3 0.012
testLocale4 0.012
testLocale5 0.01

RegexValidatorTest

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

GenericTypeValidatorTest

testType 0.01
testFRLocale 0.017
testUSLocale 0.015

Failure Details

[Summary] [Package List] [Test Cases]


testEmailFromPerl
skipped: VALIDATOR-267