PoolCertificateHistory.java

1
package org.cardanofoundation.explorer.api.model.response.pool;
2
3
import java.sql.Timestamp;
4
5
import lombok.AllArgsConstructor;
6
import lombok.Getter;
7
import lombok.NoArgsConstructor;
8
import lombok.Setter;
9
import lombok.experimental.SuperBuilder;
10
11
import com.fasterxml.jackson.annotation.JsonIgnore;
12
import com.fasterxml.jackson.annotation.JsonProperty;
13
14
import org.cardanofoundation.explorer.api.common.enumeration.PoolActionType;
15
16
@Getter
17
@Setter
18 17 1. self : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilderImpl::self → SURVIVED
2. poolHashId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::poolHashId → SURVIVED
3. txEpochNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::txEpochNo → SURVIVED
4. blockTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::blockTime → SURVIVED
5. actionType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::actionType → NO_COVERAGE
6. certIndex : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::certIndex → SURVIVED
7. blockNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::blockNo → SURVIVED
8. txId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::txId → SURVIVED
9. poolRetireId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::poolRetireId → SURVIVED
10. certEpochNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::certEpochNo → SURVIVED
11. txHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::txHash → SURVIVED
12. poolUpdateId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::poolUpdateId → SURVIVED
13. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::toString → NO_COVERAGE
14. epochSlotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::epochSlotNo → SURVIVED
15. slotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::slotNo → SURVIVED
16. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::builder → KILLED
17. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilderImpl::build → KILLED
@SuperBuilder
19
@AllArgsConstructor
20
@NoArgsConstructor
21
public class PoolCertificateHistory {
22
23 1 1. getTxId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getTxId → KILLED
  @JsonIgnore private Long txId;
24 1 1. getPoolHashId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getPoolHashId → SURVIVED
  @JsonIgnore private Long poolHashId;
25
26
  @JsonProperty("epochNo")
27 1 1. getTxEpochNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getTxEpochNo → KILLED
  private Integer txEpochNo; // epoch of the tx
28
29 1 1. getCertEpochNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getCertEpochNo → KILLED
  @JsonIgnore private Integer certEpochNo; // epoch of the cert
30 1 1. getCertIndex : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getCertIndex → SURVIVED
  @JsonIgnore private Integer certIndex;
31 1 1. getPoolRetireId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getPoolRetireId → KILLED
  @JsonIgnore private Long poolRetireId;
32 1 1. getPoolUpdateId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getPoolUpdateId → KILLED
  @JsonIgnore private Long poolUpdateId;
33 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getTxHash → KILLED
  private String txHash;
34
35
  @JsonProperty("createdAt")
36 1 1. getBlockTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getBlockTime → KILLED
  private Timestamp blockTime;
37
38 1 1. getBlockNo : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getBlockNo → KILLED
  private Long blockNo;
39 1 1. getEpochSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getEpochSlotNo → SURVIVED
  private Integer epochSlotNo;
40 1 1. getSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getSlotNo → SURVIVED
  private Integer slotNo;
41 1 1. getActionType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getActionType → KILLED
  @JsonIgnore private PoolActionType actionType;
42
}

Mutations

18

1.1
Location : self
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilderImpl::self → SURVIVED

2.2
Location : poolHashId
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::poolHashId → SURVIVED

3.3
Location : txEpochNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::txEpochNo → SURVIVED

4.4
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest]/[method:getCurrentPoolStatus_shouldReturnPoolActive()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::builder → KILLED

5.5
Location : blockTime
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::blockTime → SURVIVED

6.6
Location : actionType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::actionType → NO_COVERAGE

7.7
Location : certIndex
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::certIndex → SURVIVED

8.8
Location : blockNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::blockNo → SURVIVED

9.9
Location : txId
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::txId → SURVIVED

10.10
Location : poolRetireId
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::poolRetireId → SURVIVED

11.11
Location : certEpochNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::certEpochNo → SURVIVED

12.12
Location : txHash
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::txHash → SURVIVED

13.13
Location : poolUpdateId
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::poolUpdateId → SURVIVED

14.14
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::toString → NO_COVERAGE

15.15
Location : epochSlotNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::epochSlotNo → SURVIVED

16.16
Location : build
Killed by : org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest]/[method:getCurrentPoolStatus_shouldReturnPoolActive()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilderImpl::build → KILLED

17.17
Location : slotNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory$PoolCertificateHistoryBuilder::slotNo → SURVIVED

23

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

24

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

27

1.1
Location : getTxEpochNo
Killed by : org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest]/[method:getTxPoolCertificateHistory_shouldReturnTxPoolCertificateHistory()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getTxEpochNo → KILLED

29

1.1
Location : getCertEpochNo
Killed by : org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest]/[method:getCurrentPoolStatus_shouldReturnPoolRetiring()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getCertEpochNo → KILLED

30

1.1
Location : getCertIndex
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getCertIndex → SURVIVED

31

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

32

1.1
Location : getPoolUpdateId
Killed by : org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolLifecycleServiceTest]/[method:whenPoolViewIsExistAndTransactionTimeIsBetweenFromDateInToDate_returnResponse()]
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getPoolUpdateId → KILLED

33

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

36

1.1
Location : getBlockTime
Killed by : org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest]/[method:getTxPoolCertificateHistory_shouldReturnTxPoolCertificateHistory()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getBlockTime → KILLED

38

1.1
Location : getBlockNo
Killed by : org.cardanofoundation.explorer.api.controller.PoolControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.PoolControllerTest]/[method:testGetTxPoolCertificatesHistory()]
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getBlockNo → KILLED

39

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

40

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

41

1.1
Location : getActionType
Killed by : org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolCertificateServiceTest]/[method:getTxPoolCertificateHistory_shouldReturnTxPoolCertificateHistory()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolCertificateHistory::getActionType → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2