|
24 | 24 |
|
25 | 25 | public class TestCaseResult {
|
26 | 26 |
|
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; |
35 | 35 |
|
| 36 | + // optional attributes |
| 37 | + private String source = null; |
| 38 | + private String dataflow = null; |
| 39 | + private String dataflowfile = null; |
| 40 | + private String sink = null; |
| 41 | + |
36 | 42 |
|
37 | 43 | /*
|
38 | 44 | * 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) {
|
105 | 111 | this.evidence = evidence;
|
106 | 112 | }
|
107 | 113 |
|
| 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 | + |
108 | 146 | public String toString() {
|
109 | 147 | return getNumber() + "," + getCategory() + "," + isReal() + "," + getCWE() + "," + isPassed() + "," + getEvidence() + "," + getConfidence();
|
110 | 148 | }
|
|
0 commit comments