Added phd test

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/infrastructure-tests@177274 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2019-02-26 13:25:14 +00:00
parent 71eef30d2a
commit b2b51c2fab
1 changed files with 12 additions and 0 deletions

View File

@ -64,6 +64,9 @@ public class Statistics extends ScopedTest {
}
String unmarshalledGR = getUnmarshalledResource(gr);
File xmlFile = new File(directory, uuid.toString()+".xml");
if(xmlFile.exists()) {
xmlFile.delete();
}
printLineToFile(unmarshalledGR, xmlFile);
final byte[] grUTF8Bytes = unmarshalledGR.getBytes("UTF-8");
@ -71,6 +74,9 @@ public class Statistics extends ScopedTest {
stringBuffer.append(",");
String unmarshalledR = ISMapper.marshal(r);
File jsonFile = new File(directory, uuid.toString()+".json");
if(jsonFile.exists()) {
jsonFile.delete();
}
printLineToFile(unmarshalledR, jsonFile);
final byte[] rUTF8Bytes = unmarshalledR.getBytes("UTF-8");
@ -88,7 +94,13 @@ public class Statistics extends ScopedTest {
directory = new File("/home/lucafrosini/Dropbox/Dottorato/Review Tesi");
File eServicesFile = new File(directory, "EService.csv");
if(eServicesFile.exists()) {
eServicesFile.delete();
}
File hostingNodeFile = new File(directory, "HostingNode.csv");
if(hostingNodeFile.exists()) {
hostingNodeFile.delete();
}
List<UUID> serviceIDs = new ArrayList<>();
// Data Tansfer Service