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