PostEntity.java

1
package pl.zankowski.iextrading4j.client.rest.manager;
2
3
import com.google.common.base.MoreObjects;
4
import com.google.common.base.Objects;
5
6
import java.io.Serializable;
7
8
public abstract class PostEntity implements Serializable {
9
10
    private static final long serialVersionUID = -3853681156686821995L;
11
12
    private String token;
13
14
    public String getToken() {
15 1 1. getToken : replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::getToken → NO_COVERAGE
        return token;
16
    }
17
18
    public void setToken(final String token) {
19
        this.token = token;
20
    }
21
22
    @Override
23
    public boolean equals(final Object o) {
24 1 1. equals : negated conditional → KILLED
        if (this == o) {
25 1 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → KILLED
            return true;
26
        }
27 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (o == null || getClass() != o.getClass()) {
28 1 1. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → SURVIVED
            return false;
29
        }
30
        final PostEntity that = (PostEntity) o;
31 2 1. equals : replaced boolean return with false for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → KILLED
2. equals : replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → KILLED
        return Objects.equal(token, that.token);
32
    }
33
34
    @Override
35
    public int hashCode() {
36 1 1. hashCode : replaced int return with 0 for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::hashCode → KILLED
        return Objects.hashCode(token);
37
    }
38
39
    @Override
40
    public String toString() {
41 1 1. toString : replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::toString → NO_COVERAGE
        return MoreObjects.toStringHelper(this)
42
                .add("token", token)
43
                .toString();
44
    }
45
46
}

Mutations

15

1.1
Location : getToken
Killed by : none
replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::getToken → NO_COVERAGE

24

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest]/[method:equalsContract()]
negated conditional → KILLED

25

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest]/[method:equalsContract()]
replaced boolean return with false for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → KILLED

27

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest]/[method:equalsContract()]
negated conditional → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest]/[method:equalsContract()]
negated conditional → KILLED

28

1.1
Location : equals
Killed by : none
replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → SURVIVED

31

1.1
Location : equals
Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest]/[method:equalsContract()]
replaced boolean return with false for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → KILLED

2.2
Location : equals
Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest]/[method:equalsContract()]
replaced boolean return with true for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::equals → KILLED

36

1.1
Location : hashCode
Killed by : pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest.[engine:junit-jupiter]/[class:pl.zankowski.iextrading4j.client.rest.manager.RestRequestTest]/[method:equalsContract()]
replaced int return with 0 for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::hashCode → KILLED

41

1.1
Location : toString
Killed by : none
replaced return value with "" for pl/zankowski/iextrading4j/client/rest/manager/PostEntity::toString → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.7.1