| org.apache.commons.validator.TestCommon org.apache.commons.validator.LocaleTest
LocaleTest | public class LocaleTest extends TestCommon (Code) | | Performs Validation Test for locale validations.
version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $ |
Field Summary | |
protected static String | ACTION The key used to retrieve the validator action. | protected static 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-locale.xml. | public static Test | suite() | protected void | tearDown() | public void | testLocale1() See what happens when we try to validate with a Locale, Country and
variant. | public void | testLocale2() | public void | testLocale3() | public void | testLocale4() See if a locale of en_UK_TEST falls back to en_UK instead of default form
set. | public void | testLocale5() See if a locale of language=en falls back to default form set. |
ACTION | protected static String ACTION(Code) | | The key used to retrieve the validator action.
|
FORM_KEY | protected static String FORM_KEY(Code) | | The key used to retrieve the set of validation rules from the xml file.
|
LocaleTest | public LocaleTest(String name)(Code) | | Constructor for the LocaleTest object
Parameters: name - param |
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) | | The teardown method for JUnit
|
testLocale1 | public void testLocale1() throws ValidatorException(Code) | | See what happens when we try to validate with a Locale, Country and
variant. Also check if the added locale validation field is getting used.
exception: ValidatorException - If something goes wrong |
testLocale4 | public void testLocale4() throws ValidatorException(Code) | | See if a locale of en_UK_TEST falls back to en_UK instead of default form
set. Bug #16920 states that this isn't happening, even though it is
passing this test. see #16920.
exception: ValidatorException - If something goes wrong |
|
|