forked from D-Net/dnet-hadoop
This commit is contained in:
parent
5fbe54ef54
commit
1a89f8211c
|
@ -164,14 +164,9 @@ public class CreateEntityTest {
|
||||||
final Consumer<ContextInfo> consumer = ci -> cInfoList.add(ci);
|
final Consumer<ContextInfo> consumer = ci -> cInfoList.add(ci);
|
||||||
queryInformationSystem.getContextInformation(consumer);
|
queryInformationSystem.getContextInformation(consumer);
|
||||||
|
|
||||||
cInfoList.forEach(cInfo -> {
|
for(ContextInfo cInfo: cInfoList){
|
||||||
try {
|
writer.write(new Gson().toJson(Process.getEntity(cInfo)));
|
||||||
writer.write(new Gson().toJson(Process.getEntity(cInfo)));
|
}
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue