Skip to content

Commit b6ecc4e

Browse files
committed
Fix the build! Forgot to check this change in.
1 parent fc95d35 commit b6ecc4e

File tree

1 file changed

+46
-8
lines changed

1 file changed

+46
-8
lines changed

src/main/java/org/owasp/benchmark/score/parsers/TestCaseResult.java

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,21 @@
2424

2525
public class TestCaseResult {
2626

27-
String testCaseName = "";
28-
int number = 0;
29-
boolean real = false;
30-
boolean result = false;
31-
int CWE = 0;
32-
String category = null;
33-
String evidence = null;
34-
int confidence = 0;
27+
private String testCaseName = "";
28+
private int number = 0;
29+
private boolean real = false;
30+
private boolean result = false;
31+
private int CWE = 0;
32+
private String category = null;
33+
private String evidence = null;
34+
private int confidence = 0;
3535

36+
// optional attributes
37+
private String source = null;
38+
private String dataflow = null;
39+
private String dataflowfile = null;
40+
private String sink = null;
41+
3642

3743
/*
3844
* Set the name of the test case (E.g., BenchmarkTest00001). This is frequently only used for
@@ -105,6 +111,38 @@ public void setEvidence(String evidence) {
105111
this.evidence = evidence;
106112
}
107113

114+
public String getSource() {
115+
return this.source;
116+
}
117+
118+
public void setSource(String source) {
119+
this.source = source;
120+
}
121+
122+
public String getDataFlow() {
123+
return this.dataflow;
124+
}
125+
126+
public void setDataFlow(String dataflow) {
127+
this.dataflow = dataflow;
128+
}
129+
130+
public String getDataFlowFile() {
131+
return this.dataflowfile;
132+
}
133+
134+
public void setDataFlowFile(String dataflowfile) {
135+
this.dataflowfile = dataflowfile;
136+
}
137+
138+
public String getSink() {
139+
return this.sink;
140+
}
141+
142+
public void setSink(String sink) {
143+
this.sink = sink;
144+
}
145+
108146
public String toString() {
109147
return getNumber() + "," + getCategory() + "," + isReal() + "," + getCWE() + "," + isPassed() + "," + getEvidence() + "," + getConfidence();
110148
}

0 commit comments

Comments
 (0)