InsiderSummary.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
6
import java.math.BigDecimal;
7
import java.util.Objects;
8
import java.util.StringJoiner;
9
10
public class InsiderSummary extends BaseData {
11
12
    private static final long serialVersionUID = 8669068160445448149L;
13
14
    private final String fullName;
15
    private final BigDecimal netTransacted;
16
    private final String reportedTitle;
17
    private final BigDecimal totalBought;
18
    private final BigDecimal totalSold;
19
20
    @JsonCreator
21
    public InsiderSummary(
22
            @JsonProperty("symbol") final String symbol,
23
            @JsonProperty("id") final String id,
24
            @JsonProperty("key") final String key,
25
            @JsonProperty("subkey") final String subkey,
26
            @JsonProperty("updated") final Long updated,
27
            @JsonProperty("date") final Long date,
28
            @JsonProperty("fullName") final String fullName,
29
            @JsonProperty("netTransacted") final BigDecimal netTransacted,
30
            @JsonProperty("reportedTitle") final String reportedTitle,
31
            @JsonProperty("totalBought") final BigDecimal totalBought,
32
            @JsonProperty("totalSold") final BigDecimal totalSold) {
33
        super(symbol, id, key, subkey, updated, date);
34
        this.fullName = fullName;
35
        this.netTransacted = netTransacted;
36
        this.reportedTitle = reportedTitle;
37
        this.totalBought = totalBought;
38
        this.totalSold = totalSold;
39
    }
40
41
    public String getFullName() {
42 1 1. getFullName : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getFullName → KILLED
        return fullName;
43
    }
44
45
    public BigDecimal getNetTransacted() {
46 1 1. getNetTransacted : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getNetTransacted → KILLED
        return netTransacted;
47
    }
48
49
    public String getReportedTitle() {
50 1 1. getReportedTitle : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getReportedTitle → KILLED
        return reportedTitle;
51
    }
52
53
    public BigDecimal getTotalBought() {
54 1 1. getTotalBought : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getTotalBought → KILLED
        return totalBought;
55
    }
56
57
    public BigDecimal getTotalSold() {
58 1 1. getTotalSold : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getTotalSold → KILLED
        return totalSold;
59
    }
60
61
    @Override
62
    public boolean equals(final Object o) {
63 1 1. equals : negated conditional → KILLED
        if (this == o) {
64 1 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED
            return true;
65
        }
66 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (o == null || getClass() != o.getClass()) {
67 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED
            return false;
68
        }
69 1 1. equals : negated conditional → KILLED
        if (!super.equals(o)) {
70 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED
            return false;
71
        }
72
        final InsiderSummary that = (InsiderSummary) o;
73 6 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
3. equals : negated conditional → KILLED
4. equals : negated conditional → KILLED
5. equals : negated conditional → KILLED
6. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::equals → KILLED
        return Objects.equals(fullName, that.fullName) && Objects.equals(netTransacted, that.netTransacted) && Objects.equals(reportedTitle, that.reportedTitle) && Objects.equals(totalBought, that.totalBought) && Objects.equals(totalSold, that.totalSold);
74
    }
75
76
    @Override
77
    public int hashCode() {
78 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::hashCode → KILLED
        return Objects.hash(super.hashCode(), fullName, netTransacted, reportedTitle, totalBought, totalSold);
79
    }
80
81
    @Override
82
    public String toString() {
83 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::toString → KILLED
        return new StringJoiner(", ", InsiderSummary.class.getSimpleName() + "[", "]")
84
                .add("fullName='" + fullName + "'")
85
                .add("netTransacted=" + netTransacted)
86
                .add("reportedTitle='" + reportedTitle + "'")
87
                .add("totalBought=" + totalBought)
88
                .add("totalSold=" + totalSold)
89
                .toString();
90
    }
91
}

Mutations

42

1.1
Location : getFullName
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.InsiderSummaryTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.InsiderSummaryTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getFullName → KILLED

46

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

50

1.1
Location : getReportedTitle
Killed by : pl.zankowski.iextrading4j.api.stocks.v1.InsiderSummaryTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.v1.InsiderSummaryTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderSummary::getReportedTitle → KILLED

54

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

58

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

63

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

64

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

66

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

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

67

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

69

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

70

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

73

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

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

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

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

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

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

78

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

83

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

Active mutators

Tests examined


Report generated by PIT 1.7.1