assertTrue(condition.check(new Person("Uri", "Boness", 88)));
}
public void testCheck_SuccessWithNestedProperty() throws Exception {
Condition condition = new PropertyBeanCondition("address.street", new StringCondition());
assertTrue(condition.check(new Person("Uri", "Boness", 88, new Address("street"))));
}
public void testCheck_Failure() throws Exception {
Condition condition = new PropertyBeanCondition("age", new StringCondition());
assertFalse(condition.check(new Person("Uri", "Boness", 88)));