public void testCompoundRules() {
Rules r = new Rules(TestBean.class);
// test must be required, and have a length in range 3 to 25
// or test must just equal confirmTest
CompoundPropertyConstraint rules = new CompoundPropertyConstraint(constraints.or(constraints.all("test",
new Constraint[] { constraints.required(), constraints.maxLength(25), constraints.minLength(3) }),
constraints.eqProperty("test", "confirmTest")));
r.add(rules);
assertTrue(r.test(new TestBean()));
TestBean b = new TestBean();