Search in sources :

Example 1 with ProcessBag

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");
    }
}
Also used : ProcessBag(org.openlca.ilcd.util.ProcessBag) InputStream(java.io.InputStream) Process(org.openlca.ilcd.processes.Process) Before(org.junit.Before)

Example 2 with ProcessBag

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);
}
Also used : ProcessBag(org.openlca.ilcd.util.ProcessBag) Process(org.openlca.ilcd.processes.Process)

Aggregations

Process (org.openlca.ilcd.processes.Process)2 ProcessBag (org.openlca.ilcd.util.ProcessBag)2 InputStream (java.io.InputStream)1 Before (org.junit.Before)1