RecommendationTrends.java

1
package pl.zankowski.iextrading4j.api.stocks.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
import java.math.BigDecimal;
10
11
public class RecommendationTrends implements Serializable {
12
13
    private static final long serialVersionUID = -116711859222329067L;
14
15
    private final Long consensusEndDate;
16
    private final Long consensusStartDate;
17
    private final Long corporateActionsAppliedDate;
18
    private final BigDecimal ratingBuy;
19
    private final BigDecimal ratingHold;
20
    private final BigDecimal ratingNone;
21
    private final BigDecimal ratingOverweight;
22
    private final BigDecimal ratingScaleMark;
23
    private final BigDecimal ratingSell;
24
    private final BigDecimal ratingUnderweight;
25
26
    @JsonCreator
27
    public RecommendationTrends(
28
            @JsonProperty("consensusEndDate") final Long consensusEndDate,
29
            @JsonProperty("consensusStartDate") final Long consensusStartDate,
30
            @JsonProperty("corporateActionsAppliedDate") final Long corporateActionsAppliedDate,
31
            @JsonProperty("ratingBuy") final BigDecimal ratingBuy,
32
            @JsonProperty("ratingHold") final BigDecimal ratingHold,
33
            @JsonProperty("ratingNone") final BigDecimal ratingNone,
34
            @JsonProperty("ratingOverweight") final BigDecimal ratingOverweight,
35
            @JsonProperty("ratingScaleMark") final BigDecimal ratingScaleMark,
36
            @JsonProperty("ratingSell") final BigDecimal ratingSell,
37
            @JsonProperty("ratingUnderweight") final BigDecimal ratingUnderweight) {
38
        this.consensusEndDate = consensusEndDate;
39
        this.consensusStartDate = consensusStartDate;
40
        this.corporateActionsAppliedDate = corporateActionsAppliedDate;
41
        this.ratingBuy = ratingBuy;
42
        this.ratingHold = ratingHold;
43
        this.ratingNone = ratingNone;
44
        this.ratingOverweight = ratingOverweight;
45
        this.ratingScaleMark = ratingScaleMark;
46
        this.ratingSell = ratingSell;
47
        this.ratingUnderweight = ratingUnderweight;
48
    }
49
50
    public Long getConsensusEndDate() {
51 1 1. getConsensusEndDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getConsensusEndDate → KILLED
        return consensusEndDate;
52
    }
53
54
    public Long getConsensusStartDate() {
55 1 1. getConsensusStartDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getConsensusStartDate → KILLED
        return consensusStartDate;
56
    }
57
58
    public Long getCorporateActionsAppliedDate() {
59 1 1. getCorporateActionsAppliedDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getCorporateActionsAppliedDate → KILLED
        return corporateActionsAppliedDate;
60
    }
61
62
    public BigDecimal getRatingBuy() {
63 1 1. getRatingBuy : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingBuy → KILLED
        return ratingBuy;
64
    }
65
66
    public BigDecimal getRatingHold() {
67 1 1. getRatingHold : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingHold → KILLED
        return ratingHold;
68
    }
69
70
    public BigDecimal getRatingNone() {
71 1 1. getRatingNone : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingNone → KILLED
        return ratingNone;
72
    }
73
74
    public BigDecimal getRatingOverweight() {
75 1 1. getRatingOverweight : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingOverweight → KILLED
        return ratingOverweight;
76
    }
77
78
    public BigDecimal getRatingScaleMark() {
79 1 1. getRatingScaleMark : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingScaleMark → KILLED
        return ratingScaleMark;
80
    }
81
82
    public BigDecimal getRatingSell() {
83 1 1. getRatingSell : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingSell → KILLED
        return ratingSell;
84
    }
85
86
    public BigDecimal getRatingUnderweight() {
87 1 1. getRatingUnderweight : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingUnderweight → KILLED
        return ratingUnderweight;
88
    }
89
90
    @Override
91
    public boolean equals(final Object o) {
92 1 1. equals : negated conditional → KILLED
        if (this == o) {
93 1 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::equals → KILLED
            return true;
94
        }
95 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (o == null || getClass() != o.getClass()) {
96 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::equals → KILLED
            return false;
97
        }
98
        final RecommendationTrends that = (RecommendationTrends) o;
99 2 1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::equals → KILLED
        return Objects.equal(consensusEndDate, that.consensusEndDate) &&
100 1 1. equals : negated conditional → KILLED
                Objects.equal(consensusStartDate, that.consensusStartDate) &&
101 1 1. equals : negated conditional → KILLED
                Objects.equal(corporateActionsAppliedDate, that.corporateActionsAppliedDate) &&
102 1 1. equals : negated conditional → KILLED
                Objects.equal(ratingBuy, that.ratingBuy) &&
103 1 1. equals : negated conditional → KILLED
                Objects.equal(ratingHold, that.ratingHold) &&
104 1 1. equals : negated conditional → KILLED
                Objects.equal(ratingNone, that.ratingNone) &&
105 1 1. equals : negated conditional → KILLED
                Objects.equal(ratingOverweight, that.ratingOverweight) &&
106 1 1. equals : negated conditional → KILLED
                Objects.equal(ratingScaleMark, that.ratingScaleMark) &&
107 1 1. equals : negated conditional → KILLED
                Objects.equal(ratingSell, that.ratingSell) &&
108 1 1. equals : negated conditional → KILLED
                Objects.equal(ratingUnderweight, that.ratingUnderweight);
109
    }
110
111
    @Override
112
    public int hashCode() {
113 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::hashCode → KILLED
        return Objects.hashCode(consensusEndDate, consensusStartDate, corporateActionsAppliedDate, ratingBuy, ratingHold, ratingNone, ratingOverweight, ratingScaleMark, ratingSell, ratingUnderweight);
114
    }
115
116
    @Override
117
    public String toString() {
118 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::toString → KILLED
        return MoreObjects.toStringHelper(this)
119
                .add("consensusEndDate", consensusEndDate)
120
                .add("consensusStartDate", consensusStartDate)
121
                .add("corporateActionsAppliedDate", corporateActionsAppliedDate)
122
                .add("ratingBuy", ratingBuy)
123
                .add("ratingHold", ratingHold)
124
                .add("ratingNone", ratingNone)
125
                .add("ratingOverweight", ratingOverweight)
126
                .add("ratingScaleMark", ratingScaleMark)
127
                .add("ratingSell", ratingSell)
128
                .add("ratingUnderweight", ratingUnderweight)
129
                .toString();
130
    }
131
132
}

Mutations

51

1.1
Location : getConsensusEndDate
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getConsensusEndDate → KILLED

55

1.1
Location : getConsensusStartDate
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getConsensusStartDate → KILLED

59

1.1
Location : getCorporateActionsAppliedDate
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getCorporateActionsAppliedDate → KILLED

63

1.1
Location : getRatingBuy
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingBuy → KILLED

67

1.1
Location : getRatingHold
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingHold → KILLED

71

1.1
Location : getRatingNone
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingNone → KILLED

75

1.1
Location : getRatingOverweight
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingOverweight → KILLED

79

1.1
Location : getRatingScaleMark
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingScaleMark → KILLED

83

1.1
Location : getRatingSell
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingSell → KILLED

87

1.1
Location : getRatingUnderweight
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrendsTest]/[method:constructor()]
replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/RecommendationTrends::getRatingUnderweight → KILLED

92

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

93

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

95

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

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

96

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

99

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

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

100

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

101

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

102

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

103

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

104

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

105

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

106

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

107

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

108

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

113

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

118

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

Active mutators

Tests examined


Report generated by PIT 1.7.1