use of org.openlca.ilcd.processes.Process in project olca-modules by GreenDelta.
the class RefTreeTest method testProcessSample.
@Test
public void testProcessSample() {
InputStream is = ProcessSampleTest.class.getResourceAsStream("sdk_sample_process.xml");
Process p = JAXB.unmarshal(is, Process.class);
RefTree tree = RefTree.create(p);
assertTrue(tree.getRefs().size() > 2);
int lciaResultCount = 0;
for (Ref ref : tree.getRefs()) {
if (ref.type == DataSetType.LCIA_METHOD) {
assertTrue(ref.isValid());
lciaResultCount++;
}
}
// two references but with same uuid
assertEquals(1, lciaResultCount);
// and version
}
Aggregations