TokenAddressResponse.java

1
package org.cardanofoundation.explorer.api.model.response.token;
2
3
import java.math.BigInteger;
4
5
import lombok.*;
6
7
import com.fasterxml.jackson.annotation.JsonInclude;
8
import com.fasterxml.jackson.annotation.JsonInclude.Include;
9
10
import org.cardanofoundation.explorer.api.common.enumeration.AddressType;
11
12
@Getter
13
@Setter
14 12 1. quantity : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::quantity → SURVIVED
2. displayName : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::displayName → SURVIVED
3. policy : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::policy → SURVIVED
4. addressType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::addressType → SURVIVED
5. addressId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::addressId → SURVIVED
6. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::toString → NO_COVERAGE
7. metadata : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::metadata → SURVIVED
8. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::build → KILLED
9. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::builder → KILLED
10. address : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::address → KILLED
11. name : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::name → KILLED
12. fingerprint : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::fingerprint → KILLED
@Builder
15
@AllArgsConstructor
16
@NoArgsConstructor
17
@JsonInclude(Include.NON_NULL)
18
public class TokenAddressResponse {
19 1 1. getAddressId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getAddressId → SURVIVED
  private Long addressId;
20 1 1. getAddress : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getAddress → KILLED
  private String address;
21 1 1. getAddressType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getAddressType → SURVIVED
  private AddressType addressType;
22 1 1. getPolicy : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getPolicy → SURVIVED
  private String policy;
23 1 1. getMetadata : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getMetadata → SURVIVED
  private TokenMetadataResponse metadata;
24 1 1. getName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getName → KILLED
  private String name;
25 1 1. getDisplayName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getDisplayName → KILLED
  private String displayName;
26 1 1. getFingerprint : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getFingerprint → KILLED
  private String fingerprint;
27 1 1. getQuantity : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getQuantity → KILLED
  private BigInteger quantity;
28
}

Mutations

14

1.1
Location : build
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetHolder()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::build → KILLED

2.2
Location : builder
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetHolder()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::builder → KILLED

3.3
Location : address
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetHolder()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::address → KILLED

4.4
Location : quantity
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::quantity → SURVIVED

5.5
Location : name
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetHolder()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::name → KILLED

6.6
Location : displayName
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::displayName → SURVIVED

7.7
Location : policy
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::policy → SURVIVED

8.8
Location : addressType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::addressType → SURVIVED

9.9
Location : fingerprint
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetHolder()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::fingerprint → KILLED

10.10
Location : addressId
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::addressId → SURVIVED

11.11
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::toString → NO_COVERAGE

12.12
Location : metadata
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse$TokenAddressResponseBuilder::metadata → SURVIVED

19

1.1
Location : getAddressId
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getAddressId → SURVIVED

20

1.1
Location : getAddress
Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getTokenByDisplayName_withEmptyDisplayName()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getAddress → KILLED

21

1.1
Location : getAddressType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getAddressType → SURVIVED

22

1.1
Location : getPolicy
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getPolicy → SURVIVED

23

1.1
Location : getMetadata
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getMetadata → SURVIVED

24

1.1
Location : getName
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetHolder()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getName → KILLED

25

1.1
Location : getDisplayName
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptHolders_thenReturn()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getDisplayName → KILLED

26

1.1
Location : getFingerprint
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetHolder()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getFingerprint → KILLED

27

1.1
Location : getQuantity
Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getTokenByDisplayName_withEmptyDisplayName()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/TokenAddressResponse::getQuantity → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2