DeRegistrationResponse.java

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.Setter;
10
11
import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolDeRegistrationProjection;
12
13
@Getter
14
@Setter
15
public class DeRegistrationResponse implements Serializable {
16
17 1 1. getPoolId : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolId → SURVIVED
  private String poolId;
18
19 1 1. getPoolName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolName → SURVIVED
  private String poolName;
20
21 1 1. getPoolView : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolView → SURVIVED
  private String poolView;
22
23 1 1. getStakeKeys : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getStakeKeys → SURVIVED
  private List<String> stakeKeys;
24
25 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getTxHash → KILLED
  private String txHash;
26
27 1 1. getTotalFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getTotalFee → SURVIVED
  private BigInteger totalFee;
28
29 1 1. getPoolHold : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolHold → SURVIVED
  private BigInteger poolHold;
30
31 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getTime → SURVIVED
  private Timestamp time;
32
33 1 1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getFee → SURVIVED
  private BigInteger fee;
34
35 1 1. getRetiringEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getRetiringEpoch → KILLED
  private Integer retiringEpoch;
36
37 2 1. isRefundFlag : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::isRefundFlag → SURVIVED
2. isRefundFlag : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::isRefundFlag → SURVIVED
  private boolean refundFlag;
38
39
  public DeRegistrationResponse(PoolDeRegistrationProjection projection) {
40
    this.txHash = projection.getTxHash();
41
    this.time = projection.getTime();
42
    this.fee = projection.getFee();
43
    this.retiringEpoch = projection.getRetiringEpoch();
44
    this.refundFlag = projection.getRefundFlag();
45
  }
46
}

Mutations

17

1.1
Location : getPoolId
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolId → SURVIVED

19

1.1
Location : getPoolName
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolName → SURVIVED

21

1.1
Location : getPoolView
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolView → SURVIVED

23

1.1
Location : getStakeKeys
Killed by : none
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getStakeKeys → SURVIVED

25

1.1
Location : getTxHash
Killed by : org.cardanofoundation.explorer.api.controller.PoolReportControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.PoolReportControllerTest]/[method:testDetailDeregistration()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getTxHash → KILLED

27

1.1
Location : getTotalFee
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getTotalFee → SURVIVED

29

1.1
Location : getPoolHold
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getPoolHold → SURVIVED

31

1.1
Location : getTime
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getTime → SURVIVED

33

1.1
Location : getFee
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getFee → SURVIVED

35

1.1
Location : getRetiringEpoch
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsExist_returnPoolRetireResponse()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::getRetiringEpoch → KILLED

37

1.1
Location : isRefundFlag
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::isRefundFlag → SURVIVED

2.2
Location : isRefundFlag
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/DeRegistrationResponse::isRefundFlag → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2