use of org.apache.cayenne.testdo.relationships.RelationshipHelper in project cayenne by apache.
the class MeaningfulFKIT method testValidateForSave2.
@Test
public void testValidateForSave2() throws Exception {
MeaningfulFK testObject = context.newObject(MeaningfulFK.class);
RelationshipHelper related = testObject.getObjectContext().newObject(RelationshipHelper.class);
testObject.setToRelationshipHelper(related);
ValidationResult validation = new ValidationResult();
testObject.validateForSave(validation);
assertFalse(validation.hasFailures());
}
Aggregations