StakeKeyReportRequest.java

1
package org.cardanofoundation.explorer.api.model.request.stake.report;
2
3
import java.sql.Timestamp;
4
5
import lombok.AllArgsConstructor;
6
import lombok.Builder;
7
import lombok.Getter;
8
import lombok.NoArgsConstructor;
9
import lombok.Setter;
10
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
13
import org.cardanofoundation.explorer.api.common.constant.CommonConstant;
14
import org.cardanofoundation.explorer.api.controller.validation.StakeKeyLengthValid;
15
import org.cardanofoundation.explorer.common.validation.date.DatePattern;
16
import org.cardanofoundation.explorer.common.validation.date.requestbody.JsonPattern;
17
import org.cardanofoundation.explorer.common.validation.date.requestbody.TimestampValidDeserialize;
18
import org.cardanofoundation.explorer.common.validation.prefixed.PrefixedValid;
19
20
@Getter
21
@Setter
22 17 1. eventWithdrawal : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventWithdrawal → NO_COVERAGE
2. timePattern : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::timePattern → NO_COVERAGE
3. isFeesPaid : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::isFeesPaid → NO_COVERAGE
4. reportName : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::reportName → NO_COVERAGE
5. eventDeregistration : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventDeregistration → NO_COVERAGE
6. dateFormat : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::dateFormat → NO_COVERAGE
7. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::toString → NO_COVERAGE
8. eventDelegation : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventDelegation → NO_COVERAGE
9. zoneOffset : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::zoneOffset → NO_COVERAGE
10. eventRewards : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventRewards → NO_COVERAGE
11. toDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::toDate → KILLED
12. fromDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::fromDate → KILLED
13. stakeKey : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::stakeKey → KILLED
14. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::builder → KILLED
15. isADATransfer : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::isADATransfer → KILLED
16. eventRegistration : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventRegistration → KILLED
17. build : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::build → KILLED
@Builder
23
@NoArgsConstructor
24
@AllArgsConstructor
25
public class StakeKeyReportRequest {
26
27
  @PrefixedValid(CommonConstant.PREFIXED_STAKE_KEY)
28
  @StakeKeyLengthValid
29 1 1. getStakeKey : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getStakeKey → SURVIVED
  private String stakeKey;
30
31 1 1. getReportName : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getReportName → SURVIVED
  private String reportName;
32
33
  @JsonDeserialize(using = TimestampValidDeserialize.class)
34
  @JsonPattern(pattern = DatePattern.YYYY_MM_DD_HH_MM_SS)
35 1 1. getFromDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getFromDate → NO_COVERAGE
  private Timestamp fromDate;
36
37
  @JsonDeserialize(using = TimestampValidDeserialize.class)
38
  @JsonPattern(pattern = DatePattern.YYYY_MM_DD_HH_MM_SS)
39 1 1. getToDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getToDate → NO_COVERAGE
  private Timestamp toDate;
40
41 2 1. getIsADATransfer : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsADATransfer → NO_COVERAGE
2. getIsADATransfer : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsADATransfer → NO_COVERAGE
  private Boolean isADATransfer;
42 2 1. getIsFeesPaid : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsFeesPaid → NO_COVERAGE
2. getIsFeesPaid : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsFeesPaid → NO_COVERAGE
  private Boolean isFeesPaid;
43 2 1. getEventRegistration : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRegistration → NO_COVERAGE
2. getEventRegistration : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRegistration → NO_COVERAGE
  private Boolean eventRegistration;
44 2 1. getEventDelegation : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDelegation → NO_COVERAGE
2. getEventDelegation : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDelegation → NO_COVERAGE
  private Boolean eventDelegation;
45 2 1. getEventRewards : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRewards → NO_COVERAGE
2. getEventRewards : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRewards → NO_COVERAGE
  private Boolean eventRewards;
46 2 1. getEventWithdrawal : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventWithdrawal → NO_COVERAGE
2. getEventWithdrawal : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventWithdrawal → NO_COVERAGE
  private Boolean eventWithdrawal;
47 2 1. getEventDeregistration : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDeregistration → NO_COVERAGE
2. getEventDeregistration : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDeregistration → NO_COVERAGE
  private Boolean eventDeregistration;
48 1 1. getTimePattern : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getTimePattern → SURVIVED
  private String timePattern;
49 1 1. getZoneOffset : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getZoneOffset → SURVIVED
  private Long zoneOffset; // diff with UTC in minutes
50 1 1. getDateFormat : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getDateFormat → SURVIVED
  private String dateFormat;
51
}

Mutations

22

1.1
Location : eventWithdrawal
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventWithdrawal → NO_COVERAGE

2.2
Location : toDate
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldGenerateStakeReportHistory()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::toDate → KILLED

3.3
Location : timePattern
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::timePattern → NO_COVERAGE

4.4
Location : fromDate
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldGenerateStakeReportHistory()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::fromDate → KILLED

5.5
Location : isFeesPaid
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::isFeesPaid → NO_COVERAGE

6.6
Location : stakeKey
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldThrowExceptionWhenNotFoundStakeAdress()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::stakeKey → KILLED

7.7
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldThrowExceptionWhenNotFoundStakeAdress()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::builder → KILLED

8.8
Location : reportName
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::reportName → NO_COVERAGE

9.9
Location : eventDeregistration
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventDeregistration → NO_COVERAGE

10.10
Location : isADATransfer
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldGenerateStakeReportHistory()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::isADATransfer → KILLED

11.11
Location : dateFormat
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::dateFormat → NO_COVERAGE

12.12
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::toString → NO_COVERAGE

13.13
Location : eventDelegation
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventDelegation → NO_COVERAGE

14.14
Location : zoneOffset
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::zoneOffset → NO_COVERAGE

15.15
Location : eventRewards
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventRewards → NO_COVERAGE

16.16
Location : eventRegistration
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldGenerateStakeReportHistory()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::eventRegistration → KILLED

17.17
Location : build
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:generateStakeKeyReport_shouldThrowExceptionWhenNotFoundStakeAdress()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest$StakeKeyReportRequestBuilder::build → KILLED

29

1.1
Location : getStakeKey
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getStakeKey → SURVIVED

31

1.1
Location : getReportName
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getReportName → SURVIVED

35

1.1
Location : getFromDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getFromDate → NO_COVERAGE

39

1.1
Location : getToDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getToDate → NO_COVERAGE

41

1.1
Location : getIsADATransfer
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsADATransfer → NO_COVERAGE

2.2
Location : getIsADATransfer
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsADATransfer → NO_COVERAGE

42

1.1
Location : getIsFeesPaid
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsFeesPaid → NO_COVERAGE

2.2
Location : getIsFeesPaid
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getIsFeesPaid → NO_COVERAGE

43

1.1
Location : getEventRegistration
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRegistration → NO_COVERAGE

2.2
Location : getEventRegistration
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRegistration → NO_COVERAGE

44

1.1
Location : getEventDelegation
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDelegation → NO_COVERAGE

2.2
Location : getEventDelegation
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDelegation → NO_COVERAGE

45

1.1
Location : getEventRewards
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRewards → NO_COVERAGE

2.2
Location : getEventRewards
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventRewards → NO_COVERAGE

46

1.1
Location : getEventWithdrawal
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventWithdrawal → NO_COVERAGE

2.2
Location : getEventWithdrawal
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventWithdrawal → NO_COVERAGE

47

1.1
Location : getEventDeregistration
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDeregistration → NO_COVERAGE

2.2
Location : getEventDeregistration
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getEventDeregistration → NO_COVERAGE

48

1.1
Location : getTimePattern
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getTimePattern → SURVIVED

49

1.1
Location : getZoneOffset
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getZoneOffset → SURVIVED

50

1.1
Location : getDateFormat
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/report/StakeKeyReportRequest::getDateFormat → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2