-
Notifications
You must be signed in to change notification settings - Fork 238
Expand file tree
/
Copy pathStatusDetails.java
More file actions
174 lines (157 loc) · 3.73 KB
/
StatusDetails.java
File metadata and controls
174 lines (157 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/*
* Copyright 2016-2024 Qameta Software Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.qameta.allure.model;
import java.io.Serializable;
import java.util.Objects;
/**
* The type Status details.
*
* @author baev (Dmitry Baev)
* @see io.qameta.allure.model.WithStatusDetails
* @since 2.0
*/
public class StatusDetails implements Serializable {
private static final long serialVersionUID = 1L;
private boolean known;
private boolean muted;
private boolean flaky;
private String message;
private String trace;
/**
* Is known boolean.
*
* @return the boolean
*/
public boolean isKnown() {
return known;
}
/**
* Sets known.
*
* @param value the value
* @return self for method chaining
*/
public StatusDetails setKnown(final boolean value) {
this.known = value;
return this;
}
/**
* Is muted boolean.
*
* @return the boolean
*/
public boolean isMuted() {
return muted;
}
/**
* Sets muted.
*
* @param value the value
* @return self for method chaining
*/
public StatusDetails setMuted(final boolean value) {
this.muted = value;
return this;
}
/**
* Is flaky boolean.
*
* @return the boolean
*/
public boolean isFlaky() {
return flaky;
}
/**
* Sets flaky.
*
* @param value the value
* @return self for method chaining
*/
public StatusDetails setFlaky(final boolean value) {
this.flaky = value;
return this;
}
/**
* Gets message.
*
* @return the message
*/
public String getMessage() {
return message;
}
/**
* Sets message.
*
* @param value the value
* @return self for method chaining
*/
public StatusDetails setMessage(final String value) {
this.message = value;
return this;
}
/**
* Gets trace.
*
* @return the trace
*/
public String getTrace() {
return trace;
}
/**
* Sets trace.
*
* @param value the value
* @return self for method chaining
*/
public StatusDetails setTrace(final String value) {
this.trace = value;
return this;
}
/**
* {@inheritDoc}
*/
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final StatusDetails that = (StatusDetails) o;
return Objects.equals(message, that.message)
&& Objects.equals(trace, that.trace);
}
/**
* {@inheritDoc}
*/
@Override
public int hashCode() {
return Objects.hash(message, trace);
}
/**
* @return a string representation of this object
*/
@Override
public String toString() {
return "StatusDetails(" +
"known=" + this.known + ", " +
"muted=" + this.muted + ", " +
"flaky=" + this.flaky + ", " +
"message=" + this.message + ", " +
"trace=" + this.trace + ")";
}
}