TabularRegisResponse.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.PoolRegistrationProjection;
12
13
@Getter
14
@Setter
15
public class TabularRegisResponse implements Serializable {
16
17 1 1. getPoolUpdateId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getPoolUpdateId → SURVIVED
  private Long poolUpdateId;
18
19 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getTxHash → KILLED
  private String txHash;
20
21 1 1. getTotalFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getTotalFee → SURVIVED
  private BigInteger totalFee;
22
23 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getTime → SURVIVED
  private Timestamp time;
24
25 1 1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getFee → SURVIVED
  private BigInteger fee;
26
27 1 1. getStakeKeys : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getStakeKeys → SURVIVED
  private List<String> stakeKeys;
28
29 1 1. getDeposit : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getDeposit → SURVIVED
  private BigInteger deposit;
30
31
  public TabularRegisResponse(PoolRegistrationProjection projection) {
32
    this.poolUpdateId = projection.getPoolUpdateId();
33
    this.txHash = projection.getTxHash();
34
    this.totalFee = projection.getDeposit().add(projection.getFee());
35
    this.time = projection.getTime();
36
    this.fee = projection.getFee();
37
    this.deposit = projection.getDeposit();
38
  }
39
}

Mutations

17

1.1
Location : getPoolUpdateId
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/TabularRegisResponse::getPoolUpdateId → SURVIVED

19

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

21

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

23

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

25

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

27

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

29

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

Active mutators

Tests examined


Report generated by PIT 1.14.2