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;
}
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");
}
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;
}
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);
});
}
Aggregations