| org.iscreen.validators.StringValidatorTest
StringValidatorTest | public class StringValidatorTest extends TestCase (Code) | | Tests the StringValidator validator.
author: Shellman, Dan |
Method Summary | |
protected void | setUp() | public void | testMaxLengthCheck() Test to make sure that a value that's too long is reported properly. | public void | testMinLengthCheck() Tests the minimum length check. | public void | testNonNullCheck() Test to make sure that if a null value is checked but the
minimum length is zero/null, then no failure is reported. | public void | testNullCheck() Test to make sure that a null value with a positive minimum length
requirement causes a null failure. |
StringValidatorTest | public StringValidatorTest(String name)(Code) | | |
setUp | protected void setUp()(Code) | | |
testMaxLengthCheck | public void testMaxLengthCheck()(Code) | | Test to make sure that a value that's too long is reported properly.
|
testMinLengthCheck | public void testMinLengthCheck()(Code) | | Tests the minimum length check.
|
testNonNullCheck | public void testNonNullCheck()(Code) | | Test to make sure that if a null value is checked but the
minimum length is zero/null, then no failure is reported.
|
testNullCheck | public void testNullCheck()(Code) | | Test to make sure that a null value with a positive minimum length
requirement causes a null failure.
|
|
|