Exchange.java

1
package pl.zankowski.iextrading4j.api.refdata.v1;
2
3
import com.fasterxml.jackson.annotation.JsonCreator;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
import com.google.common.base.MoreObjects;
6
7
import java.io.Serializable;
8
import java.util.Objects;
9
import java.util.StringJoiner;
10
11
public class Exchange implements Serializable {
12
13
    private static final long serialVersionUID = -7878559134922419823L;
14
15
    private final String exchange;
16
    private final String region;
17
    private final String description;
18
    private final String mic;
19
    private final String segment;
20
    private final String segmentDescription;
21
    private final String suffix;
22
    private final String exchangeSuffix;
23
24
    @JsonCreator
25
    public Exchange(
26
            @JsonProperty("exchange") final String exchange,
27
            @JsonProperty("region") final String region,
28
            @JsonProperty("description") final String description,
29
            @JsonProperty("mic") final String mic,
30
            @JsonProperty("segment") final String segment,
31
            @JsonProperty("segmentDescription") final String segmentDescription,
32
            @JsonProperty("suffix") final String suffix,
33
            @JsonProperty("exchangeSuffix") final String exchangeSuffix) {
34
        this.exchange = exchange;
35
        this.region = region;
36
        this.description = description;
37
        this.mic = mic;
38
        this.segment = segment;
39
        this.segmentDescription = segmentDescription;
40
        this.suffix = suffix;
41
        this.exchangeSuffix = exchangeSuffix;
42
    }
43
44
    public String getExchange() {
45 1 1. getExchange : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getExchange → KILLED
        return exchange;
46
    }
47
48
    public String getRegion() {
49 1 1. getRegion : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getRegion → KILLED
        return region;
50
    }
51
52
    public String getDescription() {
53 1 1. getDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getDescription → KILLED
        return description;
54
    }
55
56
    public String getMic() {
57 1 1. getMic : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getMic → KILLED
        return mic;
58
    }
59
60
    public String getSegment() {
61 1 1. getSegment : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSegment → KILLED
        return segment;
62
    }
63
64
    public String getSegmentDescription() {
65 1 1. getSegmentDescription : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSegmentDescription → KILLED
        return segmentDescription;
66
    }
67
68
    public String getSuffix() {
69 1 1. getSuffix : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSuffix → KILLED
        return suffix;
70
    }
71
72
    public String getExchangeSuffix() {
73 1 1. getExchangeSuffix : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getExchangeSuffix → KILLED
        return exchangeSuffix;
74
    }
75
76
    @Override
77
    public boolean equals(final Object o) {
78 1 1. equals : negated conditional → KILLED
        if (this == o) {
79 1 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED
            return true;
80
        }
81 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (o == null || getClass() != o.getClass()) {
82 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED
            return false;
83
        }
84
        final Exchange exchange1 = (Exchange) o;
85 2 1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED
        return Objects.equals(exchange, exchange1.exchange) &&
86 1 1. equals : negated conditional → KILLED
                Objects.equals(region, exchange1.region) &&
87 1 1. equals : negated conditional → KILLED
                Objects.equals(description, exchange1.description) &&
88 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
                Objects.equals(mic, exchange1.mic) && Objects.equals(segment, exchange1.segment) &&
89 1 1. equals : negated conditional → KILLED
                Objects.equals(segmentDescription, exchange1.segmentDescription) &&
90 1 1. equals : negated conditional → KILLED
                Objects.equals(suffix, exchange1.suffix) &&
91 1 1. equals : negated conditional → KILLED
                Objects.equals(exchangeSuffix, exchange1.exchangeSuffix);
92
    }
93
94
    @Override
95
    public int hashCode() {
96 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::hashCode → KILLED
        return Objects.hash(exchange, region, description, mic, segment, segmentDescription, suffix, exchangeSuffix);
97
    }
98
99
    @Override
100
    public String toString() {
101 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::toString → KILLED
        return new StringJoiner(", ", Exchange.class.getSimpleName() + "[", "]")
102
                .add("exchange='" + exchange + "'")
103
                .add("region='" + region + "'")
104
                .add("description='" + description + "'")
105
                .add("mic='" + mic + "'")
106
                .add("segment='" + segment + "'")
107
                .add("segmentDescription='" + segmentDescription + "'")
108
                .add("suffix='" + suffix + "'")
109
                .add("exchangeSuffix='" + exchangeSuffix + "'")
110
                .toString();
111
    }
112
}

Mutations

45

1.1
Location : getExchange
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getExchange → KILLED

49

1.1
Location : getRegion
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getRegion → KILLED

53

1.1
Location : getDescription
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getDescription → KILLED

57

1.1
Location : getMic
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getMic → KILLED

61

1.1
Location : getSegment
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSegment → KILLED

65

1.1
Location : getSegmentDescription
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSegmentDescription → KILLED

69

1.1
Location : getSuffix
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getSuffix → KILLED

73

1.1
Location : getExchangeSuffix
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::getExchangeSuffix → KILLED

78

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

79

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED

81

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

82

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED

85

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::equals → KILLED

86

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

87

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

88

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

89

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

90

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

91

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
negated conditional → KILLED

96

1.1
Location : hashCode
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:equalsContract()]
replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::hashCode → KILLED

101

1.1
Location : toString
Killed by : pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.ExchangeTest]/[method:toStringVerification()]
replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Exchange::toString → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.1