ManagerScan.java

1
/*******************************************************************************
2
 * Copyhacked (H) 2012-2025.
3
 * This program and the accompanying materials
4
 * are made available under no term at all, use it like
5
 * you want, but share and discuss it
6
 * every time possible with every body.
7
 * 
8
 * Contributors:
9
 *      ron190 at ymail dot com - initial implementation
10
 ******************************************************************************/
11
package com.jsql.view.swing.manager;
12
13
import com.jsql.model.injection.method.AbstractMethodInjection;
14
import com.jsql.model.injection.engine.model.Engine;
15
import com.jsql.util.LogLevelUtil;
16
import com.jsql.util.StringUtil;
17
import com.jsql.view.subscriber.SubscriberScan;
18
import com.jsql.view.swing.list.*;
19
import com.jsql.view.swing.manager.util.StateButton;
20
import com.jsql.view.swing.util.I18nViewUtil;
21
import com.jsql.view.swing.util.MediatorHelper;
22
import com.jsql.view.swing.util.UiUtil;
23
import org.apache.logging.log4j.LogManager;
24
import org.apache.logging.log4j.Logger;
25
import org.json.JSONArray;
26
import org.json.JSONException;
27
28
import javax.swing.*;
29
import java.awt.*;
30
import java.awt.event.ActionEvent;
31
import java.awt.event.ActionListener;
32
import java.io.BufferedReader;
33
import java.io.IOException;
34
import java.io.InputStreamReader;
35
import java.nio.charset.StandardCharsets;
36
import java.util.List;
37
import java.util.Objects;
38
import java.util.Optional;
39
40
/**
41
 * Manager to display webpages frequently used as backoffice administration.
42
 */
43
public class ManagerScan extends AbstractManagerList {
44
    
45
    private static final Logger LOGGER = LogManager.getRootLogger();
46
47
    public static final String NAME = "listManagerScan";
48
49
    /**
50
     * Create admin page finder.
51
     */
52
    public ManagerScan() {
53
        super("swing/list/scan-page.json");
54
55 1 1. <init> : removed call to com/jsql/view/swing/list/DnDList::setTransferHandler → NO_COVERAGE
        this.listPaths.setTransferHandler(null);
56 1 1. <init> : removed call to com/jsql/view/swing/list/DnDList::setTransferHandler → NO_COVERAGE
        this.listPaths.setTransferHandler(new ListTransfertHandlerScan());
57 1 1. <init> : removed call to com/jsql/view/swing/list/DnDList::setCellRenderer → NO_COVERAGE
        this.listPaths.setCellRenderer(new DefaultListCellRenderer() {
58
            @Override
59
            public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
60
                JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
61
                ItemList itemList = (ItemList) value;
62 1 1. getListCellRendererComponent : negated conditional → NO_COVERAGE
                if (itemList.isVulnerable()) {
63 1 1. getListCellRendererComponent : removed call to javax/swing/JLabel::setIcon → NO_COVERAGE
                    label.setIcon(UiUtil.TICK_GREEN.getIcon());
64
                }
65 1 1. getListCellRendererComponent : replaced return value with null for com/jsql/view/swing/manager/ManagerScan$1::getListCellRendererComponent → NO_COVERAGE
                return label;
66
            }
67
        });
68
        
69 1 1. <init> : removed call to com/jsql/view/swing/list/DnDList::setName → NO_COVERAGE
        this.listPaths.setName(ManagerScan.NAME);
70
71
        JPanel lastLine = this.getLastLinePanel();
72 1 1. <init> : removed call to com/jsql/view/swing/manager/ManagerScan::add → NO_COVERAGE
        this.add(lastLine, BorderLayout.SOUTH);
73
        
74 1 1. <init> : removed call to com/jsql/view/swing/list/DnDList::addListSelectionListener → NO_COVERAGE
        this.listPaths.addListSelectionListener(e -> {
75 1 1. lambda$new$0 : negated conditional → NO_COVERAGE
            if (this.listPaths.getSelectedValue() == null) {
76
                return;
77
            }
78
            
79
            var beanInjection = ((ItemListScan) this.listPaths.getSelectedValue()).getBeanInjection();
80 1 1. lambda$new$0 : removed call to javax/swing/JTextField::setText → NO_COVERAGE
            MediatorHelper.panelAddressBar().getTextFieldAddress().setText(beanInjection.getUrl());
81 1 1. lambda$new$0 : removed call to javax/swing/JTextField::setText → NO_COVERAGE
            MediatorHelper.panelAddressBar().getTextFieldHeader().setText(beanInjection.getHeader());
82 1 1. lambda$new$0 : removed call to javax/swing/JTextField::setText → NO_COVERAGE
            MediatorHelper.panelAddressBar().getTextFieldRequest().setText(beanInjection.getRequest());
83
            
84
            String requestType = beanInjection.getRequestType();
85 2 1. lambda$new$0 : negated conditional → NO_COVERAGE
2. lambda$new$0 : negated conditional → NO_COVERAGE
            if (requestType != null && !requestType.isEmpty()) {
86 1 1. lambda$new$0 : removed call to javax/swing/JRadioButton::setText → NO_COVERAGE
                MediatorHelper.panelAddressBar().getAtomicRadioMethod().setText(requestType);
87
            } else {
88 1 1. lambda$new$0 : removed call to javax/swing/JRadioButton::setText → NO_COVERAGE
                MediatorHelper.panelAddressBar().getAtomicRadioMethod().setText(StringUtil.GET);
89
            }
90
            
91
            AbstractMethodInjection method = beanInjection.getMethodInstance();
92 1 1. lambda$new$0 : negated conditional → NO_COVERAGE
            if (method == MediatorHelper.model().getMediatorMethod().getHeader()) {
93 1 1. lambda$new$0 : removed call to javax/swing/JRadioButton::setSelected → NO_COVERAGE
                MediatorHelper.panelAddressBar().getAtomicRadioHeader().setSelected(true);
94 1 1. lambda$new$0 : negated conditional → NO_COVERAGE
            } else if (method == MediatorHelper.model().getMediatorMethod().getRequest()) {
95 1 1. lambda$new$0 : removed call to javax/swing/JRadioButton::setSelected → NO_COVERAGE
                MediatorHelper.panelAddressBar().getAtomicRadioMethod().setSelected(true);
96
            } else {
97 1 1. lambda$new$0 : removed call to javax/swing/JRadioButton::setSelected → NO_COVERAGE
                MediatorHelper.panelAddressBar().getAtomicRadioRequest().setSelected(true);
98
            }
99
        });
100
    }
101
102
    @Override
103
    public void buildList(String nameFile) {
104
        var jsonScan = new StringBuilder();
105
        try (
106
            var inputStream = UiUtil.class.getClassLoader().getResourceAsStream(nameFile);
107
            var inputStreamReader = new InputStreamReader(Objects.requireNonNull(inputStream), StandardCharsets.UTF_8);
108
            var reader = new BufferedReader(inputStreamReader)
109
        ) {
110
            String line;
111 1 1. buildList : negated conditional → NO_COVERAGE
            while ((line = reader.readLine()) != null) {
112
                jsonScan.append(line);
113
            }
114
            var jsonArrayScan = new JSONArray(jsonScan.toString());
115 2 1. buildList : negated conditional → NO_COVERAGE
2. buildList : changed conditional boundary → NO_COVERAGE
            for (var i = 0 ; i < jsonArrayScan.length() ; i++) {
116
                this.itemsList.add(new ItemListScan(jsonArrayScan.getJSONObject(i)));
117
            }
118
            this.listPaths = new DnDListScan(this.itemsList);
119
        } catch (JSONException | IOException e) {
120
            LOGGER.log(LogLevelUtil.CONSOLE_JAVA, e, e);
121
        }
122
    }
123
124
    private JPanel getLastLinePanel() {
125
        var lastLine = new JPanel();
126 1 1. getLastLinePanel : removed call to javax/swing/JPanel::setOpaque → NO_COVERAGE
        lastLine.setOpaque(false);
127 1 1. getLastLinePanel : removed call to javax/swing/JPanel::setLayout → NO_COVERAGE
        lastLine.setLayout(new BoxLayout(lastLine, BoxLayout.X_AXIS));
128
129 1 1. getLastLinePanel : removed call to com/jsql/view/swing/manager/ManagerScan::buildRunButton → NO_COVERAGE
        this.buildRunButton("SCAN_RUN_BUTTON_LABEL", "SCAN_RUN_BUTTON_TOOLTIP");
130 1 1. getLastLinePanel : removed call to com/jsql/view/swing/manager/util/JButtonStateful::addActionListener → NO_COVERAGE
        this.run.addActionListener(new ActionScan());
131
132
        lastLine.add(this.horizontalGlue);
133
        lastLine.add(this.progressBar);
134
        lastLine.add(this.run);
135 1 1. getLastLinePanel : replaced return value with null for com/jsql/view/swing/manager/ManagerScan::getLastLinePanel → NO_COVERAGE
        return lastLine;
136
    }
137
138
    private class ActionScan implements ActionListener {
139
        @Override
140
        public void actionPerformed(ActionEvent e) {
141 1 1. actionPerformed : negated conditional → NO_COVERAGE
            if (ManagerScan.this.listPaths.getSelectedValuesList().isEmpty()) {
142
                LOGGER.log(LogLevelUtil.CONSOLE_ERROR, "Select URL(s) to scan");
143
                return;
144
            }
145
            new Thread(() -> {
146 1 1. lambda$actionPerformed$0 : negated conditional → NO_COVERAGE
                if (ManagerScan.this.run.getState() == StateButton.STARTABLE) {
147 1 1. lambda$actionPerformed$0 : removed call to com/jsql/view/swing/manager/util/JButtonStateful::setText → NO_COVERAGE
                    ManagerScan.this.run.setText(I18nViewUtil.valueByKey("SCAN_RUN_BUTTON_STOP"));
148 1 1. lambda$actionPerformed$0 : removed call to com/jsql/view/swing/manager/util/JButtonStateful::setState → NO_COVERAGE
                    ManagerScan.this.run.setState(StateButton.STOPPABLE);
149 1 1. lambda$actionPerformed$0 : removed call to javax/swing/JProgressBar::setVisible → NO_COVERAGE
                    ManagerScan.this.progressBar.setVisible(true);
150 1 1. lambda$actionPerformed$0 : removed call to java/awt/Component::setVisible → NO_COVERAGE
                    ManagerScan.this.horizontalGlue.setVisible(false);
151
                    DefaultListModel<ItemList> listModel = (DefaultListModel<ItemList>) ManagerScan.this.listPaths.getModel();
152 2 1. lambda$actionPerformed$0 : changed conditional boundary → NO_COVERAGE
2. lambda$actionPerformed$0 : negated conditional → NO_COVERAGE
                    for (var i = 0 ; i < listModel.getSize() ; i++) {
153 1 1. lambda$actionPerformed$0 : removed call to com/jsql/view/swing/list/ItemList::reset → NO_COVERAGE
                        listModel.get(i).reset();
154
                    }
155 1 1. lambda$actionPerformed$0 : removed call to com/jsql/view/swing/manager/ManagerScan::scan → NO_COVERAGE
                    ManagerScan.this.scan(ManagerScan.this.listPaths.getSelectedValuesList());
156
                } else {
157 1 1. lambda$actionPerformed$0 : removed call to com/jsql/model/accessible/ResourceAccess::setScanStopped → NO_COVERAGE
                    MediatorHelper.model().getResourceAccess().setScanStopped(true);
158 1 1. lambda$actionPerformed$0 : removed call to com/jsql/model/InjectionModel::setIsStoppedByUser → NO_COVERAGE
                    MediatorHelper.model().setIsStoppedByUser(true);
159 1 1. lambda$actionPerformed$0 : removed call to com/jsql/view/swing/manager/util/JButtonStateful::setEnabled → NO_COVERAGE
                    ManagerScan.this.run.setEnabled(false);
160 1 1. lambda$actionPerformed$0 : removed call to com/jsql/view/swing/manager/util/JButtonStateful::setState → NO_COVERAGE
                    ManagerScan.this.run.setState(StateButton.STOPPING);
161
                }
162 1 1. actionPerformed : removed call to java/lang/Thread::start → NO_COVERAGE
            }, "ThreadScan").start();
163
        }
164
    }
165
    
166
    /**
167
     * Start fast scan of URLs in sequence and display result.
168
     * Unplug any existing view and plug a console-like view in order to
169
     * respond appropriately to GUI message with simple text result instead of
170
     * build complex graphical components during the multi website injections.
171
     * At the end of the scan it plugs again the default view.
172
     * @param urlsItemList contains a list of String URL
173
     */
174
    public void scan(List<ItemList> urlsItemList) {
175 1 1. scan : removed call to com/jsql/view/swing/JFrameView::resetInterface → NO_COVERAGE
        MediatorHelper.frame().resetInterface();  // Erase everything in the view from a previous injection
176
        
177
        // wait for ending of ongoing interaction between two injections
178
        try {
179 1 1. scan : removed call to java/lang/Thread::sleep → NO_COVERAGE
            Thread.sleep(500);
180
        } catch (InterruptedException e) {
181
            LOGGER.log(LogLevelUtil.IGNORE, e, e);
182 1 1. scan : removed call to java/lang/Thread::interrupt → NO_COVERAGE
            Thread.currentThread().interrupt();
183
        }
184
185
        // Display result only in console
186 1 1. scan : removed call to java/util/concurrent/Flow$Subscription::cancel → NO_COVERAGE
        MediatorHelper.frame().getSubscriberView().getSubscription().cancel();
187
        var subscriberScan = new SubscriberScan();
188 1 1. scan : removed call to com/jsql/model/InjectionModel::subscribe → NO_COVERAGE
        MediatorHelper.model().subscribe(subscriberScan);
189
190 1 1. scan : removed call to com/jsql/model/InjectionModel::setIsScanning → NO_COVERAGE
        MediatorHelper.model().setIsScanning(true);
191 1 1. scan : removed call to com/jsql/model/accessible/ResourceAccess::setScanStopped → NO_COVERAGE
        MediatorHelper.model().getResourceAccess().setScanStopped(false);
192
        
193
        for (ItemList urlItemList: urlsItemList) {
194
            if (  // detect interrupt by user to end intermediate scan
195 1 1. scan : negated conditional → NO_COVERAGE
                MediatorHelper.model().isStoppedByUser()
196 1 1. scan : negated conditional → NO_COVERAGE
                || MediatorHelper.model().getResourceAccess().isScanStopped()
197
            ) {
198
                break;
199
            }
200
201
            var urlItemListScan = (ItemListScan) urlItemList;
202
            LOGGER.log(LogLevelUtil.CONSOLE_INFORM, "Scanning {}", urlItemListScan.getBeanInjection().getUrl());
203
204
            Optional<Engine> optionalEngine = MediatorHelper.model().getMediatorEngine().getEngines()
205
                .stream()
206 2 1. lambda$scan$1 : replaced boolean return with false for com/jsql/view/swing/manager/ManagerScan::lambda$scan$1 → NO_COVERAGE
2. lambda$scan$1 : replaced boolean return with true for com/jsql/view/swing/manager/ManagerScan::lambda$scan$1 → NO_COVERAGE
                .filter(engine -> engine.toString().equalsIgnoreCase(urlItemListScan.getBeanInjection().getEngine()))
207
                .findAny();
208
209 1 1. scan : removed call to com/jsql/model/injection/engine/MediatorEngine::setEngineByUser → NO_COVERAGE
            MediatorHelper.model().getMediatorEngine().setEngineByUser(
210
                optionalEngine.orElse(MediatorHelper.model().getMediatorEngine().getAuto())
211
            );
212 1 1. scan : removed call to com/jsql/util/ParameterUtil::controlInput → NO_COVERAGE
            MediatorHelper.model().getMediatorUtils().parameterUtil().controlInput(
213
                urlItemListScan.getBeanInjection().getUrl(),
214
                urlItemListScan.getBeanInjection().getRequest(),
215
                urlItemListScan.getBeanInjection().getHeader(),
216
                urlItemListScan.getBeanInjection().getMethodInstance(),
217
                urlItemListScan.getBeanInjection().getRequestType(),
218
                true
219
            );
220
            
221
            try {
222 1 1. scan : removed call to java/lang/Thread::sleep → NO_COVERAGE
                Thread.sleep(500);
223
            } catch (InterruptedException e) {
224
                LOGGER.log(LogLevelUtil.IGNORE, e, e);
225 1 1. scan : removed call to java/lang/Thread::interrupt → NO_COVERAGE
                Thread.currentThread().interrupt();
226
            }
227
        }
228
        
229
        // Get back the default view
230 1 1. scan : removed call to java/util/concurrent/Flow$Subscription::cancel → NO_COVERAGE
        subscriberScan.getSubscription().cancel();
231 1 1. scan : removed call to com/jsql/model/InjectionModel::subscribe → NO_COVERAGE
        MediatorHelper.model().subscribe(MediatorHelper.frame().getSubscriberView());
232
233 1 1. scan : removed call to com/jsql/model/InjectionModel::setIsScanning → NO_COVERAGE
        MediatorHelper.model().setIsScanning(false);
234 1 1. scan : removed call to com/jsql/model/InjectionModel::setIsStoppedByUser → NO_COVERAGE
        MediatorHelper.model().setIsStoppedByUser(false);
235 1 1. scan : removed call to com/jsql/model/accessible/ResourceAccess::setScanStopped → NO_COVERAGE
        MediatorHelper.model().getResourceAccess().setScanStopped(false);
236
237 1 1. scan : removed call to com/jsql/view/swing/manager/ManagerScan::endProcess → NO_COVERAGE
        this.endProcess();
238
    }
239
}

Mutations

55

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/list/DnDList::setTransferHandler → NO_COVERAGE

56

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/list/DnDList::setTransferHandler → NO_COVERAGE

57

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/list/DnDList::setCellRenderer → NO_COVERAGE

62

1.1
Location : getListCellRendererComponent
Killed by : none
negated conditional → NO_COVERAGE

63

1.1
Location : getListCellRendererComponent
Killed by : none
removed call to javax/swing/JLabel::setIcon → NO_COVERAGE

65

1.1
Location : getListCellRendererComponent
Killed by : none
replaced return value with null for com/jsql/view/swing/manager/ManagerScan$1::getListCellRendererComponent → NO_COVERAGE

69

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/list/DnDList::setName → NO_COVERAGE

72

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/manager/ManagerScan::add → NO_COVERAGE

74

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/list/DnDList::addListSelectionListener → NO_COVERAGE

75

1.1
Location : lambda$new$0
Killed by : none
negated conditional → NO_COVERAGE

80

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

81

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

82

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

85

1.1
Location : lambda$new$0
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : lambda$new$0
Killed by : none
negated conditional → NO_COVERAGE

86

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

88

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

92

1.1
Location : lambda$new$0
Killed by : none
negated conditional → NO_COVERAGE

93

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

94

1.1
Location : lambda$new$0
Killed by : none
negated conditional → NO_COVERAGE

95

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

97

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

111

1.1
Location : buildList
Killed by : none
negated conditional → NO_COVERAGE

115

1.1
Location : buildList
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : buildList
Killed by : none
changed conditional boundary → NO_COVERAGE

126

1.1
Location : getLastLinePanel
Killed by : none
removed call to javax/swing/JPanel::setOpaque → NO_COVERAGE

127

1.1
Location : getLastLinePanel
Killed by : none
removed call to javax/swing/JPanel::setLayout → NO_COVERAGE

129

1.1
Location : getLastLinePanel
Killed by : none
removed call to com/jsql/view/swing/manager/ManagerScan::buildRunButton → NO_COVERAGE

130

1.1
Location : getLastLinePanel
Killed by : none
removed call to com/jsql/view/swing/manager/util/JButtonStateful::addActionListener → NO_COVERAGE

135

1.1
Location : getLastLinePanel
Killed by : none
replaced return value with null for com/jsql/view/swing/manager/ManagerScan::getLastLinePanel → NO_COVERAGE

141

1.1
Location : actionPerformed
Killed by : none
negated conditional → NO_COVERAGE

146

1.1
Location : lambda$actionPerformed$0
Killed by : none
negated conditional → NO_COVERAGE

147

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/view/swing/manager/util/JButtonStateful::setText → NO_COVERAGE

148

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/view/swing/manager/util/JButtonStateful::setState → NO_COVERAGE

149

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to javax/swing/JProgressBar::setVisible → NO_COVERAGE

150

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to java/awt/Component::setVisible → NO_COVERAGE

152

1.1
Location : lambda$actionPerformed$0
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : lambda$actionPerformed$0
Killed by : none
negated conditional → NO_COVERAGE

153

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/view/swing/list/ItemList::reset → NO_COVERAGE

155

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/view/swing/manager/ManagerScan::scan → NO_COVERAGE

157

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/model/accessible/ResourceAccess::setScanStopped → NO_COVERAGE

158

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/model/InjectionModel::setIsStoppedByUser → NO_COVERAGE

159

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/view/swing/manager/util/JButtonStateful::setEnabled → NO_COVERAGE

160

1.1
Location : lambda$actionPerformed$0
Killed by : none
removed call to com/jsql/view/swing/manager/util/JButtonStateful::setState → NO_COVERAGE

162

1.1
Location : actionPerformed
Killed by : none
removed call to java/lang/Thread::start → NO_COVERAGE

175

1.1
Location : scan
Killed by : none
removed call to com/jsql/view/swing/JFrameView::resetInterface → NO_COVERAGE

179

1.1
Location : scan
Killed by : none
removed call to java/lang/Thread::sleep → NO_COVERAGE

182

1.1
Location : scan
Killed by : none
removed call to java/lang/Thread::interrupt → NO_COVERAGE

186

1.1
Location : scan
Killed by : none
removed call to java/util/concurrent/Flow$Subscription::cancel → NO_COVERAGE

188

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/InjectionModel::subscribe → NO_COVERAGE

190

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/InjectionModel::setIsScanning → NO_COVERAGE

191

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/accessible/ResourceAccess::setScanStopped → NO_COVERAGE

195

1.1
Location : scan
Killed by : none
negated conditional → NO_COVERAGE

196

1.1
Location : scan
Killed by : none
negated conditional → NO_COVERAGE

206

1.1
Location : lambda$scan$1
Killed by : none
replaced boolean return with false for com/jsql/view/swing/manager/ManagerScan::lambda$scan$1 → NO_COVERAGE

2.2
Location : lambda$scan$1
Killed by : none
replaced boolean return with true for com/jsql/view/swing/manager/ManagerScan::lambda$scan$1 → NO_COVERAGE

209

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/injection/engine/MediatorEngine::setEngineByUser → NO_COVERAGE

212

1.1
Location : scan
Killed by : none
removed call to com/jsql/util/ParameterUtil::controlInput → NO_COVERAGE

222

1.1
Location : scan
Killed by : none
removed call to java/lang/Thread::sleep → NO_COVERAGE

225

1.1
Location : scan
Killed by : none
removed call to java/lang/Thread::interrupt → NO_COVERAGE

230

1.1
Location : scan
Killed by : none
removed call to java/util/concurrent/Flow$Subscription::cancel → NO_COVERAGE

231

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/InjectionModel::subscribe → NO_COVERAGE

233

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/InjectionModel::setIsScanning → NO_COVERAGE

234

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/InjectionModel::setIsStoppedByUser → NO_COVERAGE

235

1.1
Location : scan
Killed by : none
removed call to com/jsql/model/accessible/ResourceAccess::setScanStopped → NO_COVERAGE

237

1.1
Location : scan
Killed by : none
removed call to com/jsql/view/swing/manager/ManagerScan::endProcess → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.22.1