Apache Commons logo Commons Validator

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
443 0 0 0 100% 2.366

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 132 0 0 0 100% 1.822
org.apache.commons.validator.routines 222 0 0 0 100% 0.462
org.apache.commons.validator.routines.checkdigit 76 0 0 0 100% 0.081

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

Class Tests Errors Failures Skipped Success Rate Time
ByteTest 8 0 0 0 100% 0.401
CreditCardValidatorTest 2 0 0 0 100% 0.005
CustomValidatorResourcesTest 1 0 0 0 100% 0
DateTest 2 0 0 0 100% 0.047
DoubleTest 6 0 0 0 100% 0.078
EmailTest 11 0 0 0 100% 0.233
EntityImportTest 2 0 0 0 100% 0.014
ExceptionTest 1 0 0 0 100% 0.007
ExtensionTest 8 0 0 0 100% 0.075
FieldTest 9 0 0 0 100% 0.001
FloatTest 6 0 0 0 100% 0.063
GenericTypeValidatorTest 3 0 0 0 100% 0.047
GenericValidatorTest 2 0 0 0 100% 0
IntegerTest 8 0 0 0 100% 0.072
ISBNValidatorTest 1 0 0 0 100% 0.003
LocaleTest 5 0 0 0 100% 0.044
LongTest 8 0 0 0 100% 0.072
MultipleConfigFilesTest 5 0 0 0 100% 0.057
MultipleTest 8 0 0 0 100% 0.063
ParameterTest 1 0 0 0 100% 0.007
RequiredIfTest 5 0 0 0 100% 0.043
RequiredNameTest 6 0 0 0 100% 0.039
RetrieveFormTest 5 0 0 0 100% 0.059
ShortTest 6 0 0 0 100% 0.044
UrlTest 5 0 0 0 100% 0.324
ValidatorResourcesTest 1 0 0 0 100% 0.002
ValidatorResultsTest 2 0 0 0 100% 0.01
ValidatorTest 4 0 0 0 100% 0.005
VarTest 1 0 0 0 100% 0.007

org.apache.commons.validator.routines

Class Tests Errors Failures Skipped Success Rate Time
BigDecimalValidatorTest 12 0 0 0 100% 0.019
BigIntegerValidatorTest 12 0 0 0 100% 0.005
ByteValidatorTest 12 0 0 0 100% 0.01
CalendarValidatorTest 10 0 0 0 100% 0.027
CodeValidatorTest 7 0 0 0 100% 0.002
CreditCardValidatorTest 14 0 0 0 100% 0.004
CurrencyValidatorTest 6 0 0 0 100% 0.006
DateValidatorTest 8 0 0 0 100% 0.02
DomainValidatorTest 15 0 0 0 100% 0.005
DoubleValidatorTest 12 0 0 0 100% 0.006
EmailValidatorTest 16 0 0 0 100% 0.01
FloatValidatorTest 13 0 0 0 100% 0.01
InetAddressValidatorTest 6 0 0 0 100% 0.008
IntegerValidatorTest 12 0 0 0 100% 0.004
ISBNValidatorTest 12 0 0 0 100% 0.003
LongValidatorTest 12 0 0 0 100% 0.004
PercentValidatorTest 3 0 0 0 100% 0.002
RegexValidatorTest 7 0 0 0 100% 0.001
ShortValidatorTest 12 0 0 0 100% 0
TimeValidatorTest 7 0 0 0 100% 0.011
UrlValidatorTest 14 0 0 0 100% 0.305

org.apache.commons.validator.routines.checkdigit

Class Tests Errors Failures Skipped Success Rate Time
ABANumberCheckDigitTest 7 0 0 0 100% 0.013
CUSIPCheckDigitTest 9 0 0 0 100% 0.01
EAN13CheckDigitTest 7 0 0 0 100% 0.005
IBANCheckDigitTest 8 0 0 0 100% 0.024
ISBN10CheckDigitTest 7 0 0 0 100% 0.004
ISBNCheckDigitTest 8 0 0 0 100% 0.006
ISINCheckDigitTest 8 0 0 0 100% 0.005
LuhnCheckDigitTest 7 0 0 0 100% 0.005
SedolCheckDigitTest 8 0 0 0 100% 0.005
VerhoeffCheckDigitTest 7 0 0 0 100% 0.004

Test Cases

[Summary] [Package List] [Test Cases]

ByteTest

testByteMin 0.279
testByte 0.015
testByteMax 0.024
testByteFailure 0.019
testByteBeyondMin 0.017
testByteBeyondMax 0.015
testNumber 0.018
testNumberFailure 0.014

CreditCardValidatorTest

testIsValid 0.005
testAddAllowedCardType 0

CustomValidatorResourcesTest

testCustomResources 0

DateTest

testInvalidDate 0.036
testValidDate 0.011

DoubleTest

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

EmailTest

testEmail 0.015
testEmailWithNumericAddress 0.009
testEmailExtension 0.008
testEmailWithDash 0.009
testEmailWithDotEnd 0.007
testEmailWithBogusCharacter 0.145
testEmailWithCommas 0.008
testEmailWithSpaces 0.007
testEmailWithControlChars 0.012
testEmailAtTLD 0.008
testEmailLocalhost 0.005

EntityImportTest

testEntityImport 0.007
testParseURL 0.007

ExceptionTest

testValidatorException 0.007

ExtensionTest

testRequired 0.011
testRequiredFirstNameBlank 0.01
testRequiredFirstName 0.007
testRequiredLastNameBlank 0.008
testRequiredLastName 0.009
testRequiredName 0.01
testOverrideRule 0.009
testOrder 0.011

FieldTest

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

FloatTest

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

GenericTypeValidatorTest

testType 0.017
testUSLocale 0.015
testFRLocale 0.015

GenericValidatorTest

testMinLength 0
testMaxLength 0

IntegerTest

testInt 0.01
testIntMin 0.009
testIntegerMax 0.009
testIntFailure 0.007
testIntBeyondMin 0.01
testIntBeyondMax 0.011
testNumber 0.008
testNumberFailure 0.008

ISBNValidatorTest

testIsValid 0.003

LocaleTest

testLocale1 0.012
testLocale2 0.008
testLocale3 0.008
testLocale4 0.009
testLocale5 0.007

LongTest

testLong 0.008
testLongMin 0.01
testLongMax 0.008
testLongFailure 0.01
testLongBeyondMin 0.009
testLongBeyondMax 0.01
testNumber 0.009
testNumberFailure 0.008

MultipleConfigFilesTest

testMergedConfig 0.012
testBothBlank 0.011
testRequiredFirstNameBlankLastNameShort 0.011
testRequiredLastNameShort 0.011
testRequiredLastNameLong 0.012

MultipleTest

testFailingFirstDependentValidator 0.01
testFailingNextDependentValidator 0.009
testPassingDependentsFailingMain 0.008
testPassingDependentsPassingMain 0.007
testBothBlank 0.008
testRequiredFirstNameBlankLastNameShort 0.006
testRequiredLastNameShort 0.007
testRequiredLastNameLong 0.008

ParameterTest

testAllValid 0.007

RequiredIfTest

testRequired 0.009
testRequiredFirstNameBlank 0.01
testRequiredFirstName 0.008
testRequiredLastNameBlank 0.009
testRequiredLastName 0.007

RequiredNameTest

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

RetrieveFormTest

testDefaultForm 0.008
testLanguageForm 0.008
testLanguageCountryForm 0.018
testLanguageCountryVariantForm 0.007
testFormNotFound 0.018

BigDecimalValidatorTest

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

BigIntegerValidatorTest

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

ByteValidatorTest

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

CalendarValidatorTest

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

ABANumberCheckDigitTest

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

CUSIPCheckDigitTest

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

EAN13CheckDigitTest

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

IBANCheckDigitTest

testZeroSum 0.002
testOther 0.005
testSerialization 0.001
testIsValidTrue 0
testIsValidFalse 0.015
testCalculateValid 0.001
testCalculateInvalid 0
testMissingCode 0

ISBN10CheckDigitTest

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

ISBNCheckDigitTest

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

ISINCheckDigitTest

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

LuhnCheckDigitTest

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

SedolCheckDigitTest

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

VerhoeffCheckDigitTest

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

CodeValidatorTest

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

CreditCardValidatorTest

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

CurrencyValidatorTest

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

DateValidatorTest

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

DomainValidatorTest

testValidDomains 0
testInvalidDomains 0
testTopLevelDomains 0
testAllowLocal 0.001
testIDN 0
testIDNJava6OrLater 0.002
testRFC2396domainlabel 0.001
testRFC2396toplabel 0
testDomainNoDots 0
testValidator297 0
testValidator306 0
test_INFRASTRUCTURE_TLDS_sortedAndLowerCase 0.001
test_COUNTRY_CODE_TLDS_sortedAndLowerCase 0
test_GENERIC_TLDS_sortedAndLowerCase 0
test_LOCAL_TLDS_sortedAndLowerCase 0

DoubleValidatorTest

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

EmailValidatorTest

testEmail 0
testEmailWithNumericAddress 0
testEmailExtension 0.001
testEmailWithDash 0
testEmailWithDotEnd 0
testEmailWithBogusCharacter 0.002
testEmailWithCommas 0
testEmailWithSpaces 0.001
testEmailWithControlChars 0.001
testEmailLocalhost 0
testVALIDATOR_315 0
testValidator235 0.003
testVALIDATOR_278 0
testEmailWithSlashes 0
testEmailUserName 0.002
testValidator293 0

FloatValidatorTest

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

InetAddressValidatorTest

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

IntegerValidatorTest

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

ISBNValidatorTest

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

LongValidatorTest

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

PercentValidatorTest

testFormatType 0.001
testValid 0.001
testInvalid 0

RegexValidatorTest

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

ShortValidatorTest

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

TimeValidatorTest

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

UrlValidatorTest

testIsValidScheme 0.001
testValidator202 0
testValidator204 0
testValidator218 0
testValidator248 0.002
testValidator288 0
testValidator276 0.001
testValidator309 0
testValidator339 0
testValidator342 0
testValidateUrl 0
testValidator290 0.001
testIsValid 0.299
testValidator235 0.001

ShortTest

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

UrlTest

testIsValidScheme 0.003
testValidator202 0.001
testValidator204 0
testValidateUrl 0
testIsValid 0.32

FlagsTest

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

ValidatorResourcesTest

testNullInputStream 0.002

ValidatorResultsTest

testAllValid 0.004
testErrors 0.006

ValidatorTest

testManualObject 0.003
testOnlyReturnErrors 0.001
testOnlyValidateField 0.001
testManualBoolean 0

VarTest

testVars 0.007