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 | super(message); | |
13 | | |
14 | this.slidingWindowAllRows = StringUtils.EMPTY; | |
15 | this.slidingWindowCurrentRows = StringUtils.EMPTY; | |
16 | } | |
17 | | |
18 | protected AbstractSlidingException(String message, Throwable e) { | |
19 | super(message, e); | |
20 | | |
21 | this.slidingWindowAllRows = StringUtils.EMPTY; | |
22 | this.slidingWindowCurrentRows = StringUtils.EMPTY; | |
23 | } | |
24 | | |
25 | protected AbstractSlidingException(String string, String slidingWindowAllRows) { | |
26 | super(string); | |
27 | | |
28 | this.slidingWindowCurrentRows = StringUtils.EMPTY; | |
29 | | |
30 |
1
1. <init> : negated conditional → NO_COVERAGE |
this.slidingWindowAllRows = StringUtils.isNotEmpty(slidingWindowAllRows) |
31 | ? slidingWindowAllRows | |
32 | : StringUtils.EMPTY; | |
33 | } | |
34 | ||
35 | protected AbstractSlidingException(String string, String slidingWindowAllRows, String slidingWindowCurrentRows) { | |
36 | super(string); | |
37 | | |
38 |
1
1. <init> : negated conditional → NO_COVERAGE |
this.slidingWindowAllRows = StringUtils.isNotEmpty(slidingWindowAllRows) |
39 | ? slidingWindowAllRows | |
40 | : StringUtils.EMPTY; | |
41 | | |
42 |
1
1. <init> : negated conditional → NO_COVERAGE |
this.slidingWindowCurrentRows = StringUtils.isNotEmpty(slidingWindowCurrentRows) |
43 | ? slidingWindowCurrentRows | |
44 | : StringUtils.EMPTY; | |
45 | } | |
46 | ||
47 | public String getSlidingWindowCurrentRows() { | |
48 |
1
1. getSlidingWindowCurrentRows : replaced return value with "" for com/jsql/model/exception/AbstractSlidingException::getSlidingWindowCurrentRows → NO_COVERAGE |
return this.slidingWindowCurrentRows; |
49 | } | |
50 | | |
51 | public String getSlidingWindowAllRows() { | |
52 |
1
1. getSlidingWindowAllRows : replaced return value with "" for com/jsql/model/exception/AbstractSlidingException::getSlidingWindowAllRows → NO_COVERAGE |
return this.slidingWindowAllRows; |
53 | } | |
54 | } | |
Mutations | ||
30 |
1.1 |
|
38 |
1.1 |
|
42 |
1.1 |
|
48 |
1.1 |
|
52 |
1.1 |