1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.tap4j.model;
25
26 import java.util.LinkedList;
27 import java.util.List;
28
29 import org.tap4j.util.StatusValues;
30
31
32
33
34
35
36 public class TestResult extends TapResult {
37
38
39
40
41 private static final long serialVersionUID = -2735372334488828166L;
42
43
44
45
46 private StatusValues status;
47
48
49
50
51 private Integer testNumber;
52
53
54
55
56 private String description;
57
58
59
60
61 private Directive directive;
62
63
64
65
66 private TestSet subtest;
67
68
69
70
71 private List<Comment> comments;
72
73 public TestResult() {
74 super();
75 this.status = StatusValues.NOT_OK;
76 this.testNumber = -1;
77 this.subtest = null;
78 this.comments = new LinkedList<Comment>();
79 }
80
81
82
83
84
85
86
87 public TestResult(StatusValues testStatus, Integer testNumber) {
88 super();
89 this.status = testStatus;
90 this.testNumber = testNumber;
91 this.comments = new LinkedList<Comment>();
92 }
93
94
95
96
97 public StatusValues getStatus() {
98 return this.status;
99 }
100
101
102
103
104 public void setStatus(StatusValues status) {
105 this.status = status;
106 }
107
108
109
110
111 public Integer getTestNumber() {
112 return this.testNumber;
113 }
114
115
116
117
118 public void setTestNumber(Integer testNumber) {
119 this.testNumber = testNumber;
120 }
121
122
123
124
125 public String getDescription() {
126 return this.description;
127 }
128
129
130
131
132 public void setDescription(String description) {
133 this.description = description;
134 }
135
136
137
138
139 public Directive getDirective() {
140 return this.directive;
141 }
142
143
144
145
146 public void setDirective(Directive directive) {
147 this.directive = directive;
148 }
149
150
151
152
153 public TestSet getSubtest() {
154 return subtest;
155 }
156
157
158
159
160 public void setSubtest(TestSet subtest) {
161 this.subtest = subtest;
162 }
163
164
165
166
167 public List<Comment> getComments() {
168 return this.comments;
169 }
170
171
172
173
174 public void setComments(List<Comment> comments) {
175 this.comments = comments;
176 }
177
178
179
180
181
182
183 public void addComment(Comment comment) {
184 this.comments.add(comment);
185 }
186
187 }