| org.apache.commons.validator.TestCommon org.apache.commons.validator.DateTest
DateTest | public class DateTest extends TestCommon (Code) | | Abstracts date unit tests methods.
version: $Revision$ $Date$ |
Field Summary | |
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. |
Method Summary | |
public static void | main(String[] theArgs) Start the tests.
Parameters: theArgs - the arguments. | protected void | setUp() Load ValidatorResources from
validator-numeric.xml. | public static Test | suite() | protected void | tearDown() | public void | testInvalidDate() Tests the date validation. | public void | testValidDate() Tests the date validation. | protected void | valueTest(Object info, boolean passed) Utlity class to run a test on a value. |
ACTION | protected String ACTION(Code) | | The key used to retrieve the validator action.
|
FORM_KEY | protected String FORM_KEY(Code) | | The key used to retrieve the set of validation
rules from the xml file.
|
main | public static void main(String[] theArgs)(Code) | | Start the tests.
Parameters: theArgs - the arguments. Not used |
suite | public static Test suite()(Code) | | a test suite (TestSuite ) that includes all methodsstarting with "test" |
tearDown | protected void tearDown()(Code) | | |
valueTest | protected void valueTest(Object info, boolean passed) throws ValidatorException(Code) | | Utlity class to run a test on a value.
Parameters: info - Value to run test on. Parameters: passed - Whether or not the test is expected to pass. |
|
|