1
|
|
package org.cardanofoundation.explorer.api.model.response.pool.lifecycle; |
2
|
|
|
3
|
|
import java.io.Serializable; |
4
|
|
import java.math.BigInteger; |
5
|
|
import java.sql.Timestamp; |
6
|
|
import java.util.List; |
7
|
|
|
8
|
|
import lombok.Getter; |
9
|
|
import lombok.NoArgsConstructor; |
10
|
|
import lombok.Setter; |
11
|
|
|
12
|
|
import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolUpdateDetailProjection; |
13
|
|
|
14
|
|
@Getter |
15
|
|
@Setter |
16
|
|
@NoArgsConstructor |
17
|
|
public class PoolUpdateDetailResponse implements Serializable { |
18
|
|
|
19
|
1
1. getPoolUpdateId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolUpdateId → SURVIVED
|
private Long poolUpdateId; |
20
|
|
|
21
|
1
1. getPoolId : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolId → SURVIVED
|
private String poolId; |
22
|
|
|
23
|
1
1. getPoolName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolName → KILLED
|
private String poolName; |
24
|
|
|
25
|
1
1. getPoolView : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolView → SURVIVED
|
private String poolView; |
26
|
|
|
27
|
1
1. getPreviousPledge : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPreviousPledge → KILLED
|
private BigInteger previousPledge; |
28
|
|
|
29
|
1
1. getPreviousMargin : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPreviousMargin → KILLED
|
private Double previousMargin; |
30
|
|
|
31
|
1
1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getTxHash → KILLED
|
private String txHash; |
32
|
|
|
33
|
1
1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getTime → KILLED
|
private Timestamp time; |
34
|
|
|
35
|
1
1. getStakeKeys : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getStakeKeys → SURVIVED
|
private List<String> stakeKeys; |
36
|
|
|
37
|
1
1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getFee → KILLED
|
private BigInteger fee; |
38
|
|
|
39
|
1
1. getRewardAccount : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getRewardAccount → KILLED
|
private String rewardAccount; |
40
|
|
|
41
|
1
1. getVrfKey : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getVrfKey → KILLED
|
private String vrfKey; |
42
|
|
|
43
|
1
1. getPledge : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPledge → KILLED
|
private BigInteger pledge; |
44
|
|
|
45
|
1
1. getMargin : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getMargin → KILLED
|
private Double margin; |
46
|
|
|
47
|
1
1. getCost : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getCost → SURVIVED
|
private BigInteger cost; |
48
|
|
|
49
|
1
1. getDeposit : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getDeposit → SURVIVED
|
private BigInteger deposit; |
50
|
|
|
51
|
|
public PoolUpdateDetailResponse(PoolUpdateDetailProjection projection) { |
52
|
|
this.poolUpdateId = projection.getPoolUpdateId(); |
53
|
|
this.poolId = projection.getPoolId(); |
54
|
|
this.poolName = projection.getPoolName(); |
55
|
|
this.poolView = projection.getPoolView(); |
56
|
|
this.txHash = projection.getTxHash(); |
57
|
|
this.time = projection.getTime(); |
58
|
|
this.fee = projection.getFee(); |
59
|
|
this.rewardAccount = projection.getRewardAccount(); |
60
|
|
this.vrfKey = projection.getVrfKey(); |
61
|
|
this.pledge = projection.getPledge(); |
62
|
|
this.margin = projection.getMargin(); |
63
|
|
this.cost = projection.getCost(); |
64
|
|
this.deposit = projection.getDeposit(); |
65
|
|
} |
66
|
|
} |
| | Mutations |
19 |
|
1.1 Location : getPoolUpdateId Killed by : none replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolUpdateId → SURVIVED
|
21 |
|
1.1 Location : getPoolId Killed by : none replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolId → SURVIVED
|
23 |
|
1.1 Location : getPoolName Killed by : org.cardanofoundation.explorer.api.controller.PoolReportControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.PoolReportControllerTest]/[method:testDetailPoolUpdate()] replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolName → KILLED
|
25 |
|
1.1 Location : getPoolView Killed by : none replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPoolView → SURVIVED
|
27 |
|
1.1 Location : getPreviousPledge Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExist_returnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPreviousPledge → KILLED
|
29 |
|
1.1 Location : getPreviousMargin Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPreviousMargin → KILLED
|
31 |
|
1.1 Location : getTxHash Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getTxHash → KILLED
|
33 |
|
1.1 Location : getTime Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getTime → KILLED
|
35 |
|
1.1 Location : getStakeKeys Killed by : none replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getStakeKeys → SURVIVED
|
37 |
|
1.1 Location : getFee Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getFee → KILLED
|
39 |
|
1.1 Location : getRewardAccount Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getRewardAccount → KILLED
|
41 |
|
1.1 Location : getVrfKey Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getVrfKey → KILLED
|
43 |
|
1.1 Location : getPledge Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getPledge → KILLED
|
45 |
|
1.1 Location : getMargin Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolUpdateIdIsExistAndIsFirstUpdateOrUnique_returnResponse()] replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getMargin → KILLED
|
47 |
|
1.1 Location : getCost Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getCost → SURVIVED
|
49 |
|
1.1 Location : getDeposit Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateDetailResponse::getDeposit → SURVIVED
|