2 * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may
5 * not use this file except in compliance with the License. You may obtain
6 * a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 * implied. See the License for the specific language governing
14 * permissions and limitations under the License.
16 package org.akraino.validation.ui.client.nexus.resources;
18 import java.util.List;
20 import org.codehaus.jackson.annotate.JsonIgnoreProperties;
21 import org.codehaus.jackson.annotate.JsonProperty;
22 import org.codehaus.jackson.map.annotate.JsonSerialize;
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
26 public class RobotTestResult implements IResource {
28 @JsonProperty("robot")
33 public RobotTestResult() {
37 public Robot getRobot() {
41 public void setRobot(Robot robot) {
45 public String getName() {
49 public void setName(String name) {
54 @JsonProperty("suite")
57 @JsonProperty("statistics")
58 private Statistics statistics;
60 @JsonProperty("generated")
61 private String generated;
63 @JsonProperty("generator")
64 private String generator;
66 @JsonProperty("errors")
67 private String errors;
73 public Suite getSuite() {
77 public void setSuite(Suite suite) {
81 public Statistics getStatistics() {
82 return this.statistics;
85 public void setStatistics(Statistics statistics) {
86 this.statistics = statistics;
89 public String getGenerated() {
90 return this.generated;
93 public void setGenerated(String generated) {
94 this.generated = generated;
97 public String getGenerator() {
98 return this.generator;
101 public void setGenerator(String generator) {
102 this.generator = generator;
105 public String getErrors() {
109 public void setErrors(String errors) {
110 this.errors = errors;
114 @JsonProperty("status")
115 private Suite.Status status;
117 @JsonProperty("suite")
118 private Suite.NestedSuite suite;
123 @JsonProperty("name")
126 @JsonProperty("source")
127 private String source;
133 public String getId() {
137 public void setId(String id) {
141 public String getName() {
145 public void setName(String name) {
149 public String getSource() {
153 public void setSource(String source) {
154 this.source = source;
157 public Suite.Status getStatus() {
161 public void setStatus(Suite.Status status) {
162 this.status = status;
165 public Suite.NestedSuite getSuite() {
169 public void setSuite(Suite.NestedSuite suite) {
173 public class Status {
174 @JsonProperty("status")
175 private String status;
177 @JsonProperty("starttime")
178 private String starttime;
180 @JsonProperty("endtime")
181 private String endtime;
187 public String getStatus() {
191 public void setStatus(String status) {
192 this.status = status;
195 public String getStarttime() {
196 return this.starttime;
199 public void setStarttime(String starttime) {
200 this.starttime = starttime;
203 public String getEndtime() {
207 public void setEndtime(String endtime) {
208 this.endtime = endtime;
212 public class NestedSuite {
219 @JsonProperty("name")
222 @JsonProperty("source")
223 private String source;
225 @JsonProperty("test")
226 private List<Test> test;
231 @JsonProperty("status")
232 private NestedSuite.Status status;
234 public NestedSuite() {
238 public String getDoc() {
242 public void setDoc(String doc) {
246 public String getId() {
250 public void setId(String id) {
254 public String getName() {
258 public void setName(String name) {
262 public String getSource() {
266 public void setSource(String source) {
267 this.source = source;
270 public List<Test> getTest() {
274 public void setTest(List<Test> test) {
278 public List<Kw> getKw() {
282 public void setKw(List<Kw> kw) {
286 public NestedSuite.Status getStatus() {
290 public void setStatus(NestedSuite.Status status) {
291 this.status = status;
294 public class Status {
295 @JsonProperty("status")
296 private String status;
298 @JsonProperty("starttime")
299 private String starttime;
301 @JsonProperty("endtime")
302 private String endtime;
308 public String getStatus() {
312 public void setStatus(String status) {
313 this.status = status;
316 public String getStarttime() {
317 return this.starttime;
320 public void setStarttime(String starttime) {
321 this.starttime = starttime;
324 public String getEndtime() {
328 public void setEndtime(String endtime) {
329 this.endtime = endtime;
336 public class Statistics {
337 @JsonProperty("suite")
340 @JsonProperty("total")
346 public Statistics() {
350 public Suite getSuite() {
354 public void setSuite(Suite suite) {
358 public Total getTotal() {
362 public void setTotal(Total total) {
366 public TagStat getTag() {
370 public void setTag(TagStat tag) {
375 @JsonProperty("stat")
376 private List<Status> stat;
382 public List<Status> getStat() {
386 public void setStat(List<Status> stat) {
392 @JsonProperty("stat")
393 private List<Status> stat;
399 public List<Status> getStat() {
403 public void setStat(List<Status> stat) {
408 public class TagStat {
409 @JsonProperty("stat")
410 private List<Status> stat;
416 public List<Status> getStat() {
420 public void setStat(List<Status> stat) {