| org.iscreen.validators.DateRangeValidatorTest
DateRangeValidatorTest | public class DateRangeValidatorTest extends TestCase (Code) | | Tests the DateRangeValidator validator.
author: Shellman, Dan |
Method Summary | |
protected void | setUp() | public void | testBetweenFailureAfter() Tests to make sure that a date after the 'to' reports a failure. | public void | testBetweenFailureBefore() Tests to make sure that a date before the 'from' reports a failure. | public void | testBetweenOnAfter() Tests to make sure that if the 'date' is equal to the 'to' date, no failure
is reported. | public void | testBetweenOnBefore() Tests to make sure that if the 'date' is equal to the 'from' date, no failure
is reported. | public void | testBetweenSuccess() Tests to make sure that a date that is within the range doesn't report a failure. | public void | testRangeEqual() Tests to make sure that if the range is equal, no failure is reported. | public void | testRangeFailure() Tests to make sure that if the range is wrong, a failure is reported. | public void | testRangeSuccess() Tests to make sure that if the range is correct, no failure is reported. |
DateRangeValidatorTest | public DateRangeValidatorTest(String name)(Code) | | Default constructor.
|
setUp | protected void setUp()(Code) | | |
testBetweenFailureAfter | public void testBetweenFailureAfter()(Code) | | Tests to make sure that a date after the 'to' reports a failure.
|
testBetweenFailureBefore | public void testBetweenFailureBefore()(Code) | | Tests to make sure that a date before the 'from' reports a failure.
|
testBetweenOnAfter | public void testBetweenOnAfter()(Code) | | Tests to make sure that if the 'date' is equal to the 'to' date, no failure
is reported.
|
testBetweenOnBefore | public void testBetweenOnBefore()(Code) | | Tests to make sure that if the 'date' is equal to the 'from' date, no failure
is reported.
|
testBetweenSuccess | public void testBetweenSuccess()(Code) | | Tests to make sure that a date that is within the range doesn't report a failure.
|
testRangeEqual | public void testRangeEqual()(Code) | | Tests to make sure that if the range is equal, no failure is reported.
|
testRangeFailure | public void testRangeFailure()(Code) | | Tests to make sure that if the range is wrong, a failure is reported.
|
testRangeSuccess | public void testRangeSuccess()(Code) | | Tests to make sure that if the range is correct, no failure is reported.
|
|
|