Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 8b7e0b7

Browse files
committedFeb 12, 2016
Updated CSVSerializer
1 parent 3b6923b commit 8b7e0b7

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed
 

‎eu.mondo.sam.core/src/main/java/eu/mondo/sam/core/publishers/CsvPublisher.java

+2-22
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,16 @@ public class CsvPublisher implements Publisher {
1616

1717
protected FilenameFactory factory;
1818

19-
protected String resultPath;
20-
21-
protected String extension;
19+
protected String resultPath = "../results/results.csv";;
2220

2321
public CsvPublisher(final FilenameFactory factory) {
2422
this.factory = factory;
25-
resultPath = "../results/csv/";
26-
extension = ".csv";
2723
}
2824

2925
@Override
3026
public void publish(final BenchmarkResult benchmarkResult) throws IOException {
3127
final CSVFormat format = CSVFormat.DEFAULT;
32-
FileWriter fileWriter = new FileWriter("results.csv", true);
28+
FileWriter fileWriter = new FileWriter(resultPath, true);
3329

3430
// CSV rows
3531
// Scenario, Tool, Run, Case attributes
@@ -67,24 +63,8 @@ public void publish(final BenchmarkResult benchmarkResult) throws IOException {
6763
}
6864
}
6965

70-
public String getExtension() {
71-
return extension;
72-
}
73-
74-
public void setExtension(final String extension) {
75-
this.extension = extension;
76-
}
77-
7866
public String getResultPath() {
7967
return resultPath;
8068
}
8169

82-
public void setResultPath(final String resultPath) {
83-
this.resultPath = resultPath;
84-
}
85-
86-
public String getFullname() {
87-
return resultPath + factory.getFilename() + extension;
88-
}
89-
9070
}

0 commit comments

Comments
 (0)
This repository has been archived.