This commit is contained in:
Miriam Baglioni 2020-11-25 18:12:40 +01:00
parent 5fbe54ef54
commit 1a89f8211c
1 changed files with 3 additions and 8 deletions

View File

@ -164,14 +164,9 @@ public class CreateEntityTest {
final Consumer<ContextInfo> consumer = ci -> cInfoList.add(ci);
queryInformationSystem.getContextInformation(consumer);
cInfoList.forEach(cInfo -> {
try {
writer.write(new Gson().toJson(Process.getEntity(cInfo)));
} catch (IOException e) {
e.printStackTrace();
}
});
for(ContextInfo cInfo: cInfoList){
writer.write(new Gson().toJson(Process.getEntity(cInfo)));
}
writer.close();
}