Metadata.java

1
package pl.zankowski.iextrading4j.api.account;
2
3
import com.fasterxml.jackson.annotation.JsonCreator;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
6
import java.io.Serializable;
7
import java.util.Objects;
8
import java.util.StringJoiner;
9
10
public class Metadata implements Serializable {
11
12
    private static final long serialVersionUID = -7626003595227020176L;
13
14
    private final Boolean payAsYouGoEnabled;
15
    private final Long effectiveDate;
16
    private final Long endDateEffective;
17
    private final String subscriptionTermType;
18
    private final String tierName;
19
    private final Long messageLimit;
20
    private final Long creditLimit;
21
    private final Long messagesUsed;
22
    private final Long creditsUsed;
23
    private final Long circuitBreaker;
24
25
    @JsonCreator
26
    public Metadata(
27
            @JsonProperty("payAsYouGoEnabled") final Boolean payAsYouGoEnabled,
28
            @JsonProperty("effectiveDate") final Long effectiveDate,
29
            @JsonProperty("endDateEffective") final Long endDateEffective,
30
            @JsonProperty("subscriptionTermType") final String subscriptionTermType,
31
            @JsonProperty("tierName") final String tierName,
32
            @JsonProperty("messageLimit") final Long messageLimit,
33
            @JsonProperty("creditLimit") final Long creditLimit,
34
            @JsonProperty("messagesUsed") final Long messagesUsed,
35
            @JsonProperty("creditsUsed") final Long creditsUsed,
36
            @JsonProperty("circuitBreaker") final Long circuitBreaker) {
37
        this.payAsYouGoEnabled = payAsYouGoEnabled;
38
        this.effectiveDate = effectiveDate;
39
        this.endDateEffective = endDateEffective;
40
        this.subscriptionTermType = subscriptionTermType;
41
        this.tierName = tierName;
42
        this.messageLimit = messageLimit;
43
        this.creditLimit = creditLimit;
44
        this.messagesUsed = messagesUsed;
45
        this.creditsUsed = creditsUsed;
46
        this.circuitBreaker = circuitBreaker;
47
    }
48
49
    public Boolean getPayAsYouGoEnabled() {
50 2 1. getPayAsYouGoEnabled : replaced Boolean return with True for pl/zankowski/iextrading4j/api/account/Metadata::getPayAsYouGoEnabled → SURVIVED
2. getPayAsYouGoEnabled : replaced Boolean return with False for pl/zankowski/iextrading4j/api/account/Metadata::getPayAsYouGoEnabled → KILLED
        return payAsYouGoEnabled;
51
    }
52
53
    public Long getEffectiveDate() {
54 1 1. getEffectiveDate : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getEffectiveDate → KILLED
        return effectiveDate;
55
    }
56
57
    public Long getEndDateEffective() {
58 1 1. getEndDateEffective : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getEndDateEffective → KILLED
        return endDateEffective;
59
    }
60
61
    public String getSubscriptionTermType() {
62 1 1. getSubscriptionTermType : replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::getSubscriptionTermType → KILLED
        return subscriptionTermType;
63
    }
64
65
    public String getTierName() {
66 1 1. getTierName : replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::getTierName → KILLED
        return tierName;
67
    }
68
69
    public Long getMessageLimit() {
70 1 1. getMessageLimit : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getMessageLimit → KILLED
        return messageLimit;
71
    }
72
73
    public Long getCreditLimit() {
74 1 1. getCreditLimit : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCreditLimit → KILLED
        return creditLimit;
75
    }
76
77
    public Long getMessagesUsed() {
78 1 1. getMessagesUsed : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getMessagesUsed → KILLED
        return messagesUsed;
79
    }
80
81
    public Long getCreditsUsed() {
82 1 1. getCreditsUsed : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCreditsUsed → KILLED
        return creditsUsed;
83
    }
84
85
    public Long getCircuitBreaker() {
86 1 1. getCircuitBreaker : replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCircuitBreaker → KILLED
        return circuitBreaker;
87
    }
88
89
    @Override
90
    public boolean equals(final Object o) {
91 1 1. equals : negated conditional → KILLED
        if (this == o) {
92 1 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/account/Metadata::equals → KILLED
            return true;
93
        }
94 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (o == null || getClass() != o.getClass()) {
95 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/account/Metadata::equals → KILLED
            return false;
96
        }
97
        final Metadata metadata = (Metadata) o;
98 2 1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/account/Metadata::equals → KILLED
        return Objects.equals(payAsYouGoEnabled, metadata.payAsYouGoEnabled) &&
99 1 1. equals : negated conditional → KILLED
                Objects.equals(effectiveDate, metadata.effectiveDate) &&
100 1 1. equals : negated conditional → KILLED
                Objects.equals(endDateEffective, metadata.endDateEffective) &&
101 1 1. equals : negated conditional → KILLED
                Objects.equals(subscriptionTermType, metadata.subscriptionTermType) &&
102 1 1. equals : negated conditional → KILLED
                Objects.equals(tierName, metadata.tierName) &&
103 1 1. equals : negated conditional → KILLED
                Objects.equals(messageLimit, metadata.messageLimit) &&
104 1 1. equals : negated conditional → KILLED
                Objects.equals(creditLimit, metadata.creditLimit) &&
105 1 1. equals : negated conditional → KILLED
                Objects.equals(messagesUsed, metadata.messagesUsed) &&
106 1 1. equals : negated conditional → KILLED
                Objects.equals(creditsUsed, metadata.creditsUsed) &&
107 1 1. equals : negated conditional → KILLED
                Objects.equals(circuitBreaker, metadata.circuitBreaker);
108
    }
109
110
    @Override
111
    public int hashCode() {
112 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/account/Metadata::hashCode → KILLED
        return Objects.hash(payAsYouGoEnabled, effectiveDate, endDateEffective, subscriptionTermType, tierName,
113
                messageLimit, creditLimit, messagesUsed, creditsUsed, circuitBreaker);
114
    }
115
116
    @Override
117
    public String toString() {
118 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::toString → KILLED
        return new StringJoiner(", ", Metadata.class.getSimpleName() + "[", "]")
119
                .add("payAsYouGoEnabled=" + payAsYouGoEnabled)
120
                .add("effectiveDate=" + effectiveDate)
121
                .add("endDateEffective=" + endDateEffective)
122
                .add("subscriptionTermType='" + subscriptionTermType + "'")
123
                .add("tierName='" + tierName + "'")
124
                .add("messageLimit=" + messageLimit)
125
                .add("creditLimit=" + creditLimit)
126
                .add("messagesUsed=" + messagesUsed)
127
                .add("creditsUsed=" + creditsUsed)
128
                .add("circuitBreaker=" + circuitBreaker)
129
                .toString();
130
    }
131
}

Mutations

50

1.1
Location : getPayAsYouGoEnabled
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Boolean return with False for pl/zankowski/iextrading4j/api/account/Metadata::getPayAsYouGoEnabled → KILLED

2.2
Location : getPayAsYouGoEnabled
Killed by : none
replaced Boolean return with True for pl/zankowski/iextrading4j/api/account/Metadata::getPayAsYouGoEnabled → SURVIVED

54

1.1
Location : getEffectiveDate
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getEffectiveDate → KILLED

58

1.1
Location : getEndDateEffective
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getEndDateEffective → KILLED

62

1.1
Location : getSubscriptionTermType
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::getSubscriptionTermType → KILLED

66

1.1
Location : getTierName
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced return value with "" for pl/zankowski/iextrading4j/api/account/Metadata::getTierName → KILLED

70

1.1
Location : getMessageLimit
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getMessageLimit → KILLED

74

1.1
Location : getCreditLimit
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCreditLimit → KILLED

78

1.1
Location : getMessagesUsed
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getMessagesUsed → KILLED

82

1.1
Location : getCreditsUsed
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCreditsUsed → KILLED

86

1.1
Location : getCircuitBreaker
Killed by : pl.zankowski.iextrading4j.api.account.MetadataTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.account.MetadataTest]/[method:constructor()]
replaced Long return value with 0L for pl/zankowski/iextrading4j/api/account/Metadata::getCircuitBreaker → KILLED

91

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

92

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

94

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

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

95

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

98

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

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

99

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

100

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

101

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

102

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

103

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

104

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

105

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

106

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

107

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

112

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

118

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

Active mutators

Tests examined


Report generated by PIT 1.7.1