RegistrationResponse.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.NoArgsConstructor;
10
import lombok.Setter;
11
12
import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolRegistrationProjection;
13
14
@Getter
15
@Setter
16
@NoArgsConstructor
17
public class RegistrationResponse implements Serializable {
18
19 1 1. getPoolId : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPoolId → KILLED
  private String poolId;
20
21 1 1. getPoolName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPoolName → KILLED
  private String poolName;
22
23 1 1. getPoolView : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPoolView → KILLED
  private String poolView;
24
25 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getTxHash → KILLED
  private String txHash;
26
27 1 1. getTotalFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getTotalFee → SURVIVED
  private BigInteger totalFee;
28
29 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getTime → KILLED
  private Timestamp time;
30
31 1 1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getFee → SURVIVED
  private BigInteger fee;
32
33 1 1. getRewardAccount : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getRewardAccount → KILLED
  private String rewardAccount;
34
35 1 1. getStakeKeys : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getStakeKeys → KILLED
  private List<String> stakeKeys;
36
37 1 1. getVrfKey : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getVrfKey → SURVIVED
  private String vrfKey;
38
39 1 1. getPledge : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPledge → KILLED
  private BigInteger pledge;
40
41 1 1. getMargin : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getMargin → SURVIVED
  private Double margin;
42
43 1 1. getCost : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getCost → SURVIVED
  private BigInteger cost;
44
45 1 1. getDeposit : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getDeposit → KILLED
  private BigInteger deposit;
46
47
  public RegistrationResponse(PoolRegistrationProjection projection) {
48
    this.txHash = projection.getTxHash();
49
    this.totalFee = projection.getDeposit().add(projection.getFee());
50
    this.time = projection.getTime();
51
    this.fee = projection.getFee();
52
    this.vrfKey = projection.getVrfKey();
53
    this.pledge = projection.getPledge();
54
    this.margin = projection.getMargin();
55
    this.cost = projection.getCost();
56
    this.deposit = projection.getDeposit();
57
    this.rewardAccount = projection.getRewardAccount();
58
  }
59
}

Mutations

19

1.1
Location : getPoolId
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsNotExist_returnEmptyObject()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPoolId → KILLED

21

1.1
Location : getPoolName
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsNotExist_returnEmptyObject()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPoolName → KILLED

23

1.1
Location : getPoolView
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsNotExist_returnEmptyObject()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPoolView → KILLED

25

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

27

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

29

1.1
Location : getTime
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsExist_returnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getTime → KILLED

31

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

33

1.1
Location : getRewardAccount
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsNotExist_returnEmptyObject()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getRewardAccount → KILLED

35

1.1
Location : getStakeKeys
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsExist_returnResponse()]
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getStakeKeys → KILLED

37

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

39

1.1
Location : getPledge
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsExist_returnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getPledge → KILLED

41

1.1
Location : getMargin
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getMargin → SURVIVED

43

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

45

1.1
Location : getDeposit
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsNotExistAndPoolUpdateIdIsExist_returnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/RegistrationResponse::getDeposit → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2