public class MultipleConfigFilesTest extends junit.framework.TestCase
| Constructor and Description |
|---|
MultipleConfigFilesTest(String name)
Constructor for MultipleConfigFilesTest.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Load
ValidatorResources from multiple xml files. |
void |
testBothBlank()
With nothing provided, we should fail both because both are required.
|
void |
testMergedConfig()
Check the forms and constants from different config files have
been merged into the same FormSet.
|
void |
testRequiredFirstNameBlankLastNameShort()
If the first name fails required, and the second test fails int, we should get two errors.
|
void |
testRequiredLastNameLong()
If first name is ok and last name is ok and is an int, no errors.
|
void |
testRequiredLastNameShort()
If the first name is there, and the last name fails int, we should get one error.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSamepublic MultipleConfigFilesTest(String name)
name - protected void setUp() throws IOException, SAXException
ValidatorResources from multiple xml files.setUp in class junit.framework.TestCaseIOExceptionSAXExceptionpublic void testMergedConfig()
public void testBothBlank() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testRequiredFirstNameBlankLastNameShort() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testRequiredLastNameShort() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testRequiredLastNameLong() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.