Apache Commons logo Commons Validator

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
536 0 0 0 100% 2.853

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.routines.checkdigit 121 0 0 0 100% 0.108
org.apache.commons.validator.util 13 0 0 0 100% 0.001
org.apache.commons.validator.routines 270 0 0 0 100% 0.707
org.apache.commons.validator 132 0 0 0 100% 2.037

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

org.apache.commons.validator.routines.checkdigit

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

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
BigDecimalValidatorTest 12 0 0 0 100% 0.01
BigIntegerValidatorTest 12 0 0 0 100% 0.005
ByteValidatorTest 12 0 0 0 100% 0.004
CalendarValidatorTest 10 0 0 0 100% 0.025
CodeValidatorTest 7 0 0 0 100% 0
CreditCardValidatorTest 20 0 0 0 100% 0.089
CurrencyValidatorTest 6 0 0 0 100% 0.001
DateValidatorTest 8 0 0 0 100% 0.015
DomainValidatorTest 24 0 0 0 100% 0.005
DoubleValidatorTest 12 0 0 0 100% 0.001
EmailValidatorTest 20 0 0 0 100% 0.003
FloatValidatorTest 13 0 0 0 100% 0.003
IBANValidatorTest 11 0 0 0 100% 0.025
InetAddressValidatorTest 7 0 0 0 100% 0.006
IntegerValidatorTest 12 0 0 0 100% 0.002
ISBNValidatorTest 12 0 0 0 100% 0
ISSNValidatorTest 6 0 0 0 100% 0.001
LongValidatorTest 12 0 0 0 100% 0.001
PercentValidatorTest 3 0 0 0 100% 0
RegexValidatorTest 7 0 0 0 100% 0.001
ShortValidatorTest 12 0 0 0 100% 0
TimeValidatorTest 7 0 0 0 100% 0.01
UrlValidatorTest 25 0 0 0 100% 0.5

org.apache.commons.validator

Class Tests Errors Failures Skipped Success Rate Time
ByteTest 8 0 0 0 100% 0.516
CreditCardValidatorTest 2 0 0 0 100% 0.002
CustomValidatorResourcesTest 1 0 0 0 100% 0
DateTest 2 0 0 0 100% 0.019
DoubleTest 6 0 0 0 100% 0.086
EmailTest 11 0 0 0 100% 0.284
EntityImportTest 2 0 0 0 100% 0.013
ExceptionTest 1 0 0 0 100% 0.006
ExtensionTest 8 0 0 0 100% 0.076
FieldTest 9 0 0 0 100% 0.001
FloatTest 6 0 0 0 100% 0.061
GenericTypeValidatorTest 3 0 0 0 100% 0.043
GenericValidatorTest 2 0 0 0 100% 0
IntegerTest 8 0 0 0 100% 0.082
ISBNValidatorTest 1 0 0 0 100% 0
LocaleTest 5 0 0 0 100% 0.055
LongTest 8 0 0 0 100% 0.086
MultipleConfigFilesTest 5 0 0 0 100% 0.061
MultipleTest 8 0 0 0 100% 0.072
ParameterTest 1 0 0 0 100% 0.005
RequiredIfTest 5 0 0 0 100% 0.041
RequiredNameTest 6 0 0 0 100% 0.044
RetrieveFormTest 5 0 0 0 100% 0.054
ShortTest 6 0 0 0 100% 0.047
UrlTest 5 0 0 0 100% 0.365
ValidatorResourcesTest 1 0 0 0 100% 0
ValidatorResultsTest 2 0 0 0 100% 0.01
ValidatorTest 4 0 0 0 100% 0.001
VarTest 1 0 0 0 100% 0.007

Test Cases

[Summary] [Package List] [Test Cases]

ByteTest

testByteFailure 0.342
testByte 0.018
testByteMax 0.028
testByteMin 0.019
testByteBeyondMax 0.024
testByteBeyondMin 0.018
testNumberFailure 0.016
testNumber 0.017

CreditCardValidatorTest

testAddAllowedCardType 0
testIsValid 0.002

CustomValidatorResourcesTest

testCustomResources 0

DateTest

testInvalidDate 0.008
testValidDate 0.011

DoubleTest

testDoubleMax 0.013
testDoubleMin 0.014
testDoubleFailure 0.015
testDouble 0.014
testNumberFailure 0.015
testNumber 0.013

EmailTest

testEmailLocalhost 0.013
testEmailWithControlChars 0.012
testEmail 0.008
testEmailExtension 0.011
testEmailWithDash 0.01
testEmailWithCommas 0.009
testEmailWithDotEnd 0.009
testEmailWithSpaces 0.009
testEmailWithBogusCharacter 0.182
testEmailAtTLD 0.009
testEmailWithNumericAddress 0.01

EntityImportTest

testEntityImport 0.005
testParseURL 0.008

ExceptionTest

testValidatorException 0.006

ExtensionTest

testOrder 0.01
testRequiredLastName 0.012
testRequiredName 0.009
testRequiredLastNameBlank 0.009
testRequired 0.009
testRequiredFirstNameBlank 0.01
testRequiredFirstName 0.009
testOverrideRule 0.008

FieldTest

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

FloatTest

testFloatMax 0.008
testFloatMin 0.011
testFloat 0.01
testFloatFailure 0.012
testNumberFailure 0.01
testNumber 0.01

GenericTypeValidatorTest

testType 0.013
testFRLocale 0.015
testUSLocale 0.015

GenericValidatorTest

testMaxLength 0
testMinLength 0

IntegerTest

testInt 0.006
testIntFailure 0.01
testIntBeyondMax 0.011
testIntBeyondMin 0.012
testIntMin 0.011
testIntegerMax 0.011
testNumberFailure 0.01
testNumber 0.011

ISBNValidatorTest

testIsValid 0

LocaleTest

testLocale1 0.01
testLocale2 0.011
testLocale3 0.011
testLocale4 0.012
testLocale5 0.011

LongTest

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

MultipleConfigFilesTest

testBothBlank 0.01
testMergedConfig 0.013
testRequiredLastNameShort 0.013
testRequiredFirstNameBlankLastNameShort 0.013
testRequiredLastNameLong 0.012

MultipleTest

testBothBlank 0.006
testFailingNextDependentValidator 0.01
testRequiredLastNameShort 0.009
testRequiredFirstNameBlankLastNameShort 0.011
testPassingDependentsFailingMain 0.009
testFailingFirstDependentValidator 0.009
testPassingDependentsPassingMain 0.009
testRequiredLastNameLong 0.009

ParameterTest

testAllValid 0.005

RequiredIfTest

testRequiredLastName 0.005
testRequiredLastNameBlank 0.009
testRequired 0.009
testRequiredFirstNameBlank 0.01
testRequiredFirstName 0.008

RequiredNameTest

testRequiredLastName 0.004
testRequiredName 0.008
testRequiredLastNameBlank 0.008
testRequired 0.008
testRequiredFirstNameBlank 0.008
testRequiredFirstName 0.008

RetrieveFormTest

testDefaultForm 0.007
testLanguageForm 0.011
testLanguageCountryForm 0.01
testFormNotFound 0.016
testLanguageCountryVariantForm 0.01

BigDecimalValidatorTest

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

BigIntegerValidatorTest

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

ByteValidatorTest

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

CalendarValidatorTest

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

ABANumberCheckDigitTest

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

CUSIPCheckDigitTest

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

EAN13CheckDigitTest

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

IBANCheckDigitTest

testOther 0.002
testZeroSum 0
testSerialization 0.001
testIsValidFalse 0.047
testIsValidTrue 0.001
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0

ISBN10CheckDigitTest

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

ISBNCheckDigitTest

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

ISINCheckDigitTest

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

ISSNCheckDigitTest

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

LuhnCheckDigitTest

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

ModulusTenABACheckDigitTest

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

ModulusTenCUSIPCheckDigitTest

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

ModulusTenEAN13CheckDigitTest

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

ModulusTenLuhnCheckDigitTest

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

ModulusTenSedolCheckDigitTest

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

SedolCheckDigitTest

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

VerhoeffCheckDigitTest

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

CodeValidatorTest

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

CreditCardValidatorTest

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

CurrencyValidatorTest

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

DateValidatorTest

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

DomainValidatorTest

test_INFRASTRUCTURE_TLDS_sortedAndLowerCase 0
testAllowLocal 0
testRFC2396domainlabel 0
test_LOCAL_TLDS_sortedAndLowerCase 0
testGetArray 0
testIDN 0
testTopLevelDomains 0
testRFC2396toplabel 0
testVALIDATOR_412 0.001
testUpdateCountryCode 0
testIsIDNtoASCIIBroken 0
testDomainNoDots 0.001
testCannotUpdate 0
testIDNJava6OrLater 0.001
testEnumIsPublic 0
testInvalidDomains 0
testUpdateGeneric 0
testUnicodeToASCII 0
testUpdateBaseArrays 0.001
test_GENERIC_TLDS_sortedAndLowerCase 0
test_COUNTRY_CODE_TLDS_sortedAndLowerCase 0
testValidDomains 0
testValidator297 0
testValidator306 0

DoubleValidatorTest

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

EmailValidatorTest

testEmailLocalhost 0
testEmailWithControlChars 0
testEmail 0
testEmailWithSlashes 0
testEmailExtension 0
testEmailWithDash 0
testEmailWithCommas 0
testEmailWithDotEnd 0
testVALIDATOR_278 0
testVALIDATOR_315 0
testEmailWithSpaces 0
testEmailUserName 0
testEmailWithBogusCharacter 0.001
testEmailAtTLD 0
testEmailWithNumericAddress 0
testValidator235 0.001
testValidator293 0
testValidator359 0
testValidator365 0
testValidator374 0.001

FloatValidatorTest

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

IBANValidatorTest

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

InetAddressValidatorTest

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

IntegerValidatorTest

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

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

ISSNValidatorTest

testNull 0.001
testIsValidISSN 0
testIsValidISSNConvertSuffix 0
testInvalid 0
testIsValidISSNConvertNull 0
testIsValidISSNConvert 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.001

PercentValidatorTest

testValid 0
testFormatType 0
testInvalid 0

RegexValidatorTest

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

ShortValidatorTest

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

TimeValidatorTest

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

UrlValidatorTest

testValidateUrl 0
testValidator339IDN 0
testIsValidScheme 0
testValidator391OK 0
testValidator391FAILS 0
testIsValid 0.495
testValidator202 0.001
testValidator204 0
testValidator218 0
testValidator235 0
testValidator248 0.001
testValidator276 0
testValidator288 0
testValidator290 0.001
testValidator309 0
testValidator339 0
testValidator342 0
testValidator353 0.001
testValidator361 0
testValidator363 0
testValidator375 0
testValidator380 0.001
testValidator382 0
testValidator411 0
testValidator420 0

ShortTest

testShortMax 0.005
testShortMin 0.009
testShortBeyondMax 0.008
testShortBeyondMin 0.007
testNumberFailure 0.009
testNumber 0.008

UrlTest

testValidateUrl 0
testIsValidScheme 0
testIsValid 0.364
testValidator202 0.001
testValidator204 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

ValidatorResourcesTest

testNullInputStream 0

ValidatorResultsTest

testAllValid 0.004
testErrors 0.006

ValidatorTest

testManualObject 0
testManualBoolean 0
testOnlyValidateField 0
testOnlyReturnErrors 0.001

VarTest

testVars 0.007