Search in sources :

Example 1 with SourceImport

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

the class ILCDImportExportTest method testB_Source.

@Test
public void testB_Source() {
    var id = "2c699413-f88b-4cb5-a56d-98cb4068472f";
    var dataSet = importConf.store().get(Source.class, id);
    var source = new SourceImport(importConf).run(dataSet);
    assertEquals(id, source.refId);
    new SourceExport(exportConf).run(source);
    assertTrue(exportConf.store.contains(Source.class, id));
}
Also used : SourceImport(org.openlca.io.ilcd.input.SourceImport) SourceExport(org.openlca.io.ilcd.output.SourceExport) Source(org.openlca.ilcd.sources.Source) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Source (org.openlca.ilcd.sources.Source)1 SourceImport (org.openlca.io.ilcd.input.SourceImport)1 SourceExport (org.openlca.io.ilcd.output.SourceExport)1