use of ihe.iti.xds_b._2007.ProvideAndRegisterDocumentSetRequestType.Document in project hale by halestudio.
the class TestModelRifToRifTranslator method testTranslateExample1NegationFilter.
/**
* Tests that it is possible to translate the example 3 CP source dataset,
* including a logical negation predicate filter.
*
* @throws TranslationException
* if any errors occurred during the translation
* @throws JAXBException
* if unable to write out a DOM document containing the RIF-PRD
*/
@Test
public void testTranslateExample1NegationFilter() throws TranslationException, JAXBException {
URL url = getClass().getClassLoader().getResource(// $NON-NLS-1$
"com/onespatial/jrc/tnstg/proto/oml_to_rif/alignments/example1_tn_road.goml");
org.w3._2007.rif.Document doc = translator.translate(url);
assertNotNull(doc);
assertNotNull(doc.getPayload());
assertNotNull(doc.getPayload().getGroup());
assertNotNull(doc.getPayload().getGroup().getSentence());
// CHECKSTYLE:OFF
assertThat(doc.getPayload().getGroup().getSentence().size(), is(3));
// CHECKSTYLE:ON
assertNotNull(doc.getPayload().getGroup().getSentence().get(0));
writeDom(getDomFromRif(doc), System.out);
}
Aggregations