| org.apache.commons.validator.MultipleConfigFilesTest
MultipleConfigFilesTest | public class MultipleConfigFilesTest extends TestCase (Code) | | Tests that validator rules split between 2 different XML files get
merged properly.
version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $ |
Method Summary | |
protected void | setUp() Load ValidatorResources from multiple xml files. | public void | testBothBlank() With nothing provided, we should fail both because both are required. | public void | testMergedConfig() Check the forms and constants from different config files have
been merged into the same FormSet. | public void | testRequiredFirstNameBlankLastNameShort() If the first name fails required, and the second test fails int, we should get two errors. | public void | testRequiredLastNameLong() If first name is ok and last name is ok and is an int, no errors. | public void | testRequiredLastNameShort() If the first name is there, and the last name fails int, we should get one error. |
MultipleConfigFilesTest | public MultipleConfigFilesTest(String name)(Code) | | Constructor for MultipleConfigFilesTest.
Parameters: name - |
testBothBlank | public void testBothBlank() throws ValidatorException(Code) | | With nothing provided, we should fail both because both are required.
|
testMergedConfig | public void testMergedConfig() throws ValidatorException(Code) | | Check the forms and constants from different config files have
been merged into the same FormSet.
|
testRequiredFirstNameBlankLastNameShort | public void testRequiredFirstNameBlankLastNameShort() throws ValidatorException(Code) | | If the first name fails required, and the second test fails int, we should get two errors.
|
testRequiredLastNameLong | public void testRequiredLastNameLong() throws ValidatorException(Code) | | If first name is ok and last name is ok and is an int, no errors.
|
testRequiredLastNameShort | public void testRequiredLastNameShort() throws ValidatorException(Code) | | If the first name is there, and the last name fails int, we should get one error.
|
|
|