##### Validator

- Overview
- Download
- Documentation
  - Release Notes
  - Dependencies
  - License
  - Framework
  - Routines
  - Wiki
- JavaDocs
  - Current Release
  - 1.3.0 Release
  - 1.2.0 Release
  - 1.1.4 Release
  - 1.0.2 Release
- JavaScript Doc

##### Development

- Mailing Lists
- Issue Tracking
- Latest JavaDoc
- Source Repository
- Building

##### Project Documentation

- About
- Project Info
- Project Reports
  - Checkstyle
  - Changes
  - Change Log
  - JavaDocs
  - JavaDoc Report
  - JavaDoc Warnings Report
  - Source Xref
  - Test Xref
  - Project License
  - Unit Tests
  - JCoverage
- Development Process

##### Commons

- Home
- Components
- Sandbox
- Dormant
- Volunteering
- Contributing Patches
- Building Components
- Releasing Components
- Wiki

##### Legend

- External Link
- Opens in a new window

## Summary

[ summary] [ package list] [ test cases]

Tests | Errors | Failures | Success rate | Time(s)
--- | --- | --- | --- | ---
253 | 0 | 0 | 100.00% | 24.84

Note: failuresare anticipated and checked for with assertions while errorsare unanticipated.

## Package List

[ summary] [ package list] [ test cases]

Package | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
org.apache.commons.validator | 121 | 0 | 0 | 100.00% | 22.74
org.apache.commons.validator.routines | 121 | 0 | 0 | 100.00% | 1.95
org.apache.commons.validator.util | 11 | 0 | 0 | 100.00% | 0.16

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

### org.apache.commons.validator

Class | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
| ByteTest | 8 | 0 | 0 | 100.00% | 0.578
| CreditCardValidatorTest | 2 | 0 | 0 | 100.00% | 0.156
| CustomValidatorResourcesTest | 1 | 0 | 0 | 100.00% | 0.406
| DateTest | 2 | 0 | 0 | 100.00% | 0.438
| DoubleTest | 6 | 0 | 0 | 100.00% | 0.547
| EmailTest | 9 | 0 | 0 | 100.00% | 0.625
| EntityImportTest | 2 | 0 | 0 | 100.00% | 0.422
| ExceptionTest | 1 | 0 | 0 | 100.00% | 0.406
| ExtensionTest | 8 | 0 | 0 | 100.00% | 0.562
| FieldTest | 9 | 0 | 0 | 100.00% | 0.140
| FloatTest | 6 | 0 | 0 | 100.00% | 0.547
| GenericValidatorTest | 2 | 0 | 0 | 100.00% | 0.156
| IntegerTest | 8 | 0 | 0 | 100.00% | 0.594
| ISBNValidatorTest | 1 | 0 | 0 | 100.00% | 0.157
| LocaleTest | 5 | 0 | 0 | 100.00% | 0.500
| LongTest | 8 | 0 | 0 | 100.00% | 0.593
| MultipleConfigFilesTest | 5 | 0 | 0 | 100.00% | 0.516
| ParameterTest | 1 | 0 | 0 | 100.00% | 0.407
| RequiredIfTest | 5 | 0 | 0 | 100.00% | 0.500
| RequiredNameTest | 6 | 0 | 0 | 100.00% | 0.516
| RetrieveFormTest | 5 | 0 | 0 | 100.00% | 0.500
| ShortTest | 6 | 0 | 0 | 100.00% | 0.547
| TypeTest | 3 | 0 | 0 | 100.00% | 0.485
| UrlTest | 5 | 0 | 0 | 100.00% | 11.375
| ValidatorResultsTest | 2 | 0 | 0 | 100.00% | 0.438
| ValidatorTest | 4 | 0 | 0 | 100.00% | 0.219
| VarTest | 1 | 0 | 0 | 100.00% | 0.406

### org.apache.commons.validator.routines

Class | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
| BigDecimalValidatorTest | 11 | 0 | 0 | 100.00% | 0.156
| BigIntegerValidatorTest | 11 | 0 | 0 | 100.00% | 0.156
| ByteValidatorTest | 11 | 0 | 0 | 100.00% | 0.140
| CalendarValidatorTest | 9 | 0 | 0 | 100.00% | 0.172
| CurrencyValidatorTest | 6 | 0 | 0 | 100.00% | 0.156
| DateValidatorTest | 7 | 0 | 0 | 100.00% | 0.157
| DoubleValidatorTest | 11 | 0 | 0 | 100.00% | 0.141
| FloatValidatorTest | 12 | 0 | 0 | 100.00% | 0.140
| IntegerValidatorTest | 11 | 0 | 0 | 100.00% | 0.140
| LongValidatorTest | 11 | 0 | 0 | 100.00% | 0.140
| PercentValidatorTest | 3 | 0 | 0 | 100.00% | 0.156
| ShortValidatorTest | 11 | 0 | 0 | 100.00% | 0.141
| TimeValidatorTest | 7 | 0 | 0 | 100.00% | 0.156

### org.apache.commons.validator.util

Class | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
| FlagsTest | 11 | 0 | 0 | 100.00% | 0.157

## Test Cases

[ summary] [ package list] [ test cases]

### ByteTest

| testByte | 0.28
| testByteMin | 0.02
| testByteMax | 0.03
| testByteFailure | 0.02
| testByteBeyondMin | 0.02
| testByteBeyondMax | 0.05
| testNumber | 0.02
| testNumberFailure | 0.02

### CreditCardValidatorTest

| testIsValid | 0.02
| testAddAllowedCardType | 0.00

### CustomValidatorResourcesTest

| testCustomResources | 0.27

### DateTest

| testValidDate | 0.28
| testInvalidDate | 0.03

### DoubleTest

| testDouble | 0.28
| testDoubleMin | 0.02
| testDoubleMax | 0.03
| testDoubleFailure | 0.02
| testNumber | 0.03
| testNumberFailure | 0.03

### EmailTest

| testEmail | 0.30
| testEmailWithNumericAddress | 0.03
| testEmailExtension | 0.03
| testEmailWithDash | 0.02
| testEmailWithDotEnd | 0.02
| testEmailWithBogusCharacter | 0.02
| testEmailWithCommas | 0.02
| testEmailWithSpaces | 0.02
| testEmailWithControlChars | 0.05

### EntityImportTest

| testEntityImport | 0.25
| testParseURL | 0.03

### ExceptionTest

| testValidatorException | 0.27

### ExtensionTest

| testRequired | 0.28
| testRequiredFirstNameBlank | 0.02
| testRequiredFirstName | 0.02
| testRequiredLastNameBlank | 0.02
| testRequiredLastName | 0.02
| testRequiredName | 0.02
| testOverrideRule | 0.05
| testOrder | 0.02

### FieldTest

| testEmptyArgs | 0.00
| testDefaultPositionImplied | 0.00
| testDefaultUsingPositions | 0.00
| testDefaultOnePosition | 0.00
| testDefaultSomePositions | 0.00
| testOverrideUsingPositionA | 0.00
| testOverrideUsingPositionB | 0.00
| testOverridePositionImplied | 0.00
| testOverrideSomePosition | 0.00

### FloatTest

| testFloat | 0.28
| testFloatMin | 0.02
| testFloatMax | 0.03
| testFloatFailure | 0.02
| testNumber | 0.03
| testNumberFailure | 0.03

### GenericValidatorTest

| testMinLength | 0.02
| testMaxLength | 0.00

### IntegerTest

| testInt | 0.28
| testIntMin | 0.03
| testIntegerMax | 0.02
| testIntFailure | 0.02
| testIntBeyondMin | 0.03
| testIntBeyondMax | 0.03
| testNumber | 0.02
| testNumberFailure | 0.03

### ISBNValidatorTest

| testIsValid | 0.02

### LocaleTest

| testLocale1 | 0.28
| testLocale2 | 0.02
| testLocale3 | 0.02
| testLocale4 | 0.03
| testLocale5 | 0.02

### LongTest

| testLong | 0.28
| testLongMin | 0.02
| testLongMax | 0.03
| testLongFailure | 0.02
| testLongBeyondMin | 0.02
| testLongBeyondMax | 0.05
| testNumber | 0.02
| testNumberFailure | 0.02

### MultipleConfigFilesTest

| testMergedConfig | 0.26
| testBothBlank | 0.05
| testRequiredFirstNameBlankLastNameShort | 0.02
| testRequiredLastNameShort | 0.03
| testRequiredLastNameLong | 0.02

### ParameterTest

| testAllValid | 0.27

### RequiredIfTest

| testRequired | 0.28
| testRequiredFirstNameBlank | 0.02
| testRequiredFirstName | 0.02
| testRequiredLastNameBlank | 0.03
| testRequiredLastName | 0.02

### RequiredNameTest

| testRequired | 0.28
| testRequiredFirstNameBlank | 0.02
| testRequiredFirstName | 0.02
| testRequiredLastNameBlank | 0.02
| testRequiredLastName | 0.02
| testRequiredName | 0.02

### RetrieveFormTest

| testDefaultForm | 0.26
| testLanguageForm | 0.02
| testLanguageCountryForm | 0.03
| testLanguageCountryVariantForm | 0.02
| testFormNotFound | 0.02

### BigDecimalValidatorTest

| testBigDecimalValidatorMethods | 0.00
| testBigDecimalRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### BigIntegerValidatorTest

| testBigIntegerValidatorMethods | 0.00
| testBigIntegerRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### ByteValidatorTest

| testByteValidatorMethods | 0.00
| testByteRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### CalendarValidatorTest

| testCalendarValidatorMethods | 0.02
| testCompare | 0.00
| testDateTimeStyle | 0.00
| testFormat | 0.00
| testAdjustToTimeZone | 0.00
| testPatternValid | 0.00
| testPatternInvalid | 0.02
| testLocaleValid | 0.00
| testLocaleInvalid | 0.00

### CurrencyValidatorTest

| testFormatType | 0.00
| testValid | 0.00
| testInvalid | 0.00
| testIntegerValid | 0.00
| testIntegerInvalid | 0.00
| testPattern | 0.00

### DateValidatorTest

| testDateValidatorMethods | 0.02
| testCompare | 0.00
| testPatternValid | 0.02
| testPatternInvalid | 0.00
| testLocaleValid | 0.00
| testLocaleInvalid | 0.00
| testFormat | 0.00

### DoubleValidatorTest

| testDoubleValidatorMethods | 0.02
| testDoubleRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### FloatValidatorTest

| testFloatValidatorMethods | 0.02
| testFloatSmallestValues | 0.00
| testFloatRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### IntegerValidatorTest

| testIntegerValidatorMethods | 0.02
| testIntegerRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### LongValidatorTest

| testLongValidatorMethods | 0.02
| testLongRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### PercentValidatorTest

| testFormatType | 0.00
| testValid | 0.00
| testInvalid | 0.02

### ShortValidatorTest

| testShortValidatorMethods | 0.02
| testShortRangeMinMax | 0.00
| testFormatType | 0.00
| testValidateMinMax | 0.00
| testInvalidStrict | 0.00
| testInvalidNotStrict | 0.00
| testValidStrict | 0.00
| testValidNotStrict | 0.00
| testValidateLocale | 0.00
| testFormat | 0.00
| testRangeMinMax | 0.00

### TimeValidatorTest

| testPatternValid | 0.00
| testPatternInvalid | 0.00
| testLocaleValid | 0.00
| testLocaleInvalid | 0.02
| testTimeZone | 0.00
| testFormat | 0.00
| testCompare | 0.00

### ShortTest

| testShortMin | 0.28
| testShortMax | 0.03
| testShortBeyondMin | 0.02
| testShortBeyondMax | 0.03
| testNumber | 0.02
| testNumberFailure | 0.03

### TypeTest

| testType | 0.28
| testUSLocale | 0.03
| testFRLocale | 0.03

### UrlTest

| testIsValid | 11.24
| testIsValidScheme | 0.00
| testValidator202 | 0.00
| testValidator204 | 0.00
| testValidateUrl | 0.00

### FlagsTest

| testHashCode | 0.00
| testGetFlags | 0.00
| testIsOnOff | 0.00
| testTurnOnOff | 0.00
| testTurnOff | 0.00
| testTurnOffAll | 0.00
| testClear | 0.00
| testTurnOnAll | 0.00
| testClone | 0.00
| testEqualsObject | 0.00
| testToString | 0.00

### ValidatorResultsTest

| testAllValid | 0.27
| testErrors | 0.03

### ValidatorTest

| testManualObject | 0.08
| testOnlyReturnErrors | 0.00
| testOnlyValidateField | 0.00
| testManualBoolean | 0.00

### VarTest

| testVars | 0.27