Search in sources :

Example 1 with UnitGroupImport

use of org.openlca.io.ilcd.input.UnitGroupImport in project olca-modules by GreenDelta.

the class ILCDImportExportTest method testC_Units.

@Test
public void testC_Units() {
    String id = "93a60a57-a4c8-11da-a746-0800200c9a66";
    var dataSet = importConf.store().get(UnitGroup.class, id);
    var group = new UnitGroupImport(importConf).run(dataSet);
    assertEquals(id, group.refId);
    new UnitGroupExport(exportConf).run(group);
    assertTrue(exportConf.store.contains(UnitGroup.class, id));
}
Also used : UnitGroup(org.openlca.ilcd.units.UnitGroup) UnitGroupImport(org.openlca.io.ilcd.input.UnitGroupImport) UnitGroupExport(org.openlca.io.ilcd.output.UnitGroupExport) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 UnitGroup (org.openlca.ilcd.units.UnitGroup)1 UnitGroupImport (org.openlca.io.ilcd.input.UnitGroupImport)1 UnitGroupExport (org.openlca.io.ilcd.output.UnitGroupExport)1