JSyntaxTextArea.java

1
package com.jsql.view.swing.sql;
2
3
import com.jsql.view.swing.text.SyntaxTextArea;
4
5
import java.util.function.Consumer;
6
import java.util.function.Supplier;
7
8
public class JSyntaxTextArea extends SyntaxTextArea {
9
    
10
    private final transient Consumer<String> consumerSetter;
11
    private final transient Supplier<String> supplierGetter;
12
    
13
    public JSyntaxTextArea(Consumer<String> consumer, Supplier<String> supplier) {
14
        this.consumerSetter = consumer;
15
        this.supplierGetter = supplier;
16
    }
17
18
    public void setAttribute() {
19 1 1. setAttribute : removed call to java/util/function/Consumer::accept → NO_COVERAGE
        this.consumerSetter.accept(this.getText());
20
    }
21
22
    public Supplier<String> getSupplierGetter() {
23 1 1. getSupplierGetter : replaced return value with null for com/jsql/view/swing/sql/JSyntaxTextArea::getSupplierGetter → NO_COVERAGE
        return this.supplierGetter;
24
    }
25
}

Mutations

19

1.1
Location : setAttribute
Killed by : none
removed call to java/util/function/Consumer::accept → NO_COVERAGE

23

1.1
Location : getSupplierGetter
Killed by : none
replaced return value with null for com/jsql/view/swing/sql/JSyntaxTextArea::getSupplierGetter → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.19.1