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