1
|
|
package pl.zankowski.iextrading4j.client.rest.manager; |
2
|
|
|
3
|
|
import com.google.common.base.MoreObjects; |
4
|
|
import com.google.common.base.Objects; |
5
|
|
|
6
|
|
public class RestResponse<R> { |
7
|
|
|
8
|
|
private final R response; |
9
|
|
private final String message; |
10
|
|
|
11
|
|
public RestResponse(final R response, final String message) { |
12
|
|
this.response = response; |
13
|
|
this.message = message; |
14
|
|
} |
15
|
|
|
16
|
|
public R getResponse() { |
17
|
1
1. getResponse : replaced return value with null for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::getResponse → KILLED
|
return response; |
18
|
|
} |
19
|
|
|
20
|
|
public String getMessage() { |
21
|
1
1. getMessage : replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::getMessage → KILLED
|
return message; |
22
|
|
} |
23
|
|
|
24
|
|
@Override |
25
|
|
public boolean equals(Object o) { |
26
|
2
1. equals : negated conditional → KILLED
2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::equals → KILLED
|
if (this == o) return true; |
27
|
3
1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::equals → KILLED
|
if (o == null || getClass() != o.getClass()) return false; |
28
|
|
RestResponse<?> that = (RestResponse<?>) o; |
29
|
2
1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::equals → KILLED
|
return Objects.equal(response, that.response) && |
30
|
1
1. equals : negated conditional → KILLED
|
Objects.equal(message, that.message); |
31
|
|
} |
32
|
|
|
33
|
|
@Override |
34
|
|
public int hashCode() { |
35
|
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::hashCode → KILLED
|
return Objects.hashCode(response, message); |
36
|
|
} |
37
|
|
|
38
|
|
@Override |
39
|
|
public String toString() { |
40
|
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::toString → KILLED
|
return MoreObjects.toStringHelper(this) |
41
|
|
.add("response", response) |
42
|
|
.add("message", message) |
43
|
|
.toString(); |
44
|
|
} |
45
|
|
} |
| | Mutations |
17 |
|
1.1 Location : getResponse Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:constructor()] replaced return value with null for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::getResponse → KILLED
|
21 |
|
1.1 Location : getMessage Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:constructor()] replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::getMessage → KILLED
|
26 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] replaced boolean return with false for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::equals → KILLED
|
27 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] negated conditional → KILLED 3.3 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::equals → KILLED
|
29 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::equals → KILLED
|
30 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] negated conditional → KILLED
|
35 |
|
1.1 Location : hashCode Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:equalsContract()] replaced int return with 0 for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::hashCode → KILLED
|
40 |
|
1.1 Location : toString Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestResponseTest]/[method:toStringVerification()] replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/RestResponse::toString → KILLED
|