UsExchange.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
import com.google.common.base.Objects;
7
8
import java.io.Serializable;
9
10
public class UsExchange implements Serializable {
11
12
    private static final long serialVersionUID = 1599060793574929356L;
13
14
    private final String name;
15
    private final String longName;
16
    private final String mic;
17
    private final String tapeId;
18
    private final String oatsId;
19
    private final String refId;
20
    private final String type;
21
22
    @JsonCreator
23
    public UsExchange(
24
            @JsonProperty("name") final String name,
25
            @JsonProperty("longName") final String longName,
26
            @JsonProperty("mic") final String mic,
27
            @JsonProperty("tapeId") final String tapeId,
28
            @JsonProperty("oatsId") final String oatsId,
29
            @JsonProperty("refId") final String refId,
30
            @JsonProperty("type") final String type) {
31
        this.name = name;
32
        this.longName = longName;
33
        this.mic = mic;
34
        this.tapeId = tapeId;
35
        this.oatsId = oatsId;
36
        this.refId = refId;
37
        this.type = type;
38
    }
39
40
    public String getName() {
41 1 1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::getName → KILLED
        return name;
42
    }
43
44
    public String getLongName() {
45 1 1. getLongName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::getLongName → KILLED
        return longName;
46
    }
47
48
    public String getMic() {
49 1 1. getMic : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::getMic → KILLED
        return mic;
50
    }
51
52
    public String getTapeId() {
53 1 1. getTapeId : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::getTapeId → KILLED
        return tapeId;
54
    }
55
56
    public String getOatsId() {
57 1 1. getOatsId : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::getOatsId → KILLED
        return oatsId;
58
    }
59
60
    public String getRefId() {
61 1 1. getRefId : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::getRefId → KILLED
        return refId;
62
    }
63
64
    public String getType() {
65 1 1. getType : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::getType → KILLED
        return type;
66
    }
67
68
    @Override
69
    public boolean equals(final Object o) {
70 1 1. equals : negated conditional → KILLED
        if (this == o) {
71 1 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::equals → KILLED
            return true;
72
        }
73 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (o == null || getClass() != o.getClass()) {
74 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::equals → KILLED
            return false;
75
        }
76
        final UsExchange that = (UsExchange) o;
77 2 1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::equals → KILLED
        return Objects.equal(name, that.name) &&
78 1 1. equals : negated conditional → KILLED
                Objects.equal(longName, that.longName) &&
79 1 1. equals : negated conditional → KILLED
                Objects.equal(mic, that.mic) &&
80 1 1. equals : negated conditional → KILLED
                Objects.equal(tapeId, that.tapeId) &&
81 1 1. equals : negated conditional → KILLED
                Objects.equal(oatsId, that.oatsId) &&
82 1 1. equals : negated conditional → KILLED
                Objects.equal(refId, that.refId) &&
83 1 1. equals : negated conditional → KILLED
                Objects.equal(type, that.type);
84
    }
85
86
    @Override
87
    public int hashCode() {
88 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::hashCode → KILLED
        return Objects.hashCode(name, longName, mic, tapeId, oatsId, refId, type);
89
    }
90
91
    @Override
92
    public String toString() {
93 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/UsExchange::toString → KILLED
        return MoreObjects.toStringHelper(this)
94
                .add("name", name)
95
                .add("longName", longName)
96
                .add("mic", mic)
97
                .add("tapeId", tapeId)
98
                .add("oatsId", oatsId)
99
                .add("refId", refId)
100
                .add("type", type)
101
                .toString();
102
    }
103
104
}

Mutations

41

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

45

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

49

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

53

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

57

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

61

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

65

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

70

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

71

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

73

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

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

74

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

77

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

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

78

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

79

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

80

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

81

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

82

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

83

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

88

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

93

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

Active mutators

Tests examined


Report generated by PIT 1.7.1