PanelStrategies.java

1
package com.jsql.view.swing.panel.preferences;
2
3
import com.jsql.view.swing.panel.PanelPreferences;
4
import com.jsql.view.swing.util.MediatorHelper;
5
6
import javax.swing.*;
7
import java.util.stream.Stream;
8
9
public class PanelStrategies extends JPanel {
10
11
    private final JCheckBox checkboxIsStrategyTimeDisabled = new JCheckBox("Disable Time", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyTimeDisabled());
12
    private final JCheckBox checkboxIsStrategyBlindBitDisabled = new JCheckBox("Disable Blind bit", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyBlindBitDisabled());
13
    private final JCheckBox checkboxIsStrategyBlindBinDisabled = new JCheckBox("Disable Blind bin", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyBlindBinDisabled());
14
    private final JCheckBox checkboxIsStrategyMultibitDisabled = new JCheckBox("Disable Multibit", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyMultibitDisabled());
15
    private final JCheckBox checkboxIsStrategyDnsDisabled = new JCheckBox("[Advanced] Disable Dns (requires local setup or registrar)", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyDnsDisabled());
16
    private final JCheckBox checkboxIsStrategyErrorDisabled = new JCheckBox("Disable Error", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyErrorDisabled());
17
    private final JCheckBox checkboxIsStrategyStackDisabled = new JCheckBox("Disable Stack", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyStackDisabled());
18
    private final JCheckBox checkboxIsStrategyUnionDisabled = new JCheckBox("Disable Union", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyUnionDisabled());
19
20
    public PanelStrategies(PanelPreferences panelPreferences) {
21 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyTimeDisabled.setToolTipText("Skip Time strategy processing");
22 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyBlindBitDisabled.setToolTipText("Skip Blind bit strategy processing");
23 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyBlindBinDisabled.setToolTipText("Skip Blind bin strategy processing");
24 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyMultibitDisabled.setToolTipText("Skip Multibit strategy processing");
25 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyDnsDisabled.setToolTipText("Skip Dns strategy processing");
26 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyErrorDisabled.setToolTipText("Skip Error strategy processing");
27 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyStackDisabled.setToolTipText("Skip Stack strategy processing");
28 1 1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE
        this.checkboxIsStrategyUnionDisabled.setToolTipText("Skip Union strategy processing");
29
30
        Stream.of(
31
            this.checkboxIsStrategyTimeDisabled,
32
            this.checkboxIsStrategyBlindBitDisabled,
33
            this.checkboxIsStrategyBlindBinDisabled,
34
            this.checkboxIsStrategyMultibitDisabled,
35
            this.checkboxIsStrategyDnsDisabled,
36
            this.checkboxIsStrategyErrorDisabled,
37
            this.checkboxIsStrategyStackDisabled,
38
            this.checkboxIsStrategyUnionDisabled
39
        )
40 2 1. lambda$new$0 : removed call to javax/swing/JCheckBox::addActionListener → NO_COVERAGE
2. <init> : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(button -> button.addActionListener(panelPreferences.getActionListenerSave()));
41
42
        var labelOrigin = new JLabel("<html><b>Choose injection strategies to skip</b></html>");
43 1 1. <init> : removed call to javax/swing/JLabel::setBorder → NO_COVERAGE
        labelOrigin.setBorder(PanelGeneral.MARGIN);
44
45
        var groupLayout = new GroupLayout(this);
46 1 1. <init> : removed call to com/jsql/view/swing/panel/preferences/PanelStrategies::setLayout → NO_COVERAGE
        this.setLayout(groupLayout);
47
48 1 1. <init> : removed call to javax/swing/GroupLayout::setHorizontalGroup → NO_COVERAGE
        groupLayout.setHorizontalGroup(
49
            groupLayout
50
            .createSequentialGroup()
51
            .addGroup(
52
                groupLayout
53
                .createParallelGroup(GroupLayout.Alignment.LEADING, false)
54
                .addComponent(labelOrigin)
55
                .addComponent(this.checkboxIsStrategyTimeDisabled)
56
                .addComponent(this.checkboxIsStrategyBlindBinDisabled)
57
                .addComponent(this.checkboxIsStrategyBlindBitDisabled)
58
                .addComponent(this.checkboxIsStrategyMultibitDisabled)
59
                .addComponent(this.checkboxIsStrategyDnsDisabled)
60
                .addComponent(this.checkboxIsStrategyErrorDisabled)
61
                .addComponent(this.checkboxIsStrategyStackDisabled)
62
                .addComponent(this.checkboxIsStrategyUnionDisabled)
63
            )
64
        );
65
        
66 1 1. <init> : removed call to javax/swing/GroupLayout::setVerticalGroup → NO_COVERAGE
        groupLayout.setVerticalGroup(
67
            groupLayout
68
            .createSequentialGroup()
69
            .addGroup(
70
                groupLayout
71
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
72
                .addComponent(labelOrigin)
73
            )
74
            .addGroup(
75
                groupLayout
76
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
77
                .addComponent(this.checkboxIsStrategyTimeDisabled)
78
            )
79
            .addGroup(
80
                groupLayout
81
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
82
                .addComponent(this.checkboxIsStrategyBlindBinDisabled)
83
            )
84
            .addGroup(
85
                groupLayout
86
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
87
                .addComponent(this.checkboxIsStrategyBlindBitDisabled)
88
            )
89
            .addGroup(
90
                groupLayout
91
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
92
                .addComponent(this.checkboxIsStrategyMultibitDisabled)
93
            )
94
            .addGroup(
95
                groupLayout
96
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
97
                .addComponent(this.checkboxIsStrategyDnsDisabled)
98
            )
99
            .addGroup(
100
                groupLayout
101
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
102
                .addComponent(this.checkboxIsStrategyErrorDisabled)
103
            )
104
            .addGroup(
105
                groupLayout
106
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
107
                .addComponent(this.checkboxIsStrategyStackDisabled)
108
            )
109
            .addGroup(
110
                groupLayout
111
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
112
                .addComponent(this.checkboxIsStrategyUnionDisabled)
113
            )
114
        );
115
    }
116
    
117
    
118
    // Getter and setter
119
120
    public JCheckBox getCheckboxIsStrategyTimeDisabled() {
121 1 1. getCheckboxIsStrategyTimeDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyTimeDisabled → NO_COVERAGE
        return this.checkboxIsStrategyTimeDisabled;
122
    }
123
124
    public JCheckBox getCheckboxIsStrategyBlindBinDisabled() {
125 1 1. getCheckboxIsStrategyBlindBinDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyBlindBinDisabled → NO_COVERAGE
        return this.checkboxIsStrategyBlindBinDisabled;
126
    }
127
128
    public JCheckBox getCheckboxIsStrategyBlindBitDisabled() {
129 1 1. getCheckboxIsStrategyBlindBitDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyBlindBitDisabled → NO_COVERAGE
        return this.checkboxIsStrategyBlindBitDisabled;
130
    }
131
132
    public JCheckBox getCheckboxIsStrategyMultibitDisabled() {
133 1 1. getCheckboxIsStrategyMultibitDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyMultibitDisabled → NO_COVERAGE
        return this.checkboxIsStrategyMultibitDisabled;
134
    }
135
136
    public JCheckBox getCheckboxIsStrategyStackDisabled() {
137 1 1. getCheckboxIsStrategyStackDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyStackDisabled → NO_COVERAGE
        return this.checkboxIsStrategyStackDisabled;
138
    }
139
140
    public JCheckBox getCheckboxIsStrategyDnsDisabled() {
141 1 1. getCheckboxIsStrategyDnsDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyDnsDisabled → NO_COVERAGE
        return this.checkboxIsStrategyDnsDisabled;
142
    }
143
144
    public JCheckBox getCheckboxIsStrategyErrorDisabled() {
145 1 1. getCheckboxIsStrategyErrorDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyErrorDisabled → NO_COVERAGE
        return this.checkboxIsStrategyErrorDisabled;
146
    }
147
148
    public JCheckBox getCheckboxIsStrategyUnionDisabled() {
149 1 1. getCheckboxIsStrategyUnionDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyUnionDisabled → NO_COVERAGE
        return this.checkboxIsStrategyUnionDisabled;
150
    }
151
}

Mutations

21

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

22

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

23

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

24

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

25

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

26

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

27

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

28

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE

40

1.1
Location : lambda$new$0
Killed by : none
removed call to javax/swing/JCheckBox::addActionListener → NO_COVERAGE

2.2
Location : <init>
Killed by : none
removed call to java/util/stream/Stream::forEach → NO_COVERAGE

43

1.1
Location : <init>
Killed by : none
removed call to javax/swing/JLabel::setBorder → NO_COVERAGE

46

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/panel/preferences/PanelStrategies::setLayout → NO_COVERAGE

48

1.1
Location : <init>
Killed by : none
removed call to javax/swing/GroupLayout::setHorizontalGroup → NO_COVERAGE

66

1.1
Location : <init>
Killed by : none
removed call to javax/swing/GroupLayout::setVerticalGroup → NO_COVERAGE

121

1.1
Location : getCheckboxIsStrategyTimeDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyTimeDisabled → NO_COVERAGE

125

1.1
Location : getCheckboxIsStrategyBlindBinDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyBlindBinDisabled → NO_COVERAGE

129

1.1
Location : getCheckboxIsStrategyBlindBitDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyBlindBitDisabled → NO_COVERAGE

133

1.1
Location : getCheckboxIsStrategyMultibitDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyMultibitDisabled → NO_COVERAGE

137

1.1
Location : getCheckboxIsStrategyStackDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyStackDisabled → NO_COVERAGE

141

1.1
Location : getCheckboxIsStrategyDnsDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyDnsDisabled → NO_COVERAGE

145

1.1
Location : getCheckboxIsStrategyErrorDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyErrorDisabled → NO_COVERAGE

149

1.1
Location : getCheckboxIsStrategyUnionDisabled
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyUnionDisabled → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.22.0