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;
118 private String suiteId;
120 @JsonProperty("_name")
127 public String getSuiteId() {
131 public void setSuiteId(String suiteId) {
132 this.suiteId = suiteId;
135 public String getName() {
139 public void setName(String name) {
143 public Suite.Status getStatus() {
147 public void setStatus(Suite.Status status) {
148 this.status = status;
151 public class Status {
152 @JsonProperty("_status")
153 private String statusValue;
155 @JsonProperty("_starttime")
156 private String startTime;
158 @JsonProperty("_endtime")
159 private String endTime;
165 public String getStatusValue() {
166 return this.statusValue;
169 public void setStatusValue(String statusValue) {
170 this.statusValue = statusValue;
173 public String getStartTime() {
174 return this.startTime;
177 public void setStartTime(String startTime) {
178 this.startTime = startTime;
181 public String getEndTime() {
185 public void setEndTime(String endTime) {
186 this.endTime = endTime;
192 public class Statistics {
193 @JsonProperty("suite")
196 @JsonProperty("total")
202 public Statistics() {
206 public Suite getSuite() {
210 public void setSuite(Suite suite) {
214 public Total getTotal() {
218 public void setTotal(Total total) {
222 public TagStat getTag() {
226 public void setTag(TagStat tag) {
231 @JsonProperty("stat")
232 private List<Status> stat;
238 public List<Status> getStat() {
242 public void setStat(List<Status> stat) {
248 @JsonProperty("stat")
249 private List<Status> stat;
255 public List<Status> getStat() {
259 public void setStat(List<Status> stat) {
264 public class TagStat {
265 @JsonProperty("stat")
266 private List<Status> stat;
272 public List<Status> getStat() {
276 public void setStat(List<Status> stat) {