Apache Commons logo Commons Validator

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
487 0 0 0 100% 2.35

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 83 0 0 0 100% 0.095
org.apache.commons.validator.util 13 0 0 0 100% 0
org.apache.commons.validator.routines 259 0 0 0 100% 0.541
org.apache.commons.validator 132 0 0 0 100% 1.714

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.008
CUSIPCheckDigitTest 9 0 0 0 100% 0.014
EAN13CheckDigitTest 7 0 0 0 100% 0.004
IBANCheckDigitTest 8 0 0 0 100% 0.053
ISBN10CheckDigitTest 7 0 0 0 100% 0.002
ISBNCheckDigitTest 8 0 0 0 100% 0.002
ISINCheckDigitTest 8 0 0 0 100% 0.001
ISSNCheckDigitTest 7 0 0 0 100% 0.005
LuhnCheckDigitTest 7 0 0 0 100% 0.002
SedolCheckDigitTest 8 0 0 0 100% 0.003
VerhoeffCheckDigitTest 7 0 0 0 100% 0.001

org.apache.commons.validator.util

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

org.apache.commons.validator.routines

Class Tests Errors Failures Skipped Success Rate Time
BigDecimalValidatorTest 12 0 0 0 100% 0.006
BigIntegerValidatorTest 12 0 0 0 100% 0.003
ByteValidatorTest 12 0 0 0 100% 0.004
CalendarValidatorTest 10 0 0 0 100% 0.022
CodeValidatorTest 7 0 0 0 100% 0.001
CreditCardValidatorTest 15 0 0 0 100% 0.069
CurrencyValidatorTest 6 0 0 0 100% 0
DateValidatorTest 8 0 0 0 100% 0.015
DomainValidatorTest 23 0 0 0 100% 0.003
DoubleValidatorTest 12 0 0 0 100% 0.003
EmailValidatorTest 20 0 0 0 100% 0.003
FloatValidatorTest 13 0 0 0 100% 0.004
IBANValidatorTest 11 0 0 0 100% 0.003
InetAddressValidatorTest 6 0 0 0 100% 0.006
IntegerValidatorTest 12 0 0 0 100% 0.001
ISBNValidatorTest 12 0 0 0 100% 0
ISSNValidatorTest 6 0 0 0 100% 0
LongValidatorTest 12 0 0 0 100% 0
PercentValidatorTest 3 0 0 0 100% 0
RegexValidatorTest 7 0 0 0 100% 0
ShortValidatorTest 12 0 0 0 100% 0
TimeValidatorTest 7 0 0 0 100% 0.011
UrlValidatorTest 21 0 0 0 100% 0.387

org.apache.commons.validator

Class Tests Errors Failures Skipped Success Rate Time
ByteTest 8 0 0 0 100% 0.24
CreditCardValidatorTest 2 0 0 0 100% 0.001
CustomValidatorResourcesTest 1 0 0 0 100% 0
DateTest 2 0 0 0 100% 0.02
DoubleTest 6 0 0 0 100% 0.079
EmailTest 11 0 0 0 100% 0.282
EntityImportTest 2 0 0 0 100% 0.015
ExceptionTest 1 0 0 0 100% 0.005
ExtensionTest 8 0 0 0 100% 0.073
FieldTest 9 0 0 0 100% 0
FloatTest 6 0 0 0 100% 0.061
GenericTypeValidatorTest 3 0 0 0 100% 0.045
GenericValidatorTest 2 0 0 0 100% 0
IntegerTest 8 0 0 0 100% 0.087
ISBNValidatorTest 1 0 0 0 100% 0
LocaleTest 5 0 0 0 100% 0.054
LongTest 8 0 0 0 100% 0.082
MultipleConfigFilesTest 5 0 0 0 100% 0.061
MultipleTest 8 0 0 0 100% 0.071
ParameterTest 1 0 0 0 100% 0.005
RequiredIfTest 5 0 0 0 100% 0.041
RequiredNameTest 6 0 0 0 100% 0.04
RetrieveFormTest 5 0 0 0 100% 0.055
ShortTest 6 0 0 0 100% 0.053
UrlTest 5 0 0 0 100% 0.329
ValidatorResourcesTest 1 0 0 0 100% 0
ValidatorResultsTest 2 0 0 0 100% 0.009
ValidatorTest 4 0 0 0 100% 0.001
VarTest 1 0 0 0 100% 0.005

Test Cases

[Summary] [Package List] [Test Cases]

ByteTest

testByteFailure 0.119
testByte 0.018
testByteMax 0.023
testByteMin 0.018
testByteBeyondMax 0.017
testByteBeyondMin 0.016
testNumberFailure 0.014
testNumber 0.015

CreditCardValidatorTest

testAddAllowedCardType 0
testIsValid 0.001

CustomValidatorResourcesTest

testCustomResources 0

DateTest

testInvalidDate 0.009
testValidDate 0.011

DoubleTest

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

EmailTest

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

EntityImportTest

testEntityImport 0.005
testParseURL 0.01

ExceptionTest

testValidatorException 0.005

ExtensionTest

testOrder 0.009
testRequiredLastName 0.011
testRequiredName 0.01
testRequiredLastNameBlank 0.009
testRequired 0.009
testRequiredFirstNameBlank 0.009
testRequiredFirstName 0.008
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.007
testFloatMin 0.011
testFloat 0.01
testFloatFailure 0.012
testNumberFailure 0.011
testNumber 0.01

GenericTypeValidatorTest

testType 0.013
testFRLocale 0.016
testUSLocale 0.016

GenericValidatorTest

testMaxLength 0
testMinLength 0

IntegerTest

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

ISBNValidatorTest

testIsValid 0

LocaleTest

testLocale1 0.009
testLocale2 0.01
testLocale3 0.011
testLocale4 0.012
testLocale5 0.012

LongTest

testLongBeyondMax 0.008
testLongBeyondMin 0.011
testLong 0.011
testLongMax 0.012
testLongMin 0.01
testLongFailure 0.01
testNumberFailure 0.01
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.009
testRequiredLastNameShort 0.009
testRequiredFirstNameBlankLastNameShort 0.009
testPassingDependentsFailingMain 0.01
testFailingFirstDependentValidator 0.009
testPassingDependentsPassingMain 0.01
testRequiredLastNameLong 0.009

ParameterTest

testAllValid 0.005

RequiredIfTest

testRequiredLastName 0.006
testRequiredLastNameBlank 0.009
testRequired 0.008
testRequiredFirstNameBlank 0.01
testRequiredFirstName 0.008

RequiredNameTest

testRequiredLastName 0.004
testRequiredName 0.007
testRequiredLastNameBlank 0.006
testRequired 0.007
testRequiredFirstNameBlank 0.007
testRequiredFirstName 0.009

RetrieveFormTest

testDefaultForm 0.007
testLanguageForm 0.012
testLanguageCountryForm 0.009
testFormNotFound 0.016
testLanguageCountryVariantForm 0.011

BigDecimalValidatorTest

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

BigIntegerValidatorTest

testBigIntegerRangeMinMax 0
testBigIntegerValidatorMethods 0
testValidateLocale 0
testValidateMinMax 0
testRangeMinMax 0
testSerialization 0
testValidNotStrict 0.001
testInvalidNotStrict 0
testFormatType 0
testInvalidStrict 0
testFormat 0.001
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.001
testFormat 0
testValidStrict 0.001

CalendarValidatorTest

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

ABANumberCheckDigitTest

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

CUSIPCheckDigitTest

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

EAN13CheckDigitTest

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

IBANCheckDigitTest

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

ISBN10CheckDigitTest

testSerialization 0
testIsValidFalse 0.001
testZeroSum 0
testIsValidTrue 0
testMissingCode 0.001
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.003
testZeroSum 0.001
testIsValidTrue 0
testMissingCode 0
testCalculateInvalid 0
testCalculateValid 0.001

LuhnCheckDigitTest

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

SedolCheckDigitTest

testVALIDATOR_346 0
testSerialization 0
testIsValidFalse 0.002
testZeroSum 0
testIsValidTrue 0.001
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.001
testRegex 0
testConstructors 0
testValidator294_1 0
testValidator294_2 0
testLength 0
testNoInput 0

CreditCardValidatorTest

testVisaOption 0
testAmexValidator 0
testVPayOption 0
testMastercardOption 0
testArrayConstructor 0
testAmexOption 0
testDiscoverValidator 0
testDiscoverOption 0
testVisaValidator 0
testMastercardValidator 0.068
testAddAllowedCardType 0
testMastercardUsingSeparators 0
testDinersOption 0
testIsValid 0
testDinersValidator 0.001

CurrencyValidatorTest

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

DateValidatorTest

testCompare 0.002
testDateValidatorMethods 0.002
testSerialization 0.001
testPatternInvalid 0.003
testLocaleInvalid 0.002
testPatternValid 0.002
testLocaleValid 0.002
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
testUpdateCountryCode 0
testIsIDNtoASCIIBroken 0
testDomainNoDots 0
testCannotUpdate 0
testIDNJava6OrLater 0.001
testEnumIsPublic 0
testInvalidDomains 0.001
testUpdateGeneric 0
testUnicodeToASCII 0
testUpdateBaseArrays 0
test_GENERIC_TLDS_sortedAndLowerCase 0
test_COUNTRY_CODE_TLDS_sortedAndLowerCase 0.001
testValidDomains 0
testValidator297 0
testValidator306 0

DoubleValidatorTest

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

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.002
testValidNotStrict 0
testInvalidNotStrict 0.001
testFormatType 0
testInvalidStrict 0.001
testFormat 0
testValidStrict 0

IBANValidatorTest

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

InetAddressValidatorTest

testIPv6 0.005
testVALIDATOR_335 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
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
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

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.004
testLocaleInvalid 0.002
testCompare 0
testPatternValid 0.002
testLocaleValid 0.001
testFormat 0.001

UrlValidatorTest

testValidateUrl 0
testValidator339IDN 0
testIsValidScheme 0
testIsValid 0.383
testValidator202 0
testValidator204 0
testValidator218 0
testValidator235 0.001
testValidator248 0
testValidator276 0.001
testValidator288 0
testValidator290 0
testValidator309 0.001
testValidator339 0
testValidator342 0
testValidator353 0
testValidator361 0
testValidator363 0.001
testValidator375 0
testValidator380 0
testValidator382 0

ShortTest

testShortMax 0.006
testShortMin 0.012
testShortBeyondMax 0.009
testShortBeyondMin 0.008
testNumberFailure 0.009
testNumber 0.009

UrlTest

testValidateUrl 0
testIsValidScheme 0
testIsValid 0.328
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.003
testErrors 0.006

ValidatorTest

testManualObject 0
testManualBoolean 0
testOnlyValidateField 0
testOnlyReturnErrors 0.001

VarTest

testVars 0.005