| org.apache.commons.validator.ValidatorTest
ValidatorTest | public class ValidatorTest extends TestCase (Code) | | Performs Validation Test.
version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $ |
Inner Class :public class TestBean | |
formatDate | public static Date formatDate(Object bean, Field field)(Code) | | Formats a String to a Date .
The Validator will interpret a null
as validation having failed.
|
isCapLetter | public static boolean isCapLetter(Object bean, Field field, List l)(Code) | | Checks if the field is one upper case letter between 'A' and 'Z'.
|
main | public static void main(String[] theArgs)(Code) | | Start the tests.
Parameters: theArgs - the arguments. Not used |
setUp | protected void setUp()(Code) | | |
suite | public static Test suite()(Code) | | a test suite (TestSuite ) that includes all methodsstarting with "test" |
tearDown | protected void tearDown()(Code) | | |
testManualBoolean | public void testManualBoolean()(Code) | | Verify that one value generates an error and the other passes. The validation
method being tested returns a boolean value.
|
testManualObject | public void testManualObject()(Code) | | Verify that one value generates an error and the other passes. The validation
method being tested returns an object (null will be considered an error).
|
|
|