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