Search in sources :

Example 1 with DataSetInfo

use of org.openlca.ilcd.processes.DataSetInfo in project olca-modules by GreenDelta.

the class XmlBinderTest method makeProcess.

private Process makeProcess() {
    Process process = new Process();
    ProcessInfo pi = new ProcessInfo();
    DataSetInfo info = new DataSetInfo();
    process.processInfo = pi;
    pi.dataSetInfo = info;
    info.uuid = UUID.randomUUID().toString();
    return process;
}
Also used : Process(org.openlca.ilcd.processes.Process) ProcessInfo(org.openlca.ilcd.processes.ProcessInfo) DataSetInfo(org.openlca.ilcd.processes.DataSetInfo)

Example 2 with DataSetInfo

use of org.openlca.ilcd.processes.DataSetInfo in project olca-modules by GreenDelta.

the class ProcessReadWriteTest method setNameAndComment.

private void setNameAndComment(Process process) {
    DataSetInfo info = makeDataSetInfo(process);
    ProcessName name = new ProcessName();
    LangString.set(name.name, "process name", "en");
    info.name = name;
    LangString.set(info.comment, "process description", "en");
}
Also used : ProcessName(org.openlca.ilcd.processes.ProcessName) DataSetInfo(org.openlca.ilcd.processes.DataSetInfo)

Example 3 with DataSetInfo

use of org.openlca.ilcd.processes.DataSetInfo in project olca-modules by GreenDelta.

the class ProcessReadWriteTest method makeDataSetInfo.

private DataSetInfo makeDataSetInfo(Process process) {
    ProcessInfo information = new ProcessInfo();
    process.processInfo = information;
    DataSetInfo dataSetInformation = new DataSetInfo();
    information.dataSetInfo = dataSetInformation;
    return dataSetInformation;
}
Also used : ProcessInfo(org.openlca.ilcd.processes.ProcessInfo) DataSetInfo(org.openlca.ilcd.processes.DataSetInfo)

Example 4 with DataSetInfo

use of org.openlca.ilcd.processes.DataSetInfo in project olca-modules by GreenDelta.

the class ProcessSampleTest method testDataSetInfo.

@Test
public void testDataSetInfo() {
    with(p -> {
        DataSetInfo info = p.processInfo.dataSetInfo;
        assertEquals(2, info.complementingProcesses.length);
        assertEquals("identifierOfSubDataSet0", info.subIdentifier);
        assertEquals(2, info.classifications.size());
        assertEquals("baseName0", LangString.get(info.name.name, "en").value);
    });
}
Also used : DataSetInfo(org.openlca.ilcd.processes.DataSetInfo) Test(org.junit.Test)

Aggregations

DataSetInfo (org.openlca.ilcd.processes.DataSetInfo)4 ProcessInfo (org.openlca.ilcd.processes.ProcessInfo)2 Test (org.junit.Test)1 Process (org.openlca.ilcd.processes.Process)1 ProcessName (org.openlca.ilcd.processes.ProcessName)1