SqlEngine.java

1
package com.jsql.view.swing.sql;
2
3
import com.jsql.model.injection.vendor.model.Vendor;
4
import com.jsql.model.injection.vendor.model.yaml.Method;
5
import com.jsql.model.injection.vendor.model.yaml.ModelYaml;
6
import com.jsql.util.I18nUtil;
7
import com.jsql.view.swing.tab.TabbedPaneWheeled;
8
import com.jsql.view.swing.text.listener.DocumentListenerEditing;
9
import com.jsql.view.swing.util.I18nViewUtil;
10
import com.jsql.view.swing.util.MediatorHelper;
11
import com.jsql.view.swing.util.UiUtil;
12
import org.apache.commons.lang3.StringUtils;
13
import org.fife.ui.rsyntaxtextarea.RSyntaxDocument;
14
import org.fife.ui.rsyntaxtextarea.SyntaxConstants;
15
import org.fife.ui.rtextarea.RTextScrollPane;
16
17
import javax.swing.*;
18
import java.awt.*;
19
import java.awt.event.MouseAdapter;
20
import java.awt.event.MouseEvent;
21
import java.util.AbstractMap.SimpleEntry;
22
import java.util.ArrayList;
23
import java.util.Arrays;
24
import java.util.LinkedList;
25
import java.util.List;
26
import java.util.stream.Collectors;
27
import java.util.stream.Stream;
28
29
public class SqlEngine extends JPanel {
30
31
    private static ModelYaml modelYaml = MediatorHelper.model().getMediatorVendor().getVendor().instance().getModelYaml();
32
    private static final JTabbedPane tabsError = new TabbedPaneWheeled(SwingConstants.RIGHT);
33
    private static final List<JSyntaxTextArea> listTextareasError = new ArrayList<>();
34
    
35
    enum TextareaWithColor {
36
        
37
        // Default
38
        DATABASE_DEFAULT(new JSyntaxTextArea(
39 1 1. lambda$static$0 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setDatabase → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getSchema().setDatabase(v),
40 1 1. lambda$static$1 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$1 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getSchema().getDatabase()
41
        )),
42
        TABLE_DEFAULT(new JSyntaxTextArea(
43 1 1. lambda$static$2 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setTable → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getSchema().setTable(v),
44 1 1. lambda$static$3 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$3 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getSchema().getTable()
45
        )),
46
        COLUMN_DEFAULT(new JSyntaxTextArea(
47 1 1. lambda$static$4 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setColumn → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getSchema().setColumn(v),
48 1 1. lambda$static$5 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$5 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getSchema().getColumn()
49
        )),
50
        QUERY_DEFAULT(new JSyntaxTextArea(
51 1 1. lambda$static$6 : removed call to com/jsql/model/injection/vendor/model/yaml/Row::setQuery → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getSchema().getRow().setQuery(v),
52 1 1. lambda$static$7 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$7 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getSchema().getRow().getQuery()
53
        )),
54
        FIELD_DEFAULT(new JSyntaxTextArea(
55 1 1. lambda$static$8 : removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setField → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getSchema().getRow().getFields().setField(v),
56 1 1. lambda$static$9 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$9 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getSchema().getRow().getFields().getField()
57
        )),
58
        CONCAT_DEFAULT(new JSyntaxTextArea(
59 1 1. lambda$static$10 : removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setConcat → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getSchema().getRow().getFields().setConcat(v),
60 1 1. lambda$static$11 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$11 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getSchema().getRow().getFields().getConcat()
61
        )),
62
        
63
        // Zip
64
        DATABASE_ZIP(new JSyntaxTextArea(
65 1 1. lambda$static$12 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setDatabase → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getZip().setDatabase(v),
66 1 1. lambda$static$13 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$13 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getZip().getDatabase()
67
        )),
68
        TABLE_ZIP(new JSyntaxTextArea(
69 1 1. lambda$static$14 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setTable → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getZip().setTable(v),
70 1 1. lambda$static$15 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$15 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getZip().getTable()
71
        )),
72
        COLUMN_ZIP(new JSyntaxTextArea(
73 1 1. lambda$static$16 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setColumn → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getZip().setColumn(v),
74 1 1. lambda$static$17 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$17 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getZip().getColumn()
75
        )),
76
        QUERY_ZIP(new JSyntaxTextArea(
77 1 1. lambda$static$18 : removed call to com/jsql/model/injection/vendor/model/yaml/Row::setQuery → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getZip().getRow().setQuery(v),
78 1 1. lambda$static$19 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$19 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getZip().getRow().getQuery()
79
        )),
80
        FIELD_ZIP(new JSyntaxTextArea(
81 1 1. lambda$static$20 : removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setField → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getZip().getRow().getFields().setField(v),
82 1 1. lambda$static$21 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$21 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getZip().getRow().getFields().getField()
83
        )),
84
        CONCAT_ZIP(new JSyntaxTextArea(
85 1 1. lambda$static$22 : removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setConcat → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getZip().getRow().getFields().setConcat(v),
86 1 1. lambda$static$23 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$23 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getZip().getRow().getFields().getConcat()
87
        )),
88
        
89
        // Dios
90
        DATABASE_DIOS(new JSyntaxTextArea(
91 1 1. lambda$static$24 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setDatabase → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getDios().setDatabase(v),
92 1 1. lambda$static$25 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$25 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getDios().getDatabase()
93
        )),
94
        TABLE_DIOS(new JSyntaxTextArea(
95 1 1. lambda$static$26 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setTable → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getDios().setTable(v),
96 1 1. lambda$static$27 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$27 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getDios().getTable()
97
        )),
98
        COLUMN_DIOS(new JSyntaxTextArea(
99 1 1. lambda$static$28 : removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setColumn → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getDios().setColumn(v),
100 1 1. lambda$static$29 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$29 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getDios().getColumn()
101
        )),
102
        QUERY_DIOS(new JSyntaxTextArea(
103 1 1. lambda$static$30 : removed call to com/jsql/model/injection/vendor/model/yaml/Row::setQuery → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getDios().getRow().setQuery(v),
104 1 1. lambda$static$31 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$31 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getDios().getRow().getQuery()
105
        )),
106
        FIELD_DIOS(new JSyntaxTextArea(
107 1 1. lambda$static$32 : removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setField → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getDios().getRow().getFields().setField(v),
108 1 1. lambda$static$33 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$33 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getDios().getRow().getFields().getField()
109
        )),
110
        CONCAT_DIOS(new JSyntaxTextArea(
111 1 1. lambda$static$34 : removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setConcat → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().getDios().getRow().getFields().setConcat(v),
112 1 1. lambda$static$35 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$35 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getDios().getRow().getFields().getConcat()
113
        )),
114
        
115
        INFO(new JSyntaxTextArea(
116 1 1. lambda$static$36 : removed call to com/jsql/model/injection/vendor/model/yaml/Resource::setInfo → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().setInfo(v),
117 1 1. lambda$static$37 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$37 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getInfo()
118
        )),
119
120
        // Configuration
121
        SLIDING_WINDOW(new JSyntaxTextArea(
122 1 1. lambda$static$38 : removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setSlidingWindow → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().setSlidingWindow(v),
123 1 1. lambda$static$39 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$39 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getSlidingWindow()
124
        )),
125
        LIMIT(new JSyntaxTextArea(
126 1 1. lambda$static$40 : removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setLimit → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().setLimit(v),
127 1 1. lambda$static$41 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$41 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getLimit()
128
        )),
129
        FAILSAFE(new JSyntaxTextArea(
130 1 1. lambda$static$42 : removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setFailsafe → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().setFailsafe(v),
131 1 1. lambda$static$43 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$43 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getFailsafe()
132
        )),
133
        CALIBRATOR(new JSyntaxTextArea(
134 1 1. lambda$static$44 : removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setCalibrator → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().setCalibrator(v),
135 1 1. lambda$static$45 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$45 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getCalibrator()
136
        )),
137
        ENDING_COMMENT(new JSyntaxTextArea(
138 1 1. lambda$static$46 : removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setEndingComment → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().setEndingComment(v),
139 1 1. lambda$static$47 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$47 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getEndingComment()
140
        )),
141
        LIMIT_BOUNDARY(new JSyntaxTextArea(
142 1 1. lambda$static$48 : removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setLimitBoundary → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().setLimitBoundary(v),
143 1 1. lambda$static$49 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$49 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getLimitBoundary()
144
        )),
145
        
146
        // Union
147
        INDICES(new JSyntaxTextArea(
148 1 1. lambda$static$50 : removed call to com/jsql/model/injection/vendor/model/yaml/Union::setIndices → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getUnion().setIndices(v),
149 1 1. lambda$static$51 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$51 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getUnion().getIndices()
150
        )),
151
        CAPACITY(new JSyntaxTextArea(
152 1 1. lambda$static$52 : removed call to com/jsql/model/injection/vendor/model/yaml/Union::setCapacity → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getUnion().setCapacity(v),
153 1 1. lambda$static$53 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$53 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getUnion().getCapacity()
154
        )),
155
156
        STACK(new JSyntaxTextArea(
157 1 1. lambda$static$54 : removed call to com/jsql/model/injection/vendor/model/yaml/Strategy::setStack → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().setStack(v),
158 1 1. lambda$static$55 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$55 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getStack()
159
        )),
160
        DNS(new JSyntaxTextArea(
161 1 1. lambda$static$56 : removed call to com/jsql/model/injection/vendor/model/yaml/Strategy::setDns → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().setDns(v),
162 1 1. lambda$static$57 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$57 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getDns()
163
        )),
164
165
        // Boolean
166
        MODE_AND(new JSyntaxTextArea(
167 1 1. lambda$static$58 : removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setModeAnd → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().setModeAnd(v),
168 1 1. lambda$static$59 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$59 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getModeAnd()
169
        )),
170
        MODE_OR(new JSyntaxTextArea(
171 1 1. lambda$static$60 : removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setModeOr → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().setModeOr(v),
172 1 1. lambda$static$61 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$61 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getModeOr()
173
        )),
174
        MODE_STACK(new JSyntaxTextArea(
175 1 1. lambda$static$62 : removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setModeStack → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().setModeStack(v),
176 1 1. lambda$static$63 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$63 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getModeStack()
177
        )),
178
        BLIND(new JSyntaxTextArea(
179 1 1. lambda$static$64 : removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setBlind → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().setBlind(v),
180 1 1. lambda$static$65 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$65 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getBlind()
181
        )),
182
        TIME(new JSyntaxTextArea(
183 1 1. lambda$static$66 : removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setTime → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().setTime(v),
184 1 1. lambda$static$67 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$67 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getTime()
185
        )),
186
        MULTIBIT(new JSyntaxTextArea(
187 1 1. lambda$static$68 : removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setMultibit → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().setMultibit(v),
188 1 1. lambda$static$69 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$69 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getMultibit()
189
        )),
190
        TEST_BIT(new JSyntaxTextArea(
191 1 1. lambda$static$70 : removed call to com/jsql/model/injection/vendor/model/yaml/Test::setBit → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().setBit(v),
192 1 1. lambda$static$71 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$71 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().getBit()
193
        )),
194
        TEST_BIN(new JSyntaxTextArea(
195 1 1. lambda$static$72 : removed call to com/jsql/model/injection/vendor/model/yaml/Test::setBin → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().setBin(v),
196 1 1. lambda$static$73 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$73 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().getBin()
197
        )),
198
        TRUTHY_BIN(new JSyntaxTextArea(
199 1 1. lambda$static$74 : removed call to com/jsql/model/injection/vendor/model/yaml/Test::setTruthyBin → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().setTruthyBin(v),
200 1 1. lambda$static$75 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$75 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().getTruthyBinAsString()
201
        )),
202
        FALSY_BIN(new JSyntaxTextArea(
203 1 1. lambda$static$76 : removed call to com/jsql/model/injection/vendor/model/yaml/Test::setFalsyBin → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().setFalsyBin(v),
204 1 1. lambda$static$77 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$77 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().getFalsyBinAsString()
205
        )),
206
207
208
        // Exploit
209
        EXPLOIT(new JSyntaxTextArea(
210 1 1. lambda$static$78 : removed call to com/jsql/model/injection/vendor/model/yaml/Resource::setExploit → NO_COVERAGE
            v -> SqlEngine.modelYaml.getResource().setExploit(v),
211 1 1. lambda$static$79 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$79 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getResource().getExploit()
212
        )),
213
214
        // Fingerprint
215
        TRUTHY(new JSyntaxTextArea(
216 1 1. lambda$static$80 : removed call to com/jsql/model/injection/vendor/model/yaml/Test::setTruthyBit → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().setTruthyBit(v),
217 1 1. lambda$static$81 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$81 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().getTruthyBitAsString()
218
        )),
219
        FALSY(new JSyntaxTextArea(
220 1 1. lambda$static$82 : removed call to com/jsql/model/injection/vendor/model/yaml/Test::setFalsyBit → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().setFalsyBit(v),
221 1 1. lambda$static$83 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$83 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getBinary().getTest().getFalsyBitAsString()
222
        )),
223
        INCORRECT_STRING_ERROR_MESSAGE(new JSyntaxTextArea(
224 1 1. lambda$static$84 : removed call to com/jsql/model/injection/vendor/model/yaml/Fingerprint::setErrorMessageAsString → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().getFingerprint().setErrorMessageAsString(v),
225 1 1. lambda$static$85 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$85 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getFingerprint().getErrorMessageAsString()
226
        )),
227
        ORDER_BY_ERROR_MESSAGE(new JSyntaxTextArea(
228 1 1. lambda$static$86 : removed call to com/jsql/model/injection/vendor/model/yaml/Fingerprint::setOrderByErrorMessage → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().getFingerprint().setOrderByErrorMessage(v),
229 1 1. lambda$static$87 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$87 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getFingerprint().getOrderByErrorMessage()
230
        )),
231
        ORDER_BY(new JSyntaxTextArea(
232 1 1. lambda$static$88 : removed call to com/jsql/model/injection/vendor/model/yaml/Union::setOrderBy → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getUnion().setOrderBy(v),
233 1 1. lambda$static$89 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$89 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getUnion().getOrderBy()
234
        )),
235
        VENDOR_SPECIFIC(new JSyntaxTextArea(
236 1 1. lambda$static$90 : removed call to com/jsql/model/injection/vendor/model/yaml/Fingerprint::setVendorSpecific → NO_COVERAGE
            v -> SqlEngine.modelYaml.getStrategy().getConfiguration().getFingerprint().setVendorSpecific(v),
237 1 1. lambda$static$91 : replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$91 → NO_COVERAGE
            () -> SqlEngine.modelYaml.getStrategy().getConfiguration().getFingerprint().getVendorSpecific()
238
        )),
239
        ;
240
        
241
        final JSyntaxTextArea textarea;
242
243
        public JSyntaxTextArea getTextArea() {
244 1 1. getTextArea : replaced return value with null for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::getTextArea → NO_COVERAGE
            return this.textarea;
245
        }
246
247
        TextareaWithColor(JSyntaxTextArea textarea) {
248
            this.textarea = textarea;
249
        }
250
    }
251
    
252
    public SqlEngine() {
253
        // user can switch to another vendor then close, so restore current vendor
254
        SqlEngine.modelYaml = MediatorHelper.model().getMediatorVendor().getVendor().instance().getModelYaml();
255
256 1 1. <init> : removed call to com/jsql/view/swing/sql/SqlEngine::initTextComponents → NO_COVERAGE
        SqlEngine.initTextComponents();
257
258
        JTabbedPane panelStructure = this.getPanelStructure();
259
        RTextScrollPane panelFile = new RTextScrollPane(TextareaWithColor.EXPLOIT.getTextArea(), false);
260
        JTabbedPane panelStrategy = this.getPanelStrategy();
261
        JTabbedPane panelConfiguration = this.getPanelConfiguration();
262
        JTabbedPane panelFingerprinting = this.getPanelFingerprinting();
263
264
        JTabbedPane tabsBottom = new TabbedPaneWheeled(SwingConstants.BOTTOM);
265
        
266
        Stream.of(
267
            new SimpleEntry<>("SQLENGINE_STRUCTURE", panelStructure),
268
            new SimpleEntry<>("SQLENGINE_STRATEGY", panelStrategy),
269
            new SimpleEntry<>("SQLENGINE_CONFIGURATION", panelConfiguration),
270
            new SimpleEntry<>("SQLENGINE_FINGERPRINTING", panelFingerprinting),
271
            new SimpleEntry<>("SQLENGINE_EXPLOIT", panelFile)
272
        )
273 1 1. <init> : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(entry -> {
274 1 1. lambda$new$0 : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            tabsBottom.addTab(I18nUtil.valueByKey(entry.getKey()), entry.getValue());
275
            var label = new JLabel(I18nUtil.valueByKey(entry.getKey()));
276 1 1. lambda$new$0 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabsBottom.setTabComponentAt(
277
                tabsBottom.indexOfTab(I18nUtil.valueByKey(entry.getKey())),
278
                label
279
            );
280 1 1. lambda$new$0 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(entry.getKey(), label);
281
        });
282
283 1 1. <init> : removed call to com/jsql/view/swing/sql/SqlEngine::setLayout → NO_COVERAGE
        this.setLayout(new BorderLayout());
284
285
        JPanel panelCombo = SqlEngine.initMenuVendor();
286 1 1. <init> : removed call to javax/swing/JTabbedPane::putClientProperty → NO_COVERAGE
        tabsBottom.putClientProperty("JTabbedPane.trailingComponent", panelCombo);
287
        this.add(tabsBottom);
288
289 1 1. <init> : removed call to javax/swing/SwingUtilities::invokeLater → NO_COVERAGE
        SwingUtilities.invokeLater(() -> {
290 1 1. lambda$new$1 : removed call to com/jsql/view/swing/menubar/AppMenubar::switchLocale → NO_COVERAGE
            MediatorHelper.menubar().switchLocale(I18nUtil.getCurrentLocale());  // required for arabic
291 1 1. lambda$new$1 : removed call to javax/swing/JTabbedPane::updateUI → NO_COVERAGE
            SqlEngine.tabsError.updateUI();  // required for theme switch when tabs closed
292
        });
293
    }
294
295
    private JTabbedPane getPanelStructure() {
296
        final var keyDatabases = "SQLENGINE_DATABASES";
297
        final var keyTables = "SQLENGINE_TABLES";
298
        final var keyColumns = "SQLENGINE_COLUMNS";
299
        final var keyRows = "SQLENGINE_ROWS";
300
        final var keyField = "SQLENGINE_FIELD";
301
        final var keyFieldSeparator = "SQLENGINE_FIELDS_SEPARATOR";
302
303
        JTabbedPane tabsDefault = new TabbedPaneWheeled();
304
        Stream.of(
305
            new SimpleEntry<>(keyDatabases, TextareaWithColor.DATABASE_DEFAULT.getTextArea()),
306
            new SimpleEntry<>(keyTables, TextareaWithColor.TABLE_DEFAULT.getTextArea()),
307
            new SimpleEntry<>(keyColumns, TextareaWithColor.COLUMN_DEFAULT.getTextArea()),
308
            new SimpleEntry<>(keyRows, TextareaWithColor.QUERY_DEFAULT.getTextArea()),
309
            new SimpleEntry<>(keyField, TextareaWithColor.FIELD_DEFAULT.getTextArea()),
310
            new SimpleEntry<>(keyFieldSeparator, TextareaWithColor.CONCAT_DEFAULT.getTextArea()),
311
            new SimpleEntry<>("SQLENGINE_METADATA", TextareaWithColor.INFO.getTextArea())
312
        )
313 1 1. getPanelStructure : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(entry -> {
314 1 1. lambda$getPanelStructure$2 : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            tabsDefault.addTab(I18nUtil.valueByKey(entry.getKey()), new RTextScrollPane(entry.getValue(), false));
315
            var label = new JLabel(I18nUtil.valueByKey(entry.getKey()));
316 1 1. lambda$getPanelStructure$2 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabsDefault.setTabComponentAt(tabsDefault.indexOfTab(I18nUtil.valueByKey(entry.getKey())), label);
317 1 1. lambda$getPanelStructure$2 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(entry.getKey(), label);
318
        });
319
        
320
        JTabbedPane tabsZip = new TabbedPaneWheeled();
321
        Stream.of(
322
            new SimpleEntry<>(keyDatabases, TextareaWithColor.DATABASE_ZIP.getTextArea()),
323
            new SimpleEntry<>(keyTables, TextareaWithColor.TABLE_ZIP.getTextArea()),
324
            new SimpleEntry<>(keyColumns, TextareaWithColor.COLUMN_ZIP.getTextArea()),
325
            new SimpleEntry<>(keyRows, TextareaWithColor.QUERY_ZIP.getTextArea()),
326
            new SimpleEntry<>(keyField, TextareaWithColor.FIELD_ZIP.getTextArea()),
327
            new SimpleEntry<>(keyFieldSeparator, TextareaWithColor.CONCAT_ZIP.getTextArea())
328
        )
329 1 1. getPanelStructure : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(entry -> {
330 1 1. lambda$getPanelStructure$3 : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            tabsZip.addTab(I18nUtil.valueByKey(entry.getKey()), new RTextScrollPane(entry.getValue(), false));
331
            var label = new JLabel(I18nUtil.valueByKey(entry.getKey()));
332 1 1. lambda$getPanelStructure$3 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabsZip.setTabComponentAt(tabsZip.indexOfTab(I18nUtil.valueByKey(entry.getKey())), label);
333 1 1. lambda$getPanelStructure$3 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(entry.getKey(), label);
334
        });
335
        
336
        JTabbedPane tabsDios = new TabbedPaneWheeled();
337
        Stream.of(
338
            new SimpleEntry<>(keyDatabases, TextareaWithColor.DATABASE_DIOS.getTextArea()),
339
            new SimpleEntry<>(keyTables, TextareaWithColor.TABLE_DIOS.getTextArea()),
340
            new SimpleEntry<>(keyColumns, TextareaWithColor.COLUMN_DIOS.getTextArea()),
341
            new SimpleEntry<>(keyRows, TextareaWithColor.QUERY_DIOS.getTextArea()),
342
            new SimpleEntry<>(keyField, TextareaWithColor.FIELD_DIOS.getTextArea()),
343
            new SimpleEntry<>(keyFieldSeparator, TextareaWithColor.CONCAT_DIOS.getTextArea())
344
        )
345 1 1. getPanelStructure : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(entry -> {
346 1 1. lambda$getPanelStructure$4 : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            tabsDios.addTab(I18nUtil.valueByKey(entry.getKey()), new RTextScrollPane(entry.getValue(), false));
347
            var label = new JLabel(I18nUtil.valueByKey(entry.getKey()));
348 1 1. lambda$getPanelStructure$4 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabsDios.setTabComponentAt(tabsDios.indexOfTab(I18nUtil.valueByKey(entry.getKey())), label);
349 1 1. lambda$getPanelStructure$4 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(entry.getKey(), label);
350
        });
351
352
        JTabbedPane tabs = new TabbedPaneWheeled(SwingConstants.RIGHT);
353
        Stream.of(
354
            new SimpleEntry<>("SQLENGINE_STANDARD", tabsDefault),
355
            new SimpleEntry<>("SQLENGINE_ZIP", tabsZip),
356
            new SimpleEntry<>("SQLENGINE_DIOS", tabsDios)
357
        )
358 1 1. getPanelStructure : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(entry -> {
359 1 1. lambda$getPanelStructure$5 : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            tabs.addTab(I18nUtil.valueByKey(entry.getKey()), entry.getValue());
360
            var label = new JLabel(I18nUtil.valueByKey(entry.getKey()));
361 1 1. lambda$getPanelStructure$5 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabs.setTabComponentAt(tabs.indexOfTab(I18nUtil.valueByKey(entry.getKey())), label);
362 1 1. lambda$getPanelStructure$5 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(entry.getKey(), label);
363
        });
364 1 1. getPanelStructure : replaced return value with null for com/jsql/view/swing/sql/SqlEngine::getPanelStructure → NO_COVERAGE
        return tabs;
365
    }
366
367
    private JTabbedPane getPanelStrategy() {
368
        JTabbedPane tabs = new TabbedPaneWheeled();
369 1 1. getPanelStrategy : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab(I18nUtil.valueByKey("SQLENGINE_UNION"), new RTextScrollPane(TextareaWithColor.INDICES.getTextArea(), false));
370 1 1. getPanelStrategy : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab(I18nUtil.valueByKey("SQLENGINE_STACK"), new RTextScrollPane(TextareaWithColor.STACK.getTextArea(), false));
371 1 1. getPanelStrategy : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab(I18nUtil.valueByKey("SQLENGINE_ERROR"), SqlEngine.tabsError);
372 1 1. getPanelStrategy : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab(I18nUtil.valueByKey("SQLENGINE_DNS"), new RTextScrollPane(TextareaWithColor.DNS.getTextArea(), false));
373
374
        JTabbedPane tabsBoolean = new TabbedPaneWheeled(SwingConstants.RIGHT);
375
        Stream.of(
376
            new SimpleEntry<>("AND mode", TextareaWithColor.MODE_AND.getTextArea()),
377
            new SimpleEntry<>("OR mode", TextareaWithColor.MODE_OR.getTextArea()),
378
            new SimpleEntry<>("Stack mode", TextareaWithColor.MODE_STACK.getTextArea()),
379
            new SimpleEntry<>("Time", TextareaWithColor.TIME.getTextArea()),
380
            new SimpleEntry<>("Blind", TextareaWithColor.BLIND.getTextArea()),
381
            new SimpleEntry<>("Bin test", TextareaWithColor.TEST_BIN.getTextArea()),
382
            new SimpleEntry<>("Bin truthy", TextareaWithColor.TRUTHY_BIN.getTextArea()),
383
            new SimpleEntry<>("Bin falsy", TextareaWithColor.FALSY_BIN.getTextArea()),
384
            new SimpleEntry<>("Bit test", TextareaWithColor.TEST_BIT.getTextArea()),
385
            new SimpleEntry<>("Multibit", TextareaWithColor.MULTIBIT.getTextArea())
386
        )
387 1 1. getPanelStrategy : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(entry -> {
388 1 1. lambda$getPanelStrategy$6 : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            tabsBoolean.addTab(entry.getKey(), new RTextScrollPane(entry.getValue(), false));
389 1 1. lambda$getPanelStrategy$6 : removed call to javax/swing/JTabbedPane::setTitleAt → NO_COVERAGE
            tabsBoolean.setTitleAt(
390 1 1. lambda$getPanelStrategy$6 : Replaced integer subtraction with addition → NO_COVERAGE
                tabsBoolean.getTabCount() - 1,
391
                String.format(
392
                    "<html><div style=\"text-align:left;width:60px;\">%s</div></html>",
393
                    entry.getKey()
394
                )
395
            );
396
        });
397 1 1. getPanelStrategy : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab(I18nUtil.valueByKey("SQLENGINE_BOOLEAN"), tabsBoolean);
398
399
        Stream.of(
400
            "SQLENGINE_UNION",
401
            "SQLENGINE_STACK",
402
            "SQLENGINE_ERROR",
403
            "SQLENGINE_BOOLEAN"
404
        )
405 1 1. getPanelStrategy : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(keyI18n -> {
406
            var label = new JLabel(I18nUtil.valueByKey(keyI18n));
407 1 1. lambda$getPanelStrategy$7 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabs.setTabComponentAt(tabs.indexOfTab(I18nUtil.valueByKey(keyI18n)), label);
408 1 1. lambda$getPanelStrategy$7 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(keyI18n, label);
409
        });
410 1 1. getPanelStrategy : replaced return value with null for com/jsql/view/swing/sql/SqlEngine::getPanelStrategy → NO_COVERAGE
        return tabs;
411
    }
412
413
    private JTabbedPane getPanelConfiguration() {
414
        JTabbedPane tabs = new TabbedPaneWheeled();
415
        Stream.of(
416
            new SimpleEntry<>("SQLENGINE_CHARACTERS_SLIDINGWINDOW", new RTextScrollPane(TextareaWithColor.SLIDING_WINDOW.getTextArea(), false)),
417
            new SimpleEntry<>("SQLENGINE_ROWS_SLIDINGWINDOW", new RTextScrollPane(TextareaWithColor.LIMIT.getTextArea(), false)),
418
            new SimpleEntry<>("SQLENGINE_LIMIT_START_INDEX", new RTextScrollPane(TextareaWithColor.LIMIT_BOUNDARY.getTextArea(), false)),
419
            new SimpleEntry<>("SQLENGINE_CAPACITY", new RTextScrollPane(TextareaWithColor.CAPACITY.getTextArea(), false)),
420
            new SimpleEntry<>("SQLENGINE_CALIBRATOR", new RTextScrollPane(TextareaWithColor.CALIBRATOR.getTextArea(), false)),
421
            new SimpleEntry<>("SQLENGINE_FAILSAFE", new RTextScrollPane(TextareaWithColor.FAILSAFE.getTextArea(), false)),
422
            new SimpleEntry<>("SQLENGINE_END_COMMENT", new RTextScrollPane(TextareaWithColor.ENDING_COMMENT.getTextArea(), false))
423
        )
424 1 1. getPanelConfiguration : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(keyI18n -> {
425 1 1. lambda$getPanelConfiguration$8 : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            tabs.addTab(I18nUtil.valueByKey(keyI18n.getKey()), keyI18n.getValue());
426
            var label = new JLabel(I18nUtil.valueByKey(keyI18n.getKey()));
427 1 1. lambda$getPanelConfiguration$8 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabs.setTabComponentAt(tabs.indexOfTab(I18nUtil.valueByKey(keyI18n.getKey())), label);
428 1 1. lambda$getPanelConfiguration$8 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(keyI18n.getKey(), label);
429
        });
430 1 1. getPanelConfiguration : replaced return value with null for com/jsql/view/swing/sql/SqlEngine::getPanelConfiguration → NO_COVERAGE
        return tabs;
431
    }
432
    
433
    private JTabbedPane getPanelFingerprinting() {
434
        JTabbedPane tabs = new TabbedPaneWheeled();
435 1 1. getPanelFingerprinting : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab(I18nUtil.valueByKey("SQLENGINE_ORDER_BY"), new RTextScrollPane(TextareaWithColor.ORDER_BY.getTextArea(), false));
436 1 1. getPanelFingerprinting : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab("Order by error", new RTextScrollPane(TextareaWithColor.ORDER_BY_ERROR_MESSAGE.getTextArea(), false));
437 1 1. getPanelFingerprinting : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab("String error", new RTextScrollPane(TextareaWithColor.INCORRECT_STRING_ERROR_MESSAGE.getTextArea(), false));
438 1 1. getPanelFingerprinting : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab("Vendor specific", new RTextScrollPane(TextareaWithColor.VENDOR_SPECIFIC.getTextArea(), false));
439 1 1. getPanelFingerprinting : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab("Truthy", new RTextScrollPane(TextareaWithColor.TRUTHY.getTextArea(), false));
440 1 1. getPanelFingerprinting : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
        tabs.addTab("Falsy", new RTextScrollPane(TextareaWithColor.FALSY.getTextArea(), false));
441
        
442 1 1. getPanelFingerprinting : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        Stream.of("SQLENGINE_ORDER_BY").forEach(keyI18n -> {
443
            var label = new JLabel(I18nUtil.valueByKey(keyI18n));
444 1 1. lambda$getPanelFingerprinting$9 : removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE
            tabs.setTabComponentAt(tabs.indexOfTab(I18nUtil.valueByKey(keyI18n)), label);
445 1 1. lambda$getPanelFingerprinting$9 : removed call to com/jsql/view/swing/util/I18nViewUtil::addComponentForKey → NO_COVERAGE
            I18nViewUtil.addComponentForKey(keyI18n, label);
446
        });
447 1 1. getPanelFingerprinting : replaced return value with null for com/jsql/view/swing/sql/SqlEngine::getPanelFingerprinting → NO_COVERAGE
        return tabs;
448
    }
449
450
    private static JPanel initMenuVendor() {
451
        var panelMenuVendor = new JPanel();  // required for label on right
452 1 1. initMenuVendor : removed call to javax/swing/JPanel::setLayout → NO_COVERAGE
        panelMenuVendor.setLayout(new BorderLayout());
453
454
        JPopupMenu popupMenuVendors = new JPopupMenu();
455 1 1. initMenuVendor : removed call to javax/swing/JPopupMenu::setLayout → NO_COVERAGE
        popupMenuVendors.setLayout(UiUtil.getColumnLayout(MediatorHelper.model().getMediatorVendor().getVendors().size()));
456
457
        JLabel labelVendor = new JLabel(MediatorHelper.model().getMediatorVendor().getVendor().toString(), UiUtil.ARROW_DOWN.getIcon(), SwingConstants.LEFT);
458 1 1. initMenuVendor : removed call to javax/swing/JLabel::setBorder → NO_COVERAGE
        labelVendor.setBorder(UiUtil.BORDER_5PX);  // required for padding
459 1 1. initMenuVendor : removed call to javax/swing/JLabel::addMouseListener → NO_COVERAGE
        labelVendor.addMouseListener(new MouseAdapter() {
460
            @Override
461
            public void mousePressed(MouseEvent e) {
462 2 1. lambda$mousePressed$0 : replaced return value with null for com/jsql/view/swing/sql/SqlEngine$1::lambda$mousePressed$0 → NO_COVERAGE
2. mousePressed : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
                Arrays.stream(popupMenuVendors.getComponents()).map(a -> (JComponent) a).forEach(JComponent::updateUI);  // required: incorrect when dark/light mode switch
463 1 1. mousePressed : removed call to javax/swing/JPopupMenu::updateUI → NO_COVERAGE
                popupMenuVendors.updateUI();  // required: incorrect when dark/light mode switch
464 2 1. mousePressed : Replaced integer addition with subtraction → NO_COVERAGE
2. mousePressed : removed call to javax/swing/JPopupMenu::show → NO_COVERAGE
                popupMenuVendors.show(e.getComponent(), e.getComponent().getX(),e.getComponent().getY() + e.getComponent().getHeight());
465 2 1. mousePressed : Replaced integer addition with subtraction → NO_COVERAGE
2. mousePressed : removed call to javax/swing/JPopupMenu::setLocation → NO_COVERAGE
                popupMenuVendors.setLocation(e.getComponent().getLocationOnScreen().x,e.getComponent().getLocationOnScreen().y + e.getComponent().getHeight());
466
            }
467
        });
468
469
        List<Vendor> listVendors = new LinkedList<>(MediatorHelper.model().getMediatorVendor().getVendors());
470 2 1. lambda$initMenuVendor$10 : replaced boolean return with true for com/jsql/view/swing/sql/SqlEngine::lambda$initMenuVendor$10 → NO_COVERAGE
2. lambda$initMenuVendor$10 : negated conditional → NO_COVERAGE
        listVendors.removeIf(vendor -> vendor == MediatorHelper.model().getMediatorVendor().getAuto());
471
472
        var groupVendor = new ButtonGroup();
473
        for (final Vendor vendor: listVendors) {
474
            JMenuItem itemRadioVendor = new JRadioButtonMenuItem(
475
                vendor.toString(),
476 1 1. initMenuVendor : negated conditional → NO_COVERAGE
                vendor == MediatorHelper.model().getMediatorVendor().getVendor()
477
            );
478
            
479 1 1. initMenuVendor : removed call to javax/swing/JMenuItem::addActionListener → NO_COVERAGE
            itemRadioVendor.addActionListener(actionEvent -> {
480
                SqlEngine.modelYaml = vendor.instance().getModelYaml();
481 1 1. lambda$initMenuVendor$11 : removed call to com/jsql/view/swing/sql/SqlEngine::initTextComponents → NO_COVERAGE
                SqlEngine.initTextComponents();
482 1 1. lambda$initMenuVendor$11 : removed call to javax/swing/JLabel::setText → NO_COVERAGE
                labelVendor.setText(vendor.toString());
483
            });
484
            
485 1 1. initMenuVendor : removed call to javax/swing/ButtonGroup::add → NO_COVERAGE
            groupVendor.add(itemRadioVendor);
486
            popupMenuVendors.add(itemRadioVendor);
487
        }
488
        
489 1 1. initMenuVendor : removed call to javax/swing/JPanel::add → NO_COVERAGE
        panelMenuVendor.add(labelVendor, BorderLayout.LINE_END);  // required to set on right
490 1 1. initMenuVendor : replaced return value with null for com/jsql/view/swing/sql/SqlEngine::initMenuVendor → NO_COVERAGE
        return panelMenuVendor;
491
    }
492
    
493
    /**
494
     * Configure all text components with new coloring and new modelYaml setter.
495
     */
496
    private static void initTextComponents() {
497 1 1. initTextComponents : removed call to java/util/List::forEach → NO_COVERAGE
        SqlEngine.getTextareas().forEach(SqlEngine::reset);
498 2 1. initTextComponents : removed call to java/util/List::forEach → NO_COVERAGE
2. lambda$initTextComponents$12 : removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setText → NO_COVERAGE
        SqlEngine.getTextareas().forEach(textPaneLexer -> textPaneLexer.setText(StringUtils.EMPTY));
499
500
        Stream.of(TextareaWithColor.values())
501 1 1. lambda$initTextComponents$13 : replaced return value with null for com/jsql/view/swing/sql/SqlEngine::lambda$initTextComponents$13 → NO_COVERAGE
        .map(textareaWithColor -> textareaWithColor.textarea)
502 1 1. initTextComponents : removed call to java/util/stream/Stream::forEach → NO_COVERAGE
        .forEach(textArea -> {
503 1 1. lambda$initTextComponents$14 : removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setText → NO_COVERAGE
            textArea.setText(textArea.getSupplierGetter().get().trim());
504 1 1. lambda$initTextComponents$14 : removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setCaretPosition → NO_COVERAGE
            textArea.setCaretPosition(0);
505
        });
506
507 1 1. initTextComponents : removed call to com/jsql/view/swing/sql/SqlEngine::populateTabError → NO_COVERAGE
        SqlEngine.populateTabError();
508 1 1. initTextComponents : removed call to com/jsql/view/swing/sql/SqlEngine::applyTheme → NO_COVERAGE
        SqlEngine.applyTheme();
509
    }
510
511
    public static void applyTheme() {
512 1 1. applyTheme : removed call to java/util/List::forEach → NO_COVERAGE
        SqlEngine.getTextareas().forEach(UiUtil::applySyntaxTheme);
513
    }
514
515
    /**
516
     * Dynamically add textPanes to Error tab for current vendor.
517
     */
518
    private static void populateTabError() {
519 1 1. populateTabError : removed call to javax/swing/JTabbedPane::removeAll → NO_COVERAGE
        SqlEngine.tabsError.removeAll();
520
521 1 1. populateTabError : negated conditional → NO_COVERAGE
        if (SqlEngine.modelYaml.getStrategy().getError() == null) {
522
            return;
523
        }
524
            
525
        for (Method methodError: SqlEngine.modelYaml.getStrategy().getError().getMethod()) {
526
            var panelError = new JPanel(new BorderLayout());
527
528
            var textareaError = new JSyntaxTextArea(methodError::setQuery, methodError::getQuery);
529 1 1. populateTabError : removed call to com/jsql/view/swing/sql/SqlEngine::reset → NO_COVERAGE
            SqlEngine.reset(textareaError);
530 1 1. populateTabError : removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setText → NO_COVERAGE
            textareaError.setText(methodError.getQuery().trim());
531 1 1. populateTabError : removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setCaretPosition → NO_COVERAGE
            textareaError.setCaretPosition(0);
532 1 1. populateTabError : removed call to javax/swing/JPanel::add → NO_COVERAGE
            panelError.add(new RTextScrollPane(textareaError, false), BorderLayout.CENTER);
533
            
534
            var panelLimit = new JPanel();  // TODO Integrate Error limit
535 1 1. populateTabError : removed call to javax/swing/JPanel::setLayout → NO_COVERAGE
            panelLimit.setLayout(new BoxLayout(panelLimit, BoxLayout.LINE_AXIS));
536
            panelLimit.add(new JLabel(" Overflow limit: "));
537
            panelLimit.add(new JTextField(Integer.toString(methodError.getCapacity())));
538 1 1. populateTabError : removed call to javax/swing/JPanel::add → NO_COVERAGE
            panelError.add(panelLimit, BorderLayout.SOUTH);
539
540 1 1. populateTabError : removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE
            SqlEngine.tabsError.addTab(methodError.getName(), panelError);
541 1 1. populateTabError : removed call to javax/swing/JTabbedPane::setTitleAt → NO_COVERAGE
            SqlEngine.tabsError.setTitleAt(
542 1 1. populateTabError : Replaced integer subtraction with addition → NO_COVERAGE
                SqlEngine.tabsError.getTabCount() - 1,
543
                String.format(
544
                    "<html><div style=\"text-align:left;width:100px;\">%s</div></html>",
545
                    methodError.getName()
546
                )
547
            );
548
            SqlEngine.listTextareasError.add(textareaError);
549
        }
550
    }
551
    
552
    /**
553
     * Reset the textarea colorer.
554
     * @param textarea which colorer will be reset.
555
     */
556
    private static void reset(JSyntaxTextArea textarea) {
557 1 1. reset : removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setDocument → NO_COVERAGE
        textarea.setDocument(new RSyntaxDocument(SyntaxConstants.SYNTAX_STYLE_SQL));  // required else empty on reopen
558 1 1. reset : removed call to javax/swing/text/Document::addDocumentListener → NO_COVERAGE
        textarea.getDocument().addDocumentListener(new DocumentListenerEditing() {
559
            @Override
560
            public void process() {
561 1 1. process : removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setAttribute → NO_COVERAGE
                textarea.setAttribute();
562
            }
563
        });
564
    }
565
    
566
    /**
567
     * Merge list of Error textPanes and list of other textAreas.
568
     * @return the merged list
569
     */
570
    private static List<JSyntaxTextArea> getTextareas() {
571 1 1. getTextareas : replaced return value with Collections.emptyList for com/jsql/view/swing/sql/SqlEngine::getTextareas → NO_COVERAGE
        return Stream.concat(
572
            SqlEngine.listTextareasError.stream(),
573
            Stream.of(TextareaWithColor.values()).map(TextareaWithColor::getTextArea)
574
        )
575
        .collect(Collectors.toList());
576
    }
577
}

Mutations

39

1.1
Location : lambda$static$0
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setDatabase → NO_COVERAGE

40

1.1
Location : lambda$static$1
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$1 → NO_COVERAGE

43

1.1
Location : lambda$static$2
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setTable → NO_COVERAGE

44

1.1
Location : lambda$static$3
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$3 → NO_COVERAGE

47

1.1
Location : lambda$static$4
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setColumn → NO_COVERAGE

48

1.1
Location : lambda$static$5
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$5 → NO_COVERAGE

51

1.1
Location : lambda$static$6
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Row::setQuery → NO_COVERAGE

52

1.1
Location : lambda$static$7
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$7 → NO_COVERAGE

55

1.1
Location : lambda$static$8
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setField → NO_COVERAGE

56

1.1
Location : lambda$static$9
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$9 → NO_COVERAGE

59

1.1
Location : lambda$static$10
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setConcat → NO_COVERAGE

60

1.1
Location : lambda$static$11
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$11 → NO_COVERAGE

65

1.1
Location : lambda$static$12
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setDatabase → NO_COVERAGE

66

1.1
Location : lambda$static$13
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$13 → NO_COVERAGE

69

1.1
Location : lambda$static$14
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setTable → NO_COVERAGE

70

1.1
Location : lambda$static$15
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$15 → NO_COVERAGE

73

1.1
Location : lambda$static$16
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setColumn → NO_COVERAGE

74

1.1
Location : lambda$static$17
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$17 → NO_COVERAGE

77

1.1
Location : lambda$static$18
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Row::setQuery → NO_COVERAGE

78

1.1
Location : lambda$static$19
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$19 → NO_COVERAGE

81

1.1
Location : lambda$static$20
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setField → NO_COVERAGE

82

1.1
Location : lambda$static$21
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$21 → NO_COVERAGE

85

1.1
Location : lambda$static$22
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setConcat → NO_COVERAGE

86

1.1
Location : lambda$static$23
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$23 → NO_COVERAGE

91

1.1
Location : lambda$static$24
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setDatabase → NO_COVERAGE

92

1.1
Location : lambda$static$25
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$25 → NO_COVERAGE

95

1.1
Location : lambda$static$26
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setTable → NO_COVERAGE

96

1.1
Location : lambda$static$27
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$27 → NO_COVERAGE

99

1.1
Location : lambda$static$28
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Schema::setColumn → NO_COVERAGE

100

1.1
Location : lambda$static$29
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$29 → NO_COVERAGE

103

1.1
Location : lambda$static$30
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Row::setQuery → NO_COVERAGE

104

1.1
Location : lambda$static$31
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$31 → NO_COVERAGE

107

1.1
Location : lambda$static$32
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setField → NO_COVERAGE

108

1.1
Location : lambda$static$33
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$33 → NO_COVERAGE

111

1.1
Location : lambda$static$34
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fields::setConcat → NO_COVERAGE

112

1.1
Location : lambda$static$35
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$35 → NO_COVERAGE

116

1.1
Location : lambda$static$36
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Resource::setInfo → NO_COVERAGE

117

1.1
Location : lambda$static$37
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$37 → NO_COVERAGE

122

1.1
Location : lambda$static$38
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setSlidingWindow → NO_COVERAGE

123

1.1
Location : lambda$static$39
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$39 → NO_COVERAGE

126

1.1
Location : lambda$static$40
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setLimit → NO_COVERAGE

127

1.1
Location : lambda$static$41
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$41 → NO_COVERAGE

130

1.1
Location : lambda$static$42
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setFailsafe → NO_COVERAGE

131

1.1
Location : lambda$static$43
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$43 → NO_COVERAGE

134

1.1
Location : lambda$static$44
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setCalibrator → NO_COVERAGE

135

1.1
Location : lambda$static$45
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$45 → NO_COVERAGE

138

1.1
Location : lambda$static$46
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setEndingComment → NO_COVERAGE

139

1.1
Location : lambda$static$47
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$47 → NO_COVERAGE

142

1.1
Location : lambda$static$48
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Configuration::setLimitBoundary → NO_COVERAGE

143

1.1
Location : lambda$static$49
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$49 → NO_COVERAGE

148

1.1
Location : lambda$static$50
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Union::setIndices → NO_COVERAGE

149

1.1
Location : lambda$static$51
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$51 → NO_COVERAGE

152

1.1
Location : lambda$static$52
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Union::setCapacity → NO_COVERAGE

153

1.1
Location : lambda$static$53
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$53 → NO_COVERAGE

157

1.1
Location : lambda$static$54
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Strategy::setStack → NO_COVERAGE

158

1.1
Location : lambda$static$55
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$55 → NO_COVERAGE

161

1.1
Location : lambda$static$56
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Strategy::setDns → NO_COVERAGE

162

1.1
Location : lambda$static$57
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$57 → NO_COVERAGE

167

1.1
Location : lambda$static$58
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setModeAnd → NO_COVERAGE

168

1.1
Location : lambda$static$59
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$59 → NO_COVERAGE

171

1.1
Location : lambda$static$60
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setModeOr → NO_COVERAGE

172

1.1
Location : lambda$static$61
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$61 → NO_COVERAGE

175

1.1
Location : lambda$static$62
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setModeStack → NO_COVERAGE

176

1.1
Location : lambda$static$63
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$63 → NO_COVERAGE

179

1.1
Location : lambda$static$64
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setBlind → NO_COVERAGE

180

1.1
Location : lambda$static$65
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$65 → NO_COVERAGE

183

1.1
Location : lambda$static$66
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setTime → NO_COVERAGE

184

1.1
Location : lambda$static$67
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$67 → NO_COVERAGE

187

1.1
Location : lambda$static$68
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Binary::setMultibit → NO_COVERAGE

188

1.1
Location : lambda$static$69
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$69 → NO_COVERAGE

191

1.1
Location : lambda$static$70
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Test::setBit → NO_COVERAGE

192

1.1
Location : lambda$static$71
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$71 → NO_COVERAGE

195

1.1
Location : lambda$static$72
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Test::setBin → NO_COVERAGE

196

1.1
Location : lambda$static$73
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$73 → NO_COVERAGE

199

1.1
Location : lambda$static$74
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Test::setTruthyBin → NO_COVERAGE

200

1.1
Location : lambda$static$75
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$75 → NO_COVERAGE

203

1.1
Location : lambda$static$76
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Test::setFalsyBin → NO_COVERAGE

204

1.1
Location : lambda$static$77
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$77 → NO_COVERAGE

210

1.1
Location : lambda$static$78
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Resource::setExploit → NO_COVERAGE

211

1.1
Location : lambda$static$79
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$79 → NO_COVERAGE

216

1.1
Location : lambda$static$80
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Test::setTruthyBit → NO_COVERAGE

217

1.1
Location : lambda$static$81
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$81 → NO_COVERAGE

220

1.1
Location : lambda$static$82
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Test::setFalsyBit → NO_COVERAGE

221

1.1
Location : lambda$static$83
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$83 → NO_COVERAGE

224

1.1
Location : lambda$static$84
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fingerprint::setErrorMessageAsString → NO_COVERAGE

225

1.1
Location : lambda$static$85
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$85 → NO_COVERAGE

228

1.1
Location : lambda$static$86
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fingerprint::setOrderByErrorMessage → NO_COVERAGE

229

1.1
Location : lambda$static$87
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$87 → NO_COVERAGE

232

1.1
Location : lambda$static$88
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Union::setOrderBy → NO_COVERAGE

233

1.1
Location : lambda$static$89
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$89 → NO_COVERAGE

236

1.1
Location : lambda$static$90
Killed by : none
removed call to com/jsql/model/injection/vendor/model/yaml/Fingerprint::setVendorSpecific → NO_COVERAGE

237

1.1
Location : lambda$static$91
Killed by : none
replaced return value with "" for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::lambda$static$91 → NO_COVERAGE

244

1.1
Location : getTextArea
Killed by : none
replaced return value with null for com/jsql/view/swing/sql/SqlEngine$TextareaWithColor::getTextArea → NO_COVERAGE

256

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/sql/SqlEngine::initTextComponents → NO_COVERAGE

273

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

274

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

276

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

280

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

283

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

286

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

289

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

290

1.1
Location : lambda$new$1
Killed by : none
removed call to com/jsql/view/swing/menubar/AppMenubar::switchLocale → NO_COVERAGE

291

1.1
Location : lambda$new$1
Killed by : none
removed call to javax/swing/JTabbedPane::updateUI → NO_COVERAGE

313

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

314

1.1
Location : lambda$getPanelStructure$2
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

316

1.1
Location : lambda$getPanelStructure$2
Killed by : none
removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE

317

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

329

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

330

1.1
Location : lambda$getPanelStructure$3
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

332

1.1
Location : lambda$getPanelStructure$3
Killed by : none
removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE

333

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

345

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

346

1.1
Location : lambda$getPanelStructure$4
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

348

1.1
Location : lambda$getPanelStructure$4
Killed by : none
removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE

349

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

358

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

359

1.1
Location : lambda$getPanelStructure$5
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

361

1.1
Location : lambda$getPanelStructure$5
Killed by : none
removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE

362

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

364

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

369

1.1
Location : getPanelStrategy
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

370

1.1
Location : getPanelStrategy
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

371

1.1
Location : getPanelStrategy
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

372

1.1
Location : getPanelStrategy
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

387

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

388

1.1
Location : lambda$getPanelStrategy$6
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

389

1.1
Location : lambda$getPanelStrategy$6
Killed by : none
removed call to javax/swing/JTabbedPane::setTitleAt → NO_COVERAGE

390

1.1
Location : lambda$getPanelStrategy$6
Killed by : none
Replaced integer subtraction with addition → NO_COVERAGE

397

1.1
Location : getPanelStrategy
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

405

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

407

1.1
Location : lambda$getPanelStrategy$7
Killed by : none
removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE

408

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

410

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

424

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

425

1.1
Location : lambda$getPanelConfiguration$8
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

427

1.1
Location : lambda$getPanelConfiguration$8
Killed by : none
removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE

428

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

430

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

435

1.1
Location : getPanelFingerprinting
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

436

1.1
Location : getPanelFingerprinting
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

437

1.1
Location : getPanelFingerprinting
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

438

1.1
Location : getPanelFingerprinting
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

439

1.1
Location : getPanelFingerprinting
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

440

1.1
Location : getPanelFingerprinting
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

442

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

444

1.1
Location : lambda$getPanelFingerprinting$9
Killed by : none
removed call to javax/swing/JTabbedPane::setTabComponentAt → NO_COVERAGE

445

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

447

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

452

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

455

1.1
Location : initMenuVendor
Killed by : none
removed call to javax/swing/JPopupMenu::setLayout → NO_COVERAGE

458

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

459

1.1
Location : initMenuVendor
Killed by : none
removed call to javax/swing/JLabel::addMouseListener → NO_COVERAGE

462

1.1
Location : lambda$mousePressed$0
Killed by : none
replaced return value with null for com/jsql/view/swing/sql/SqlEngine$1::lambda$mousePressed$0 → NO_COVERAGE

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

463

1.1
Location : mousePressed
Killed by : none
removed call to javax/swing/JPopupMenu::updateUI → NO_COVERAGE

464

1.1
Location : mousePressed
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

2.2
Location : mousePressed
Killed by : none
removed call to javax/swing/JPopupMenu::show → NO_COVERAGE

465

1.1
Location : mousePressed
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

2.2
Location : mousePressed
Killed by : none
removed call to javax/swing/JPopupMenu::setLocation → NO_COVERAGE

470

1.1
Location : lambda$initMenuVendor$10
Killed by : none
replaced boolean return with true for com/jsql/view/swing/sql/SqlEngine::lambda$initMenuVendor$10 → NO_COVERAGE

2.2
Location : lambda$initMenuVendor$10
Killed by : none
negated conditional → NO_COVERAGE

476

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

479

1.1
Location : initMenuVendor
Killed by : none
removed call to javax/swing/JMenuItem::addActionListener → NO_COVERAGE

481

1.1
Location : lambda$initMenuVendor$11
Killed by : none
removed call to com/jsql/view/swing/sql/SqlEngine::initTextComponents → NO_COVERAGE

482

1.1
Location : lambda$initMenuVendor$11
Killed by : none
removed call to javax/swing/JLabel::setText → NO_COVERAGE

485

1.1
Location : initMenuVendor
Killed by : none
removed call to javax/swing/ButtonGroup::add → NO_COVERAGE

489

1.1
Location : initMenuVendor
Killed by : none
removed call to javax/swing/JPanel::add → NO_COVERAGE

490

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

497

1.1
Location : initTextComponents
Killed by : none
removed call to java/util/List::forEach → NO_COVERAGE

498

1.1
Location : initTextComponents
Killed by : none
removed call to java/util/List::forEach → NO_COVERAGE

2.2
Location : lambda$initTextComponents$12
Killed by : none
removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setText → NO_COVERAGE

501

1.1
Location : lambda$initTextComponents$13
Killed by : none
replaced return value with null for com/jsql/view/swing/sql/SqlEngine::lambda$initTextComponents$13 → NO_COVERAGE

502

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

503

1.1
Location : lambda$initTextComponents$14
Killed by : none
removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setText → NO_COVERAGE

504

1.1
Location : lambda$initTextComponents$14
Killed by : none
removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setCaretPosition → NO_COVERAGE

507

1.1
Location : initTextComponents
Killed by : none
removed call to com/jsql/view/swing/sql/SqlEngine::populateTabError → NO_COVERAGE

508

1.1
Location : initTextComponents
Killed by : none
removed call to com/jsql/view/swing/sql/SqlEngine::applyTheme → NO_COVERAGE

512

1.1
Location : applyTheme
Killed by : none
removed call to java/util/List::forEach → NO_COVERAGE

519

1.1
Location : populateTabError
Killed by : none
removed call to javax/swing/JTabbedPane::removeAll → NO_COVERAGE

521

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

529

1.1
Location : populateTabError
Killed by : none
removed call to com/jsql/view/swing/sql/SqlEngine::reset → NO_COVERAGE

530

1.1
Location : populateTabError
Killed by : none
removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setText → NO_COVERAGE

531

1.1
Location : populateTabError
Killed by : none
removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setCaretPosition → NO_COVERAGE

532

1.1
Location : populateTabError
Killed by : none
removed call to javax/swing/JPanel::add → NO_COVERAGE

535

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

538

1.1
Location : populateTabError
Killed by : none
removed call to javax/swing/JPanel::add → NO_COVERAGE

540

1.1
Location : populateTabError
Killed by : none
removed call to javax/swing/JTabbedPane::addTab → NO_COVERAGE

541

1.1
Location : populateTabError
Killed by : none
removed call to javax/swing/JTabbedPane::setTitleAt → NO_COVERAGE

542

1.1
Location : populateTabError
Killed by : none
Replaced integer subtraction with addition → NO_COVERAGE

557

1.1
Location : reset
Killed by : none
removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setDocument → NO_COVERAGE

558

1.1
Location : reset
Killed by : none
removed call to javax/swing/text/Document::addDocumentListener → NO_COVERAGE

561

1.1
Location : process
Killed by : none
removed call to com/jsql/view/swing/sql/JSyntaxTextArea::setAttribute → NO_COVERAGE

571

1.1
Location : getTextareas
Killed by : none
replaced return value with Collections.emptyList for com/jsql/view/swing/sql/SqlEngine::getTextareas → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.22.0