PanelAddressBar.java

1
/*******************************************************************************
2
 * Copyhacked (H) 2012-2020.
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 about 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.panel;
12
13
import com.jsql.model.injection.method.AbstractMethodInjection;
14
import com.jsql.util.I18nUtil;
15
import com.jsql.view.swing.panel.address.ActionEnterAddressBar;
16
import com.jsql.view.swing.panel.address.AddressMenuBar;
17
import com.jsql.view.swing.panel.address.RequestPanel;
18
import com.jsql.view.swing.panel.util.ButtonExpandText;
19
import com.jsql.view.swing.radio.RadioLinkMethod;
20
import com.jsql.view.swing.text.*;
21
import com.jsql.view.swing.ui.ComponentBorder;
22
import com.jsql.view.swing.util.I18nViewUtil;
23
import com.jsql.view.swing.util.MediatorHelper;
24
import com.jsql.view.swing.util.UiUtil;
25
26
import javax.swing.*;
27
import javax.swing.plaf.basic.BasicArrowButton;
28
import java.awt.*;
29
import java.util.stream.Stream;
30
31
/**
32
 * Create panel at the top of the window.
33
 * Contains textfields in a panel.
34
 */
35
public class PanelAddressBar extends JPanel {
36
    
37
    private final JTextField textFieldAddress;
38
    private final JTextField textFieldRequest;
39
    private final JTextField textFieldHeader;
40
41
    private final RadioLinkMethod[] radioQueryString = new RadioLinkMethod[1];
42
    private final RadioLinkMethod[] radioRequest = new RadioLinkMethod[1];
43
    private final RadioLinkMethod[] radioHeader = new RadioLinkMethod[1];
44
    
45
    private static final String KEY_TOOLTIP_QUERY = "FIELD_QUERYSTRING_TOOLTIP";
46
    private static final String KEY_TOOLTIP_REQUEST = "FIELD_REQUEST_TOOLTIP";
47
    private static final String KEY_TOOLTIP_HEADER = "FIELD_HEADER_TOOLTIP";
48
49
    // Current injection method.
50
    private AbstractMethodInjection methodInjection = MediatorHelper.model().getMediatorMethod().getQuery();
51
52
    private final AddressMenuBar addressMenuBar;
53
    private final RequestPanel requestPanel;
54
55
    private boolean isAdvanceActivated = false;
56
    
57
    public PanelAddressBar() {
58
        
59 1 1. <init> : removed call to com/jsql/view/swing/panel/PanelAddressBar::setBorder → NO_COVERAGE
        this.setBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, UiUtil.COLOR_COMPONENT_BORDER));
60
        
61
        final var tooltipQuery = new JToolTipI18n[]{ new JToolTipI18n(I18nUtil.valueByKey(KEY_TOOLTIP_QUERY)) };
62
        JTextFieldWithIcon fieldWithIcon = new JTextFieldWithIcon(I18nUtil.valueByKey("ADDRESS_BAR")) {
63
            
64
            @Override
65
            public JToolTip createToolTip() {
66
                
67
                JToolTipI18n tipI18n = new JToolTipI18n(I18nUtil.valueByKey(KEY_TOOLTIP_QUERY));
68
                tooltipQuery[0] = tipI18n;
69 1 1. createToolTip : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$1::createToolTip → NO_COVERAGE
                return tipI18n;
70
            }
71
        };
72
        this.textFieldAddress = new JTextFieldAddressBar(fieldWithIcon).getProxy();
73 1 1. <init> : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
        I18nViewUtil.addComponentForKey("ADDRESS_BAR", fieldWithIcon);
74 1 1. <init> : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
        I18nViewUtil.addComponentForKey(KEY_TOOLTIP_QUERY, tooltipQuery[0]);
75
        
76 1 1. <init> : removed call to javax/swing/JTextField::setName → NO_COVERAGE
        this.textFieldAddress.setName("textFieldAddress");
77
        
78
        final var tooltipRequest = new JToolTipI18n[]{ new JToolTipI18n(I18nUtil.valueByKey(KEY_TOOLTIP_REQUEST)) };
79
        this.textFieldRequest = new JPopupTextField(new JTextFieldPlaceholder("e.g. key=value&injectMe=") {
80
            
81
            @Override
82
            public JToolTip createToolTip() {
83
                
84
                JToolTipI18n tipI18n = new JToolTipI18n(I18nUtil.valueByKey(KEY_TOOLTIP_REQUEST));
85
                tooltipRequest[0] = tipI18n;
86 1 1. createToolTip : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$2::createToolTip → NO_COVERAGE
                return tipI18n;
87
            }
88
        }).getProxy();
89 1 1. <init> : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
        I18nViewUtil.addComponentForKey(KEY_TOOLTIP_REQUEST, tooltipRequest[0]);
90
        
91
        final var tooltipHeader = new JToolTipI18n[]{ new JToolTipI18n(I18nUtil.valueByKey(KEY_TOOLTIP_HEADER)) };
92
        this.textFieldHeader = new JPopupTextField(new JTextFieldPlaceholder("e.g. key: value\\r\\nCookie: cKey1=cValue1; cKey2=cValue2\\r\\nAuthorization: Basic dXNlcjpwYXNz\\r\\ninjectMe:") {
93
            
94
            @Override
95
            public JToolTip createToolTip() {
96
                
97
                JToolTipI18n tipI18n = new JToolTipI18n(I18nUtil.valueByKey(KEY_TOOLTIP_HEADER));
98
                tooltipHeader[0] = tipI18n;
99
                
100 1 1. createToolTip : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$3::createToolTip → NO_COVERAGE
                return tooltipHeader[0];
101
            }
102
        }).getProxy();
103 1 1. <init> : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
        I18nViewUtil.addComponentForKey(KEY_TOOLTIP_HEADER, tooltipHeader[0]);
104
        
105
        Stream.of(
106
            new RadioModel("URL", true, MediatorHelper.model().getMediatorMethod().getQuery(), "METHOD_QUERYSTRING_TOOLTIP", this.radioQueryString),
107
            new RadioModel("GET", false, MediatorHelper.model().getMediatorMethod().getRequest(), "METHOD_REQUEST_TOOLTIP", this.radioRequest),
108
            new RadioModel("Header", false, MediatorHelper.model().getMediatorMethod().getHeader(), "METHOD_HEADER_TOOLTIP", this.radioHeader)
109
        )
110 1 1. <init> : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(radioModel -> {
111
            
112
            var tooltip = new JToolTipI18n[]{ new JToolTipI18n(I18nUtil.valueByKey(radioModel.i18n)) };
113
            radioModel.radio[0] = new RadioLinkMethod(radioModel.request, radioModel.isSelected, radioModel.method) {
114
                
115
                @Override
116
                public JToolTip createToolTip() {
117
                    
118
                    tooltip[0] = new JToolTipI18n(I18nUtil.valueByKey(radioModel.i18n));
119
                    
120 1 1. createToolTip : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$4::createToolTip → NO_COVERAGE
                    return tooltip[0];
121
                }
122
            };
123 1 1. lambda$new$0 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(radioModel.i18n, tooltip[0]);
124
            
125 1 1. lambda$new$0 : removed call to com/jsql/view/swing/radio/RadioLinkMethod::setToolTipText → NO_COVERAGE
            radioModel.radio[0].setToolTipText(I18nUtil.valueByKey(radioModel.i18n));
126
        });
127
                
128
        this.requestPanel = new RequestPanel(this);
129
130 1 1. <init> : removed call to com/jsql/view/swing/radio/RadioLinkMethod::setBorder → NO_COVERAGE
        this.radioQueryString[0].setBorder(BorderFactory.createEmptyBorder(0, 3, 0, 3));
131 1 1. <init> : removed call to com/jsql/view/swing/panel/address/RequestPanel::setBorder → NO_COVERAGE
        this.requestPanel.setBorder(BorderFactory.createEmptyBorder(6, 3, 0, 3));
132 1 1. <init> : removed call to com/jsql/view/swing/radio/RadioLinkMethod::setBorder → NO_COVERAGE
        this.radioHeader[0].setBorder(BorderFactory.createEmptyBorder(6, 3, 0, 3));
133
134
        // Tooltip setting
135 1 1. <init> : removed call to javax/swing/JTextField::setToolTipText → NO_COVERAGE
        this.textFieldAddress.setToolTipText(I18nUtil.valueByKey(KEY_TOOLTIP_QUERY));
136 1 1. <init> : removed call to javax/swing/JTextField::setToolTipText → NO_COVERAGE
        this.textFieldRequest.setToolTipText(I18nUtil.valueByKey(KEY_TOOLTIP_REQUEST));
137 1 1. <init> : removed call to javax/swing/JTextField::setToolTipText → NO_COVERAGE
        this.textFieldHeader.setToolTipText(I18nUtil.valueByKey(KEY_TOOLTIP_HEADER));
138
139
        /**
140
         * Define UI and the left padding for addressBar
141
         */
142 1 1. <init> : removed call to javax/swing/JTextField::setBorder → NO_COVERAGE
        this.textFieldAddress.setBorder(
143
            BorderFactory.createCompoundBorder(
144
                BorderFactory.createCompoundBorder(
145
                    BorderFactory.createMatteBorder(4, 2, 3, 0, UiUtil.COLOR_DEFAULT_BACKGROUND),
146
                    BorderFactory.createLineBorder(UiUtil.COLOR_BLU)
147
                ),
148
                BorderFactory.createEmptyBorder(2, 23, 2, 23)
149
            )
150
        );
151
152 1 1. <init> : removed call to javax/swing/JTextField::setBorder → NO_COVERAGE
        this.textFieldRequest.setBorder(
153
            BorderFactory.createCompoundBorder(
154
                BorderFactory.createMatteBorder(1, 2, 0, 0, UiUtil.COLOR_DEFAULT_BACKGROUND),
155
                UiUtil.BORDER_BLU
156
            )
157
        );
158
        
159 1 1. <init> : removed call to javax/swing/JTextField::setBorder → NO_COVERAGE
        this.textFieldHeader.setBorder(
160
            BorderFactory.createCompoundBorder(
161
                BorderFactory.createMatteBorder(1, 2, 0, 0, UiUtil.COLOR_DEFAULT_BACKGROUND),
162
                UiUtil.BORDER_BLU
163
            )
164
        );
165
166 1 1. <init> : removed call to javax/swing/JTextField::setPreferredSize → NO_COVERAGE
        this.textFieldRequest.setPreferredSize(new Dimension(0, 27));
167 1 1. <init> : removed call to javax/swing/JTextField::setFont → NO_COVERAGE
        this.textFieldRequest.setFont(UiUtil.FONT_NON_MONO_BIG);
168 1 1. <init> : removed call to javax/swing/JTextField::setPreferredSize → NO_COVERAGE
        this.textFieldHeader.setPreferredSize(new Dimension(0, 27));
169 1 1. <init> : removed call to javax/swing/JTextField::setFont → NO_COVERAGE
        this.textFieldHeader.setFont(UiUtil.FONT_NON_MONO_BIG);
170
171 1 1. <init> : removed call to javax/swing/JTextField::addActionListener → NO_COVERAGE
        this.textFieldAddress.addActionListener(new ActionEnterAddressBar(this));
172 1 1. <init> : removed call to javax/swing/JTextField::addActionListener → NO_COVERAGE
        this.textFieldRequest.addActionListener(new ActionEnterAddressBar(this));
173 1 1. <init> : removed call to javax/swing/JTextField::addActionListener → NO_COVERAGE
        this.textFieldHeader.addActionListener(new ActionEnterAddressBar(this));
174
175
        this.addressMenuBar = new AddressMenuBar(this);
176 1 1. <init> : removed call to com/jsql/view/swing/ui/ComponentBorder::install → NO_COVERAGE
        new ComponentBorder(this.addressMenuBar, 17, 0).install(this.textFieldAddress);
177
178 1 1. <init> : removed call to com/jsql/view/swing/ui/ComponentBorder::install → NO_COVERAGE
        new ComponentBorder(new ButtonExpandText("Request body", this.textFieldRequest), 0, 0).install(this.textFieldRequest);
179 1 1. <init> : removed call to com/jsql/view/swing/ui/ComponentBorder::install → NO_COVERAGE
        new ComponentBorder(new ButtonExpandText("Header body", this.textFieldHeader), 0, 0).install(this.textFieldHeader);
180
181 1 1. <init> : removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE
        this.radioQueryString[0].setVisible(false);
182 1 1. <init> : removed call to javax/swing/JTextField::setVisible → NO_COVERAGE
        this.textFieldRequest.setVisible(false);
183 1 1. <init> : removed call to com/jsql/view/swing/panel/address/RequestPanel::setVisible → NO_COVERAGE
        this.requestPanel.setVisible(false);
184 1 1. <init> : removed call to javax/swing/JTextField::setVisible → NO_COVERAGE
        this.textFieldHeader.setVisible(false);
185 1 1. <init> : removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE
        this.radioHeader[0].setVisible(false);
186
        
187 1 1. <init> : removed call to com/jsql/view/swing/panel/PanelAddressBar::initializeLayout → NO_COVERAGE
        this.initializeLayout();
188
    }
189
190
    private void initializeLayout() {
191
        
192
        final BasicArrowButton advancedButton = this.initializeAdvancedButton(this.requestPanel);
193
        
194
        // Vertical positioning for components
195 1 1. initializeLayout : removed call to com/jsql/view/swing/panel/PanelAddressBar::setLayout → NO_COVERAGE
        this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
196
        
197
        // First panel at the top, contains text components
198
        var panelTextFields = new JPanel();
199
        var layoutTextFields = new GroupLayout(panelTextFields);
200 1 1. initializeLayout : removed call to javax/swing/JPanel::setLayout → NO_COVERAGE
        panelTextFields.setLayout(layoutTextFields);
201 1 1. initializeLayout : removed call to javax/swing/JPanel::setBorder → NO_COVERAGE
        panelTextFields.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 0));
202
        this.add(panelTextFields);
203
204
        // Horizontal column rules
205
        layoutTextFields
206 1 1. initializeLayout : removed call to javax/swing/GroupLayout::setHorizontalGroup → NO_COVERAGE
        .setHorizontalGroup(
207
            layoutTextFields
208
            .createSequentialGroup()
209
            .addGroup(
210
                layoutTextFields
211
                .createParallelGroup(GroupLayout.Alignment.TRAILING, false)
212
                .addComponent(this.radioQueryString[0])
213
                .addComponent(this.requestPanel)
214
                .addComponent(this.radioHeader[0])
215
            )
216
            .addGroup(
217
                layoutTextFields
218
                .createParallelGroup()
219
                .addComponent(this.textFieldAddress)
220
                .addComponent(this.textFieldRequest)
221
                .addComponent(this.textFieldHeader)
222
            )
223
            .addGroup(
224
                layoutTextFields
225
                .createParallelGroup(GroupLayout.Alignment.LEADING, false)
226
                .addComponent(advancedButton)
227
            )
228
        );
229
230
        // Vertical line rules
231
        layoutTextFields
232 1 1. initializeLayout : removed call to javax/swing/GroupLayout::setVerticalGroup → NO_COVERAGE
        .setVerticalGroup(
233
            layoutTextFields
234
            .createSequentialGroup()
235
            .addGroup(
236
                layoutTextFields
237
                .createParallelGroup(GroupLayout.Alignment.CENTER, false)
238
                .addComponent(this.radioQueryString[0])
239
                .addComponent(this.textFieldAddress)
240
                .addComponent(advancedButton)
241
            )
242
            .addGroup(
243
                layoutTextFields
244
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
245
                .addComponent(this.requestPanel)
246
                .addComponent(this.textFieldRequest)
247
            )
248
            .addGroup(
249
                layoutTextFields
250
                .createParallelGroup(GroupLayout.Alignment.BASELINE)
251
                .addComponent(this.radioHeader[0])
252
                .addComponent(this.textFieldHeader)
253
            )
254
        );
255
    }
256
257
    private BasicArrowButton initializeAdvancedButton(final JPanel panelHttpProtocol) {
258
        
259
        final var advancedButton = new BasicArrowButton(SwingConstants.SOUTH);
260 1 1. initializeAdvancedButton : removed call to javax/swing/plaf/basic/BasicArrowButton::setName → NO_COVERAGE
        advancedButton.setName("advancedButton");
261 1 1. initializeAdvancedButton : removed call to javax/swing/plaf/basic/BasicArrowButton::setBorderPainted → NO_COVERAGE
        advancedButton.setBorderPainted(false);
262 1 1. initializeAdvancedButton : removed call to javax/swing/plaf/basic/BasicArrowButton::setOpaque → NO_COVERAGE
        advancedButton.setOpaque(false);
263
264 1 1. initializeAdvancedButton : removed call to javax/swing/plaf/basic/BasicArrowButton::setToolTipText → NO_COVERAGE
        advancedButton.setToolTipText(I18nUtil.valueByKey("BUTTON_ADVANCED"));
265 1 1. initializeAdvancedButton : removed call to javax/swing/plaf/basic/BasicArrowButton::addActionListener → NO_COVERAGE
        advancedButton.addActionListener(actionEvent -> {
266
            
267 1 1. lambda$initializeAdvancedButton$1 : negated conditional → NO_COVERAGE
            boolean isVisible = advancedButton.getDirection() == SwingConstants.SOUTH;
268
269 1 1. lambda$initializeAdvancedButton$1 : removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE
            this.radioQueryString[0].setVisible(isVisible);
270
271 1 1. lambda$initializeAdvancedButton$1 : removed call to javax/swing/JTextField::setVisible → NO_COVERAGE
            PanelAddressBar.this.textFieldRequest.setVisible(isVisible);
272 1 1. lambda$initializeAdvancedButton$1 : removed call to javax/swing/JPanel::setVisible → NO_COVERAGE
            panelHttpProtocol.setVisible(isVisible);
273
274 1 1. lambda$initializeAdvancedButton$1 : removed call to javax/swing/JTextField::setVisible → NO_COVERAGE
            PanelAddressBar.this.textFieldHeader.setVisible(isVisible);
275 1 1. lambda$initializeAdvancedButton$1 : removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE
            this.radioHeader[0].setVisible(isVisible);
276
            
277
            this.isAdvanceActivated = isVisible;
278 1 1. lambda$initializeAdvancedButton$1 : removed call to com/jsql/view/swing/menubar/Menubar::setVisible → NO_COVERAGE
            MediatorHelper.menubar().setVisible(isVisible);
279
280 2 1. lambda$initializeAdvancedButton$1 : negated conditional → NO_COVERAGE
2. lambda$initializeAdvancedButton$1 : removed call to javax/swing/plaf/basic/BasicArrowButton::setDirection → NO_COVERAGE
            advancedButton.setDirection(isVisible ? SwingConstants.NORTH : SwingConstants.SOUTH);
281
        });
282
        
283 1 1. initializeAdvancedButton : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::initializeAdvancedButton → NO_COVERAGE
        return advancedButton;
284
    }
285
    
286
    private static class RadioModel {
287
        
288
        private final String request;
289
        private final Boolean isSelected;
290
        private final AbstractMethodInjection method;
291
        private final String i18n;
292
        private final RadioLinkMethod[] radio;
293
294
        public RadioModel(String request, Boolean isSelected, AbstractMethodInjection method, String i18n, RadioLinkMethod[] radio) {
295
            
296
            this.request = request;
297
            this.isSelected = isSelected;
298
            this.method = method;
299
            this.i18n = i18n;
300
            this.radio = radio;
301
        }
302
    }
303
    
304
    
305
    // Getter and setter
306
307
    public void setMethodInjection(AbstractMethodInjection methodInjection) {
308
        this.methodInjection = methodInjection;
309
    }
310
311
    public JTextField getTextFieldAddress() {
312 1 1. getTextFieldAddress : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getTextFieldAddress → NO_COVERAGE
        return this.textFieldAddress;
313
    }
314
315
    public boolean isAdvanceActivated() {
316 2 1. isAdvanceActivated : replaced boolean return with true for com/jsql/view/swing/panel/PanelAddressBar::isAdvanceActivated → NO_COVERAGE
2. isAdvanceActivated : replaced boolean return with false for com/jsql/view/swing/panel/PanelAddressBar::isAdvanceActivated → NO_COVERAGE
        return this.isAdvanceActivated;
317
    }
318
319
    public JTextField getTextFieldRequest() {
320 1 1. getTextFieldRequest : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getTextFieldRequest → NO_COVERAGE
        return this.textFieldRequest;
321
    }
322
323
    public JTextField getTextFieldHeader() {
324 1 1. getTextFieldHeader : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getTextFieldHeader → NO_COVERAGE
        return this.textFieldHeader;
325
    }
326
327
    public RadioLinkMethod getRadioQueryString() {
328 1 1. getRadioQueryString : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getRadioQueryString → NO_COVERAGE
        return this.radioQueryString[0];
329
    }
330
331
    public RadioLinkMethod getRadioHeader() {
332 1 1. getRadioHeader : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getRadioHeader → NO_COVERAGE
        return this.radioHeader[0];
333
    }
334
335
    public RadioLinkMethod getRadioRequest() {
336 1 1. getRadioRequest : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getRadioRequest → NO_COVERAGE
        return this.radioRequest[0];
337
    }
338
339
    public AbstractMethodInjection getMethodInjection() {
340 1 1. getMethodInjection : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getMethodInjection → NO_COVERAGE
        return this.methodInjection;
341
    }
342
343
    public AddressMenuBar getAddressMenuBar() {
344 1 1. getAddressMenuBar : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getAddressMenuBar → NO_COVERAGE
        return this.addressMenuBar;
345
    }
346
347
    public RequestPanel getRequestPanel() {
348 1 1. getRequestPanel : replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar::getRequestPanel → NO_COVERAGE
        return this.requestPanel;
349
    }
350
}

Mutations

59

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

69

1.1
Location : createToolTip
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$1::createToolTip → NO_COVERAGE

73

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE

74

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE

76

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

86

1.1
Location : createToolTip
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$2::createToolTip → NO_COVERAGE

89

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE

100

1.1
Location : createToolTip
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$3::createToolTip → NO_COVERAGE

103

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE

110

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

120

1.1
Location : createToolTip
Killed by : none
replaced return value with null for com/jsql/view/swing/panel/PanelAddressBar$4::createToolTip → NO_COVERAGE

123

1.1
Location : lambda$new$0
Killed by : none
removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE

125

1.1
Location : lambda$new$0
Killed by : none
removed call to com/jsql/view/swing/radio/RadioLinkMethod::setToolTipText → NO_COVERAGE

130

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/radio/RadioLinkMethod::setBorder → NO_COVERAGE

131

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/panel/address/RequestPanel::setBorder → NO_COVERAGE

132

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/radio/RadioLinkMethod::setBorder → NO_COVERAGE

135

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

136

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

137

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

142

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

152

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

159

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

166

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

167

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

168

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

169

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

171

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

172

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

173

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

176

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/ui/ComponentBorder::install → NO_COVERAGE

178

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/ui/ComponentBorder::install → NO_COVERAGE

179

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/ui/ComponentBorder::install → NO_COVERAGE

181

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE

182

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

183

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/panel/address/RequestPanel::setVisible → NO_COVERAGE

184

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

185

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE

187

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

195

1.1
Location : initializeLayout
Killed by : none
removed call to com/jsql/view/swing/panel/PanelAddressBar::setLayout → NO_COVERAGE

200

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

201

1.1
Location : initializeLayout
Killed by : none
removed call to javax/swing/JPanel::setBorder → NO_COVERAGE

206

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

232

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

260

1.1
Location : initializeAdvancedButton
Killed by : none
removed call to javax/swing/plaf/basic/BasicArrowButton::setName → NO_COVERAGE

261

1.1
Location : initializeAdvancedButton
Killed by : none
removed call to javax/swing/plaf/basic/BasicArrowButton::setBorderPainted → NO_COVERAGE

262

1.1
Location : initializeAdvancedButton
Killed by : none
removed call to javax/swing/plaf/basic/BasicArrowButton::setOpaque → NO_COVERAGE

264

1.1
Location : initializeAdvancedButton
Killed by : none
removed call to javax/swing/plaf/basic/BasicArrowButton::setToolTipText → NO_COVERAGE

265

1.1
Location : initializeAdvancedButton
Killed by : none
removed call to javax/swing/plaf/basic/BasicArrowButton::addActionListener → NO_COVERAGE

267

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
negated conditional → NO_COVERAGE

269

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE

271

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
removed call to javax/swing/JTextField::setVisible → NO_COVERAGE

272

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
removed call to javax/swing/JPanel::setVisible → NO_COVERAGE

274

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
removed call to javax/swing/JTextField::setVisible → NO_COVERAGE

275

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
removed call to com/jsql/view/swing/radio/RadioLinkMethod::setVisible → NO_COVERAGE

278

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
removed call to com/jsql/view/swing/menubar/Menubar::setVisible → NO_COVERAGE

280

1.1
Location : lambda$initializeAdvancedButton$1
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : lambda$initializeAdvancedButton$1
Killed by : none
removed call to javax/swing/plaf/basic/BasicArrowButton::setDirection → NO_COVERAGE

283

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

312

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

316

1.1
Location : isAdvanceActivated
Killed by : none
replaced boolean return with true for com/jsql/view/swing/panel/PanelAddressBar::isAdvanceActivated → NO_COVERAGE

2.2
Location : isAdvanceActivated
Killed by : none
replaced boolean return with false for com/jsql/view/swing/panel/PanelAddressBar::isAdvanceActivated → NO_COVERAGE

320

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

324

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

328

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

332

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

336

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

340

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

344

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

348

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

Active mutators

Tests examined


Report generated by PIT 1.16.1