InsiderRoster.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 InsiderRoster implements Serializable {
12
13
    private static final long serialVersionUID = 1274323028982169499L;
14
15
    private final String entityName;
16
    private final BigDecimal position;
17
    private final Long reportDate;
18
19
    @JsonCreator
20
    public InsiderRoster(
21
            @JsonProperty("entityName") final String entityName,
22
            @JsonProperty("position") final BigDecimal position,
23
            @JsonProperty("reportDate") final Long reportDate) {
24
        this.entityName = entityName;
25
        this.position = position;
26
        this.reportDate = reportDate;
27
    }
28
29
    public String getEntityName() {
30 1 1. getEntityName : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::getEntityName → KILLED
        return entityName;
31
    }
32
33
    public BigDecimal getPosition() {
34 1 1. getPosition : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::getPosition → KILLED
        return position;
35
    }
36
37
    public Long getReportDate() {
38 1 1. getReportDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::getReportDate → KILLED
        return reportDate;
39
    }
40
41
    @Override
42
    public boolean equals(final Object o) {
43 1 1. equals : negated conditional → KILLED
        if (this == o) {
44 1 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::equals → KILLED
            return true;
45
        }
46 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (o == null || getClass() != o.getClass()) {
47 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::equals → KILLED
            return false;
48
        }
49
        final InsiderRoster that = (InsiderRoster) o;
50 2 1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::equals → KILLED
        return Objects.equal(entityName, that.entityName) &&
51 1 1. equals : negated conditional → KILLED
                Objects.equal(position, that.position) &&
52 1 1. equals : negated conditional → KILLED
                Objects.equal(reportDate, that.reportDate);
53
    }
54
55
    @Override
56
    public int hashCode() {
57 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::hashCode → KILLED
        return Objects.hashCode(entityName, position, reportDate);
58
    }
59
60
    @Override
61
    public String toString() {
62 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/v1/InsiderRoster::toString → KILLED
        return MoreObjects.toStringHelper(this)
63
                .add("entityName", entityName)
64
                .add("position", position)
65
                .add("reportDate", reportDate)
66
                .toString();
67
    }
68
69
}

Mutations

30

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

34

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

38

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

43

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

44

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

46

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

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

47

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

50

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

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

51

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

52

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

57

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

62

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

Active mutators

Tests examined


Report generated by PIT 1.7.1