AbstractSlidingException.java

1
package com.jsql.model.exception;
2
3
import org.apache.commons.lang3.StringUtils;
4
5
public abstract class AbstractSlidingException extends JSqlException {
6
    
7
    private final String slidingWindowAllRows;
8
    
9
    private final String slidingWindowCurrentRows;
10
    
11
    protected AbstractSlidingException(String message) {
12
        
13
        super(message);
14
        
15
        this.slidingWindowAllRows = StringUtils.EMPTY;
16
        this.slidingWindowCurrentRows = StringUtils.EMPTY;
17
    }
18
    
19
    protected AbstractSlidingException(String message, Throwable e) {
20
        
21
        super(message, e);
22
        
23
        this.slidingWindowAllRows = StringUtils.EMPTY;
24
        this.slidingWindowCurrentRows = StringUtils.EMPTY;
25
    }
26
    
27
    protected AbstractSlidingException(String string, String slidingWindowAllRows) {
28
        
29
        super(string);
30
        
31
        this.slidingWindowCurrentRows = StringUtils.EMPTY;
32
        
33 1 1. <init> : negated conditional → NO_COVERAGE
        this.slidingWindowAllRows = StringUtils.isNotEmpty(slidingWindowAllRows)
34
            ? slidingWindowAllRows
35
            : StringUtils.EMPTY;
36
    }
37
38
    protected AbstractSlidingException(String string, String slidingWindowAllRows, String slidingWindowCurrentRows) {
39
        
40
        super(string);
41
        
42 1 1. <init> : negated conditional → NO_COVERAGE
        this.slidingWindowAllRows = StringUtils.isNotEmpty(slidingWindowAllRows)
43
            ? slidingWindowAllRows
44
            : StringUtils.EMPTY;
45
        
46 1 1. <init> : negated conditional → NO_COVERAGE
        this.slidingWindowCurrentRows = StringUtils.isNotEmpty(slidingWindowCurrentRows)
47
            ? slidingWindowCurrentRows
48
            : StringUtils.EMPTY;
49
    }
50
51
    public String getSlidingWindowCurrentRows() {
52 1 1. getSlidingWindowCurrentRows : replaced return value with "" for com/jsql/model/exception/AbstractSlidingException::getSlidingWindowCurrentRows → NO_COVERAGE
        return this.slidingWindowCurrentRows;
53
    }
54
    
55
    public String getSlidingWindowAllRows() {
56 1 1. getSlidingWindowAllRows : replaced return value with "" for com/jsql/model/exception/AbstractSlidingException::getSlidingWindowAllRows → NO_COVERAGE
        return this.slidingWindowAllRows;
57
    }
58
}

Mutations

33

1.1
Location : <init>
Killed by : none
negated conditional → NO_COVERAGE

42

1.1
Location : <init>
Killed by : none
negated conditional → NO_COVERAGE

46

1.1
Location : <init>
Killed by : none
negated conditional → NO_COVERAGE

52

1.1
Location : getSlidingWindowCurrentRows
Killed by : none
replaced return value with "" for com/jsql/model/exception/AbstractSlidingException::getSlidingWindowCurrentRows → NO_COVERAGE

56

1.1
Location : getSlidingWindowAllRows
Killed by : none
replaced return value with "" for com/jsql/model/exception/AbstractSlidingException::getSlidingWindowAllRows → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1