StakeTxResponse.java

1
package org.cardanofoundation.explorer.api.model.response.stake;
2
3
import java.io.Serializable;
4
import java.sql.Timestamp;
5
6
import lombok.Getter;
7
import lombok.Setter;
8
9
import com.fasterxml.jackson.annotation.JsonIgnore;
10
11
import org.cardanofoundation.explorer.common.entity.ledgersync.StakeDeregistration;
12
import org.cardanofoundation.explorer.common.entity.ledgersync.StakeRegistration;
13
14
@Getter
15
@Setter
16
public class StakeTxResponse implements Serializable {
17
18 1 1. getTxId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getTxId → KILLED
  @JsonIgnore private Long txId;
19
20 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getTxHash → SURVIVED
  private String txHash;
21
22 1 1. getTxTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getTxTime → SURVIVED
  private Timestamp txTime;
23
24 1 1. getBlock : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getBlock → SURVIVED
  private Long block;
25
26 1 1. getEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getEpoch → KILLED
  private Integer epoch;
27
28 1 1. getSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getSlotNo → SURVIVED
  private Integer slotNo;
29
30 1 1. getEpochSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getEpochSlotNo → SURVIVED
  private Integer epochSlotNo;
31
32 1 1. getStakeAddressId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getStakeAddressId → KILLED
  @JsonIgnore private Long stakeAddressId;
33
34 1 1. getStakeKey : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getStakeKey → KILLED
  private String stakeKey;
35
36
  public StakeTxResponse() {}
37
38
  public StakeTxResponse(StakeRegistration stakeRegistration) {
39
    this.txId = stakeRegistration.getTxId();
40
    this.stakeAddressId = stakeRegistration.getStakeAddressId();
41
  }
42
43
  public StakeTxResponse(StakeDeregistration stakeDeRegistration) {
44
    this.txId = stakeDeRegistration.getTxId();
45
    this.stakeAddressId = stakeDeRegistration.getStakeAddressId();
46
  }
47
}

Mutations

18

1.1
Location : getTxId
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetDataForStakeKeyDeRegistration_thenReturn()]
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getTxId → KILLED

20

1.1
Location : getTxHash
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getTxHash → SURVIVED

22

1.1
Location : getTxTime
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getTxTime → SURVIVED

24

1.1
Location : getBlock
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getBlock → SURVIVED

26

1.1
Location : getEpoch
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetDataForStakeKeyDeRegistration_thenReturn()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getEpoch → KILLED

28

1.1
Location : getSlotNo
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getSlotNo → SURVIVED

30

1.1
Location : getEpochSlotNo
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getEpochSlotNo → SURVIVED

32

1.1
Location : getStakeAddressId
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetDataForStakeKeyDeRegistration_thenReturn()]
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getStakeAddressId → KILLED

34

1.1
Location : getStakeKey
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetDataForStakeKeyDeRegistration_thenReturn()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/StakeTxResponse::getStakeKey → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2