public void testMinLengthConstraint() {
Constraint p = new StringLengthConstraint(RelationalOperator.GREATER_THAN_EQUAL_TO, 5);
assertFalse(p.test(null));
assertTrue(p.test(new Integer(12345)));
assertFalse(p.test(new Integer(1234)));
assertTrue(p.test("1234567890"));
assertFalse(p.test("1234"));
}
public void testRangeConstraint() {
Constraint p = new Range(new Integer(0), new Integer(10));