public class DateTest extends AbstractCommonTest
| Modifier and Type | Field and Description |
|---|---|
protected String |
ACTION
The key used to retrieve the validator action.
|
protected String |
FORM_KEY
The key used to retrieve the set of validation
rules from the xml file.
|
resources| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp()
Load
ValidatorResources from
validator-numeric.xml. |
void |
testInvalidDate()
Tests the date validation.
|
void |
testValidDate()
Tests the date validation.
|
protected void |
valueTest(Object info,
boolean passed)
Utlity class to run a test on a value.
|
loadResourcescountTestCases, 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, failSameprotected String FORM_KEY
protected void setUp() throws IOException, SAXException
ValidatorResources from
validator-numeric.xml.setUp in class junit.framework.TestCaseIOExceptionSAXExceptionpublic void testValidDate() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionpublic void testInvalidDate() throws org.apache.commons.validator.ValidatorException
org.apache.commons.validator.ValidatorExceptionprotected void valueTest(Object info, boolean passed) throws org.apache.commons.validator.ValidatorException
info - Value to run test on.passed - Whether or not the test is expected to pass.org.apache.commons.validator.ValidatorExceptionCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.