|
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 Currency implements Serializable { |
|
11
|
|
|
|
12
|
|
private static final long serialVersionUID = 7575135563125400106L; |
|
13
|
|
|
|
14
|
|
private final String code; |
|
15
|
|
private final String name; |
|
16
|
|
|
|
17
|
|
@JsonCreator |
|
18
|
|
public Currency( |
|
19
|
|
@JsonProperty("code") final String code, |
|
20
|
|
@JsonProperty("name") final String name) { |
|
21
|
|
this.code = code; |
|
22
|
|
this.name = name; |
|
23
|
|
} |
|
24
|
|
|
|
25
|
|
public String getCode() { |
|
26
|
1
1. getCode : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Currency::getCode → KILLED
|
return code; |
|
27
|
|
} |
|
28
|
|
|
|
29
|
|
public String getName() { |
|
30
|
1
1. getName : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Currency::getName → KILLED
|
return name; |
|
31
|
|
} |
|
32
|
|
|
|
33
|
|
@Override |
|
34
|
|
public boolean equals(final Object o) { |
|
35
|
2
1. equals : negated conditional → KILLED
2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Currency::equals → KILLED
|
if (this == o) return true; |
|
36
|
3
1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Currency::equals → KILLED
|
if (o == null || getClass() != o.getClass()) return false; |
|
37
|
|
final Currency currency = (Currency) o; |
|
38
|
2
1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Currency::equals → KILLED
|
return Objects.equal(code, currency.code) && |
|
39
|
1
1. equals : negated conditional → KILLED
|
Objects.equal(name, currency.name); |
|
40
|
|
} |
|
41
|
|
|
|
42
|
|
@Override |
|
43
|
|
public int hashCode() { |
|
44
|
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Currency::hashCode → KILLED
|
return Objects.hashCode(code, name); |
|
45
|
|
} |
|
46
|
|
|
|
47
|
|
@Override |
|
48
|
|
public String toString() { |
|
49
|
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Currency::toString → KILLED
|
return MoreObjects.toStringHelper(this) |
|
50
|
|
.add("code", code) |
|
51
|
|
.add("name", name) |
|
52
|
|
.toString(); |
|
53
|
|
} |
|
54
|
|
|
|
55
|
|
} |
| | Mutations |
| 26 |
|
1.1 Location : getCode Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:constructor()] replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Currency::getCode → KILLED
|
| 30 |
|
1.1 Location : getName Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:constructor()] replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Currency::getName → KILLED
|
| 35 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] replaced boolean return with false for pl/zankowski/iextrading4j/api/refdata/v1/Currency::equals → KILLED
|
| 36 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] negated conditional → KILLED 3.3 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Currency::equals → KILLED
|
| 38 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] replaced boolean return with true for pl/zankowski/iextrading4j/api/refdata/v1/Currency::equals → KILLED
|
| 39 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] negated conditional → KILLED
|
| 44 |
|
1.1 Location : hashCode Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:equalsContract()] replaced int return with 0 for pl/zankowski/iextrading4j/api/refdata/v1/Currency::hashCode → KILLED
|
| 49 |
|
1.1 Location : toString Killed by : pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.refdata.v1.CurrencyTest]/[method:toStringVerification()] replaced return value with "" for pl/zankowski/iextrading4j/api/refdata/v1/Currency::toString → KILLED
|