|
1
|
|
package pl.zankowski.iextrading4j.api.stocks; |
|
2
|
|
|
|
3
|
|
import com.fasterxml.jackson.annotation.JsonCreator; |
|
4
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
5
|
|
import com.google.common.base.Objects; |
|
6
|
|
|
|
7
|
|
import java.time.LocalDate; |
|
8
|
|
import java.util.List; |
|
9
|
|
|
|
10
|
|
public class TodayIpos extends Ipos { |
|
11
|
|
|
|
12
|
|
private static final long serialVersionUID = 5867189719422943277L; |
|
13
|
|
|
|
14
|
|
private final LocalDate lastUpdate; |
|
15
|
|
|
|
16
|
|
@JsonCreator |
|
17
|
|
public TodayIpos( |
|
18
|
|
@JsonProperty("rawData") final List<Ipo> rawData, |
|
19
|
|
@JsonProperty("viewData") final List<IpoSummary> viewData, |
|
20
|
|
@JsonProperty("lastUpdate") final LocalDate lastUpdate) { |
|
21
|
|
super(rawData, viewData); |
|
22
|
|
this.lastUpdate = lastUpdate; |
|
23
|
|
} |
|
24
|
|
|
|
25
|
|
public LocalDate getLastUpdate() { |
|
26
|
1
1. getLastUpdate : replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TodayIpos::getLastUpdate → KILLED
|
return lastUpdate; |
|
27
|
|
} |
|
28
|
|
|
|
29
|
|
@Override |
|
30
|
|
public boolean equals(final Object o) { |
|
31
|
2
1. equals : negated conditional → KILLED
2. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
if (this == o) return true; |
|
32
|
3
1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
3. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
if (o == null || getClass() != o.getClass()) return false; |
|
33
|
2
1. equals : negated conditional → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
if (!super.equals(o)) return false; |
|
34
|
|
final TodayIpos todayIpos = (TodayIpos) o; |
|
35
|
2
1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
return Objects.equal(lastUpdate, todayIpos.lastUpdate); |
|
36
|
|
} |
|
37
|
|
|
|
38
|
|
@Override |
|
39
|
|
public int hashCode() { |
|
40
|
1
1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/TodayIpos::hashCode → KILLED
|
return Objects.hashCode(super.hashCode(), lastUpdate); |
|
41
|
|
} |
|
42
|
|
|
|
43
|
|
@Override |
|
44
|
|
public String toString() { |
|
45
|
1
1. toString : replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TodayIpos::toString → KILLED
|
return "TodayIpos{" + |
|
46
|
|
"lastUpdate=" + lastUpdate + |
|
47
|
|
"} " + super.toString(); |
|
48
|
|
} |
|
49
|
|
|
|
50
|
|
} |
| | Mutations |
| 26 |
|
1.1 Location : getLastUpdate Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:constructor()] replaced return value with null for pl/zankowski/iextrading4j/api/stocks/TodayIpos::getLastUpdate → KILLED
|
| 31 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
| 32 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] negated conditional → KILLED 3.3 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
| 33 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] negated conditional → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
| 35 |
|
1.1 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] replaced boolean return with false for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED 2.2 Location : equals Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] replaced boolean return with true for pl/zankowski/iextrading4j/api/stocks/TodayIpos::equals → KILLED
|
| 40 |
|
1.1 Location : hashCode Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:equalsContract()] replaced int return with 0 for pl/zankowski/iextrading4j/api/stocks/TodayIpos::hashCode → KILLED
|
| 45 |
|
1.1 Location : toString Killed by : pl.zankowski.iextrading4j.api.stocks.TodayIposTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.api.stocks.TodayIposTest]/[method:toStringVerification()] replaced return value with "" for pl/zankowski/iextrading4j/api/stocks/TodayIpos::toString → KILLED
|