DeepAsyncRequest.java

1
package pl.zankowski.iextrading4j.client.socket.request.marketdata.deep;
2
3
import com.fasterxml.jackson.annotation.JsonCreator;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
import com.google.common.base.Objects;
6
7
import java.util.Set;
8
9
import static pl.zankowski.iextrading4j.api.util.SetUtil.immutableSet;
10
11
public class DeepAsyncRequest {
12
13
    private final Set<String> symbols;
14
    private final Set<DeepChannel> channels;
15
16
    @JsonCreator
17
    public DeepAsyncRequest(
18
            @JsonProperty("symbols") final Set<String> symbols,
19
            @JsonProperty("channels") final Set<DeepChannel> channels) {
20
        this.symbols = immutableSet(symbols);
21
        this.channels = immutableSet(channels);
22
    }
23
24
    public Set<String> getSymbols() {
25 1 1. getSymbols : replaced return value with Collections.emptySet for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::getSymbols → KILLED
        return symbols;
26
    }
27
28
    public Set<DeepChannel> getChannels() {
29 1 1. getChannels : replaced return value with Collections.emptySet for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::getChannels → KILLED
        return channels;
30
    }
31
32
    @Override
33
    public boolean equals(final Object o) {
34 2 1. equals : negated conditional → KILLED
2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::equals → KILLED
        if (this == o) return true;
35 3 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::equals → KILLED
        if (o == null || getClass() != o.getClass()) return false;
36
        final DeepAsyncRequest that = (DeepAsyncRequest) o;
37 2 1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::equals → KILLED
        return Objects.equal(symbols, that.symbols) &&
38 1 1. equals : negated conditional → KILLED
                Objects.equal(channels, that.channels);
39
    }
40
41
    @Override
42
    public int hashCode() {
43 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::hashCode → KILLED
        return Objects.hashCode(symbols, channels);
44
    }
45
46
    @Override
47
    public String toString() {
48 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::toString → KILLED
        return "DeepAsyncRequest{" +
49
                "symbols=" + symbols +
50
                ", channels=" + channels +
51
                '}';
52
    }
53
54
}

Mutations

25

1.1
Location : getSymbols
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:constructor()]
replaced return value with Collections.emptySet for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::getSymbols → KILLED

29

1.1
Location : getChannels
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:constructor()]
replaced return value with Collections.emptySet for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::getChannels → KILLED

34

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
negated conditional → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
replaced boolean return with false for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::equals → KILLED

35

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
negated conditional → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
negated conditional → KILLED

3.3
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
replaced boolean return with true for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::equals → KILLED

37

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
negated conditional → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
replaced boolean return with true for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::equals → KILLED

38

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
negated conditional → KILLED

43

1.1
Location : hashCode
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:equalsContract()]
replaced int return with 0 for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::hashCode → KILLED

48

1.1
Location : toString
Killed by : pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.socket.request.marketdata.deep.DeepAsyncRequestTest]/[method:toStringVerification()]
replaced return value with "" for pl/zankowski/iextrading4j/client/socket/request/marketdata/deep/DeepAsyncRequest::toString → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.1