use of org.w3._2007.rif.Sentence in project hale by halestudio.
the class TestModelRifToRifTranslator method checkJavaBindings.
private Sentence checkJavaBindings(Document result) {
assertNotNull(result);
assertNotNull(result.getPayload());
assertNotNull(result.getPayload().getGroup());
assertNotNull(result.getPayload().getGroup().getSentence());
assertThat(result.getPayload().getGroup().getSentence().size(), is(1));
Sentence actualSentence = result.getPayload().getGroup().getSentence().get(0);
assertNotNull(actualSentence.getImplies());
assertNotNull(actualSentence.getImplies().getIf());
assertNotNull(actualSentence.getImplies().getIf().getExists());
assertNotNull(actualSentence.getImplies().getThen());
assertNotNull(actualSentence.getImplies().getThen().getDo());
checkDoElements(actualSentence.getImplies().getThen().getDo());
// check contents of if
And and = checkDeclareElement(actualSentence);
checkAndChildren(and);
return actualSentence;
}
Aggregations