use of org.openlca.ilcd.util.ProcessBag in project olca-modules by GreenDelta.
the class ProcessBagTest method setUp.
@Before
public void setUp() throws Exception {
try (InputStream stream = this.getClass().getResourceAsStream("process.xml")) {
XmlBinder binder = new XmlBinder();
Process process = binder.fromStream(Process.class, stream);
bag = new ProcessBag(process, "en");
}
}
use of org.openlca.ilcd.util.ProcessBag in project olca-modules by GreenDelta.
the class DataSets method putProcess.
private static void putProcess(SodaClient client) throws Exception {
Process process = load(Process.class, "process.xml");
ProcessBag bag = new ProcessBag(process, "en");
if (!client.contains(Process.class, bag.getId()))
client.put(process);
}
Aggregations