Apache Commons logo Commons Validator

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
416 0 0 0 100% 3.053

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 72 0 0 0 100% 0.113
org.apache.commons.validator.util 11 0 0 0 100% 0
org.apache.commons.validator.routines 202 0 0 0 100% 0.714
org.apache.commons.validator 131 0 0 0 100% 2.226

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.004
CUSIPCheckDigitTest 7 0 0 0 100% 0.003
EAN13CheckDigitTest 7 0 0 0 100% 0.003
IBANCheckDigitTest 8 0 0 0 100% 0.087
ISBN10CheckDigitTest 7 0 0 0 100% 0.001
ISBNCheckDigitTest 8 0 0 0 100% 0.004
ISINCheckDigitTest 7 0 0 0 100% 0.005
LuhnCheckDigitTest 7 0 0 0 100% 0.003
SedolCheckDigitTest 7 0 0 0 100% 0.002
VerhoeffCheckDigitTest 7 0 0 0 100% 0.001

org.apache.commons.validator.util

Class Tests Errors Failures Skipped Success Rate Time
FlagsTest 11 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.013
BigIntegerValidatorTest 12 0 0 0 100% 0.006
ByteValidatorTest 12 0 0 0 100% 0.005
CalendarValidatorTest 10 0 0 0 100% 0.02
CodeValidatorTest 7 0 0 0 100% 0
CreditCardValidatorTest 14 0 0 0 100% 0.008
CurrencyValidatorTest 6 0 0 0 100% 0.002
DateValidatorTest 8 0 0 0 100% 0.015
DomainValidatorTest 5 0 0 0 100% 0
DoubleValidatorTest 12 0 0 0 100% 0.005
EmailValidatorTest 13 0 0 0 100% 0.013
FloatValidatorTest 13 0 0 0 100% 0.006
InetAddressValidatorTest 4 0 0 0 100% 0
IntegerValidatorTest 12 0 0 0 100% 0.005
ISBNValidatorTest 12 0 0 0 100% 0.008
LongValidatorTest 12 0 0 0 100% 0.005
PercentValidatorTest 3 0 0 0 100% 0.001
RegexValidatorTest 7 0 0 0 100% 0.003
ShortValidatorTest 12 0 0 0 100% 0.005
TimeValidatorTest 7 0 0 0 100% 0.01
UrlValidatorTest 9 0 0 0 100% 0.584

org.apache.commons.validator

Class Tests Errors Failures Skipped Success Rate Time
ByteTest 8 0 0 0 100% 0.417
CreditCardValidatorTest 2 0 0 0 100% 0.004
CustomValidatorResourcesTest 1 0 0 0 100% 0
DateTest 2 0 0 0 100% 0.042
DoubleTest 6 0 0 0 100% 0.111
EmailTest 10 0 0 0 100% 0.101
EntityImportTest 2 0 0 0 100% 0.017
ExceptionTest 1 0 0 0 100% 0.008
ExtensionTest 8 0 0 0 100% 0.098
FieldTest 9 0 0 0 100% 0
FloatTest 6 0 0 0 100% 0.081
GenericTypeValidatorTest 3 0 0 0 100% 0.06
GenericValidatorTest 2 0 0 0 100% 0
IntegerTest 8 0 0 0 100% 0.11
ISBNValidatorTest 1 0 0 0 100% 0.003
LocaleTest 5 0 0 0 100% 0.055
LongTest 8 0 0 0 100% 0.089
MultipleConfigFilesTest 5 0 0 0 100% 0.065
MultipleTest 8 0 0 0 100% 0.073
ParameterTest 1 0 0 0 100% 0.009
RequiredIfTest 5 0 0 0 100% 0.044
RequiredNameTest 6 0 0 0 100% 0.051
RetrieveFormTest 5 0 0 0 100% 0.061
ShortTest 6 0 0 0 100% 0.051
UrlTest 5 0 0 0 100% 0.647
ValidatorResourcesTest 1 0 0 0 100% 0.003
ValidatorResultsTest 2 0 0 0 100% 0.014
ValidatorTest 4 0 0 0 100% 0.004
VarTest 1 0 0 0 100% 0.008

Test Cases

[Summary] [Package List] [Test Cases]

ByteTest

testByteMax 0.255
testByteMin 0.027
testByte 0.032
testByteFailure 0.025
testByteBeyondMin 0.02
testByteBeyondMax 0.023
testNumber 0.018
testNumberFailure 0.017

CreditCardValidatorTest

testIsValid 0.003
testAddAllowedCardType 0.001

CustomValidatorResourcesTest

testCustomResources 0

DateTest

testValidDate 0.027
testInvalidDate 0.015

DoubleTest

testDouble 0.02
testDoubleMin 0.019
testDoubleMax 0.022
testDoubleFailure 0.016
testNumber 0.016
testNumberFailure 0.018

EmailTest

testEmail 0
testEmailWithNumericAddress 0.006
testEmailExtension 0.014
testEmailWithDash 0.013
testEmailWithDotEnd 0.012
testEmailWithBogusCharacter 0.012
testEmailWithCommas 0.01
testEmailWithSpaces 0.011
testEmailWithControlChars 0.013
testEmailLocalhost 0.01

EntityImportTest

testEntityImport 0.008
testParseURL 0.009

ExceptionTest

testValidatorException 0.008

ExtensionTest

testRequired 0.019
testRequiredFirstNameBlank 0.014
testRequiredFirstName 0.01
testRequiredLastNameBlank 0.01
testRequiredLastName 0.013
testRequiredName 0.012
testOverrideRule 0.01
testOrder 0.01

FieldTest

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

FloatTest

testFloat 0.011
testFloatMin 0.017
testFloatMax 0.015
testFloatFailure 0.013
testNumber 0.012
testNumberFailure 0.013

GenericTypeValidatorTest

testType 0.024
testUSLocale 0.017
testFRLocale 0.019

GenericValidatorTest

testMinLength 0
testMaxLength 0

IntegerTest

testInt 0.011
testIntMin 0.013
testIntegerMax 0.015
testIntFailure 0.019
testIntBeyondMin 0.011
testIntBeyondMax 0.013
testNumber 0.015
testNumberFailure 0.013

ISBNValidatorTest

testIsValid 0.003

LocaleTest

testLocale1 0.012
testLocale2 0.011
testLocale3 0.01
testLocale4 0.011
testLocale5 0.011

LongTest

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

MultipleConfigFilesTest

testMergedConfig 0.013
testBothBlank 0.013
testRequiredFirstNameBlankLastNameShort 0.012
testRequiredLastNameShort 0.015
testRequiredLastNameLong 0.012

MultipleTest

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

ParameterTest

testAllValid 0.009

RequiredIfTest

testRequired 0.01
testRequiredFirstNameBlank 0.009
testRequiredFirstName 0.008
testRequiredLastNameBlank 0.009
testRequiredLastName 0.008

RequiredNameTest

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

RetrieveFormTest

testDefaultForm 0.012
testLanguageForm 0.011
testLanguageCountryForm 0.01
testLanguageCountryVariantForm 0.012
testFormNotFound 0.016

BigDecimalValidatorTest

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

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.001
testRangeMinMax 0

ByteValidatorTest

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

CalendarValidatorTest

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

ABANumberCheckDigitTest

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

CUSIPCheckDigitTest

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

EAN13CheckDigitTest

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

IBANCheckDigitTest

testZeroSum 0
testOther 0.006
testSerialization 0
testIsValidTrue 0.002
testIsValidFalse 0.078
testCalculateValid 0.001
testCalculateInvalid 0
testMissingCode 0

ISBN10CheckDigitTest

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

ISBNCheckDigitTest

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

ISINCheckDigitTest

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

LuhnCheckDigitTest

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

SedolCheckDigitTest

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

VerhoeffCheckDigitTest

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

CodeValidatorTest

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

CreditCardValidatorTest

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

CurrencyValidatorTest

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

DateValidatorTest

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

DomainValidatorTest

testInvalidDomains 0
testTopLevelDomains 0
testValidDomains 0
testAllowLocal 0
testIDN 0

DoubleValidatorTest

testDoubleValidatorMethods 0.001
testDoubleRangeMinMax 0
testFormat 0
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.001
testEmailWithDotEnd 0
testEmailWithBogusCharacter 0.001
testEmailWithCommas 0.001
testEmailWithSpaces 0.001
testEmailWithControlChars 0.002
testEmailLocalhost 0.001
testEmailWithSlashes 0
testEmailUserName 0.004
testValidator293 0.001

FloatValidatorTest

testFloatValidatorMethods 0.001
testFloatSmallestValues 0
testFloatRangeMinMax 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.001

InetAddressValidatorTest

testInetAddressesFromTheWild 0
testInetAddressesByClass 0
testReservedInetAddresses 0
testBrokenInetAddresses 0

IntegerValidatorTest

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

ISBNValidatorTest

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

LongValidatorTest

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

PercentValidatorTest

testValid 0
testInvalid 0.001
testFormatType 0

RegexValidatorTest

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

ShortValidatorTest

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

TimeValidatorTest

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

UrlValidatorTest

testIsValid 0.583
testIsValidScheme 0
testValidator202 0
testValidator204 0
testValidator218 0
testValidator248 0
testValidator288 0
testValidator276 0
testValidateUrl 0.001

ShortTest

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

UrlTest

testIsValid 0.646
testIsValidScheme 0
testValidator202 0.001
testValidator204 0
testValidateUrl 0

FlagsTest

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

ValidatorResourcesTest

testNullInputStream 0.003

ValidatorResultsTest

testErrors 0.007
testAllValid 0.007

ValidatorTest

testManualObject 0.002
testOnlyReturnErrors 0.001
testOnlyValidateField 0.001
testManualBoolean 0

VarTest

testVars 0.008