BasicColoredSpinnerUI.java

1
package com.jsql.view.swing.ui;
2
3
import com.jsql.view.swing.util.UiUtil;
4
5
import javax.swing.*;
6
import javax.swing.plaf.basic.BasicSpinnerUI;
7
import java.awt.*;
8
9
public class BasicColoredSpinnerUI extends BasicSpinnerUI {
10
11
    @Override
12
    protected Component createPreviousButton() {
13
        
14
        JButton button = (JButton) super.createPreviousButton();
15 1 1. createPreviousButton : removed call to javax/swing/JButton::setBorder → NO_COVERAGE
        button.setBorder(BorderFactory.createLineBorder(UiUtil.COLOR_COMPONENT_BORDER, 1, false));
16 1 1. createPreviousButton : replaced return value with null for com/jsql/view/swing/ui/BasicColoredSpinnerUI::createPreviousButton → NO_COVERAGE
        return button;
17
    }
18
    
19
    @Override
20
    protected Component createNextButton() {
21
        
22
        JButton button = (JButton) super.createNextButton();
23 1 1. createNextButton : removed call to javax/swing/JButton::setBorder → NO_COVERAGE
        button.setBorder(BorderFactory.createLineBorder(UiUtil.COLOR_COMPONENT_BORDER, 1, false));
24 1 1. createNextButton : replaced return value with null for com/jsql/view/swing/ui/BasicColoredSpinnerUI::createNextButton → NO_COVERAGE
        return button;
25
    }
26
}

Mutations

15

1.1
Location : createPreviousButton
Killed by : none
removed call to javax/swing/JButton::setBorder → NO_COVERAGE

16

1.1
Location : createPreviousButton
Killed by : none
replaced return value with null for com/jsql/view/swing/ui/BasicColoredSpinnerUI::createPreviousButton → NO_COVERAGE

23

1.1
Location : createNextButton
Killed by : none
removed call to javax/swing/JButton::setBorder → NO_COVERAGE

24

1.1
Location : createNextButton
Killed by : none
replaced return value with null for com/jsql/view/swing/ui/BasicColoredSpinnerUI::createNextButton → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1