UserAgentUtil.java

1
package com.jsql.util;
2
3
public class UserAgentUtil {
4
    
5
    private boolean isCustomUserAgent = false;
6
7
    private String customUserAgent = null;
8
9
    public UserAgentUtil withCustomUserAgent(String customUserAgent) {
10
11
        this.isCustomUserAgent = true;
12
        this.customUserAgent = customUserAgent;
13 1 1. withCustomUserAgent : replaced return value with null for com/jsql/util/UserAgentUtil::withCustomUserAgent → NO_COVERAGE
        return this;
14
    }
15
    
16
    
17
    // Getter and setter
18
19
    public String getCustomUserAgent() {
20 1 1. getCustomUserAgent : replaced return value with "" for com/jsql/util/UserAgentUtil::getCustomUserAgent → NO_COVERAGE
        return this.customUserAgent;
21
    }
22
23
    public void setCustomUserAgent(String customUserAgent) {
24
        this.customUserAgent = customUserAgent;
25
    }
26
27
    public boolean isCustomUserAgent() {
28 2 1. isCustomUserAgent : replaced boolean return with false for com/jsql/util/UserAgentUtil::isCustomUserAgent → NO_COVERAGE
2. isCustomUserAgent : replaced boolean return with true for com/jsql/util/UserAgentUtil::isCustomUserAgent → NO_COVERAGE
        return this.isCustomUserAgent;
29
    }
30
    
31
    public void setIsCustomUserAgent(boolean isCustomUserAgent) {
32
        this.isCustomUserAgent = isCustomUserAgent;
33
    }
34
}

Mutations

13

1.1
Location : withCustomUserAgent
Killed by : none
replaced return value with null for com/jsql/util/UserAgentUtil::withCustomUserAgent → NO_COVERAGE

20

1.1
Location : getCustomUserAgent
Killed by : none
replaced return value with "" for com/jsql/util/UserAgentUtil::getCustomUserAgent → NO_COVERAGE

28

1.1
Location : isCustomUserAgent
Killed by : none
replaced boolean return with false for com/jsql/util/UserAgentUtil::isCustomUserAgent → NO_COVERAGE

2.2
Location : isCustomUserAgent
Killed by : none
replaced boolean return with true for com/jsql/util/UserAgentUtil::isCustomUserAgent → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1