Apache Commons logo Commons Validator

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
482 0 0 0 100% 2.478

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.121
org.apache.commons.validator.util 13 0 0 0 100% 0.001
org.apache.commons.validator.routines 254 0 0 0 100% 0.531
org.apache.commons.validator 132 0 0 0 100% 1.825

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.011
CUSIPCheckDigitTest 9 0 0 0 100% 0.017
EAN13CheckDigitTest 7 0 0 0 100% 0.007
IBANCheckDigitTest 8 0 0 0 100% 0.054
ISBN10CheckDigitTest 7 0 0 0 100% 0.003
ISBNCheckDigitTest 8 0 0 0 100% 0.005
ISINCheckDigitTest 8 0 0 0 100% 0.004
ISSNCheckDigitTest 7 0 0 0 100% 0.007
LuhnCheckDigitTest 7 0 0 0 100% 0.003
SedolCheckDigitTest 8 0 0 0 100% 0.005
VerhoeffCheckDigitTest 7 0 0 0 100% 0.005

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.011
BigIntegerValidatorTest 12 0 0 0 100% 0.007
ByteValidatorTest 12 0 0 0 100% 0.006
CalendarValidatorTest 10 0 0 0 100% 0.024
CodeValidatorTest 7 0 0 0 100% 0.001
CreditCardValidatorTest 15 0 0 0 100% 0.005
CurrencyValidatorTest 6 0 0 0 100% 0.003
DateValidatorTest 8 0 0 0 100% 0.015
DomainValidatorTest 20 0 0 0 100% 0.007
DoubleValidatorTest 12 0 0 0 100% 0.007
EmailValidatorTest 18 0 0 0 100% 0.004
FloatValidatorTest 13 0 0 0 100% 0.007
IBANValidatorTest 11 0 0 0 100% 0.001
InetAddressValidatorTest 6 0 0 0 100% 0.009
IntegerValidatorTest 12 0 0 0 100% 0.005
ISBNValidatorTest 12 0 0 0 100% 0.001
ISSNValidatorTest 6 0 0 0 100% 0.001
LongValidatorTest 12 0 0 0 100% 0.005
PercentValidatorTest 3 0 0 0 100% 0.001
RegexValidatorTest 7 0 0 0 100% 0.002
ShortValidatorTest 12 0 0 0 100% 0.004
TimeValidatorTest 7 0 0 0 100% 0.01
UrlValidatorTest 21 0 0 0 100% 0.395

org.apache.commons.validator

Class Tests Errors Failures Skipped Success Rate Time
ByteTest 8 0 0 0 100% 0.258
CreditCardValidatorTest 2 0 0 0 100% 0.004
CustomValidatorResourcesTest 1 0 0 0 100% 0
DateTest 2 0 0 0 100% 0.026
DoubleTest 6 0 0 0 100% 0.083
EmailTest 11 0 0 0 100% 0.291
EntityImportTest 2 0 0 0 100% 0.017
ExceptionTest 1 0 0 0 100% 0.009
ExtensionTest 8 0 0 0 100% 0.075
FieldTest 9 0 0 0 100% 0
FloatTest 6 0 0 0 100% 0.073
GenericTypeValidatorTest 3 0 0 0 100% 0.055
GenericValidatorTest 2 0 0 0 100% 0
IntegerTest 8 0 0 0 100% 0.095
ISBNValidatorTest 1 0 0 0 100% 0.003
LocaleTest 5 0 0 0 100% 0.058
LongTest 8 0 0 0 100% 0.084
MultipleConfigFilesTest 5 0 0 0 100% 0.062
MultipleTest 8 0 0 0 100% 0.074
ParameterTest 1 0 0 0 100% 0.007
RequiredIfTest 5 0 0 0 100% 0.043
RequiredNameTest 6 0 0 0 100% 0.045
RetrieveFormTest 5 0 0 0 100% 0.059
ShortTest 6 0 0 0 100% 0.048
UrlTest 5 0 0 0 100% 0.328
ValidatorResourcesTest 1 0 0 0 100% 0.003
ValidatorResultsTest 2 0 0 0 100% 0.015
ValidatorTest 4 0 0 0 100% 0.003
VarTest 1 0 0 0 100% 0.007

Test Cases

[Summary] [Package List] [Test Cases]

ByteTest

testByteFailure 0.132
testByte 0.018
testByteMax 0.023
testByteMin 0.018
testByteBeyondMax 0.017
testByteBeyondMin 0.017
testNumberFailure 0.017
testNumber 0.016

CreditCardValidatorTest

testAddAllowedCardType 0.002
testIsValid 0.002

CustomValidatorResourcesTest

testCustomResources 0

DateTest

testInvalidDate 0.012
testValidDate 0.014

DoubleTest

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

EmailTest

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

EntityImportTest

testEntityImport 0.008
testParseURL 0.009

ExceptionTest

testValidatorException 0.009

ExtensionTest

testOrder 0.011
testRequiredLastName 0.01
testRequiredName 0.009
testRequiredLastNameBlank 0.01
testRequired 0.009
testRequiredFirstNameBlank 0.009
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.013
testFloatMin 0.013
testFloat 0.013
testFloatFailure 0.013
testNumberFailure 0.01
testNumber 0.011

GenericTypeValidatorTest

testType 0.02
testFRLocale 0.019
testUSLocale 0.016

GenericValidatorTest

testMaxLength 0
testMinLength 0

IntegerTest

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

ISBNValidatorTest

testIsValid 0.003

LocaleTest

testLocale1 0.013
testLocale2 0.011
testLocale3 0.011
testLocale4 0.012
testLocale5 0.011

LongTest

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

MultipleConfigFilesTest

testBothBlank 0.012
testMergedConfig 0.013
testRequiredLastNameShort 0.012
testRequiredFirstNameBlankLastNameShort 0.012
testRequiredLastNameLong 0.013

MultipleTest

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

ParameterTest

testAllValid 0.007

RequiredIfTest

testRequiredLastName 0.009
testRequiredLastNameBlank 0.009
testRequired 0.008
testRequiredFirstNameBlank 0.008
testRequiredFirstName 0.009

RequiredNameTest

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

RetrieveFormTest

testDefaultForm 0.013
testLanguageForm 0.01
testLanguageCountryForm 0.01
testFormNotFound 0.016
testLanguageCountryVariantForm 0.01

BigDecimalValidatorTest

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

BigIntegerValidatorTest

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

ByteValidatorTest

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

CalendarValidatorTest

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

ABANumberCheckDigitTest

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

CUSIPCheckDigitTest

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

EAN13CheckDigitTest

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

IBANCheckDigitTest

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

ISBN10CheckDigitTest

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

ISBNCheckDigitTest

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

ISINCheckDigitTest

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

ISSNCheckDigitTest

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

LuhnCheckDigitTest

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

SedolCheckDigitTest

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

VerhoeffCheckDigitTest

testZeroSum 0.001
testSerialization 0.001
testIsValidFalse 0.002
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.001

CreditCardValidatorTest

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

CurrencyValidatorTest

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

DateValidatorTest

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

DomainValidatorTest

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

DoubleValidatorTest

testDoubleValidatorMethods 0.001
testDoubleRangeMinMax 0
testValidateLocale 0.001
testValidateMinMax 0
testRangeMinMax 0
testSerialization 0.001
testValidNotStrict 0.001
testInvalidNotStrict 0.001
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.001
testVALIDATOR_278 0
testVALIDATOR_315 0
testEmailWithSpaces 0
testEmailUserName 0.002
testEmailWithBogusCharacter 0.001
testEmailWithNumericAddress 0
testValidator235 0
testValidator293 0
testValidator365 0
testValidator374 0

FloatValidatorTest

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

IBANValidatorTest

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

InetAddressValidatorTest

testIPv6 0.008
testVALIDATOR_335 0
testReservedInetAddresses 0
testBrokenInetAddresses 0.001
testInetAddressesByClass 0
testInetAddressesFromTheWild 0

IntegerValidatorTest

testIntegerValidatorMethods 0.001
testIntegerRangeMinMax 0
testValidateLocale 0.001
testValidateMinMax 0
testRangeMinMax 0
testSerialization 0.001
testValidNotStrict 0
testInvalidNotStrict 0.001
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.001
testInvalid 0
testValidISBN13Format 0

ISSNValidatorTest

testNull 0
testIsValidISSN 0
testIsValidISSNConvertSuffix 0
testInvalid 0
testIsValidISSNConvertNull 0
testIsValidISSNConvert 0.001

LongValidatorTest

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

PercentValidatorTest

testValid 0
testFormatType 0.001
testInvalid 0

RegexValidatorTest

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

ShortValidatorTest

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

TimeValidatorTest

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

UrlValidatorTest

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

ShortTest

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

UrlTest

testValidateUrl 0
testIsValidScheme 0.001
testIsValid 0.326
testValidator202 0.001
testValidator204 0

FlagsTest

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

ValidatorResourcesTest

testNullInputStream 0.003

ValidatorResultsTest

testAllValid 0.008
testErrors 0.007

ValidatorTest

testManualObject 0.002
testManualBoolean 0
testOnlyValidateField 0.001
testOnlyReturnErrors 0

VarTest

testVars 0.007