TestFramework.java

1
package com.renomad.minum.testing;
2
3
import com.renomad.minum.state.Constants;
4
import com.renomad.minum.state.Context;
5
import com.renomad.minum.logging.TestLogger;
6
import com.renomad.minum.queue.ActionQueueKiller;
7
import com.renomad.minum.utils.ThrowingRunnable;
8
import com.renomad.minum.web.FullSystem;
9
10
import java.util.List;
11
import java.util.Properties;
12
import java.util.concurrent.Executors;
13
14
/**
15
 * These are utility functions for basic automated
16
 * testing.  It turns out you don't really need fancy tools
17
 * to do excellent testing.  Just a commitment to
18
 * quality.  Don't let anyone tell you differently.
19
 * <br>
20
 * Hint: A common pattern you will use before testing is to initialize the {@link Context} object
21
 * using {@link #buildTestingContext}.
22
 */
23
public final class TestFramework {
24
25
    private TestFramework() {
26
        // making this private to be clearer it isn't supposed to be instantiated.
27
    }
28
29
    /**
30
     * assert that a particular chunk of code throws a particular
31
     * exception.
32
     * <p>
33
     *     Example usage:
34
     * </p>
35
     * <pre>
36
     *   {@code
37
     *   assertThrows(TemplateRenderException.class,
38
     *       "Missing a value for key {missing_key}",
39
     *       () -> tp.renderTemplate(myMap));
40
     *   }
41
     * </pre>
42
     */
43
    public static <T> T assertThrows(Class<T> myEx, ThrowingRunnable r) {
44 1 1. assertThrows : replaced return value with null for com/renomad/minum/testing/TestFramework::assertThrows → KILLED
        return assertThrows(myEx, null, r);
45
    }
46
47
    // quick note about the warning suppression - we already checked that the
48
    // case will be valid, when we checked if (!myEx.isInstance(ex)).
49
    @SuppressWarnings("unchecked")
50
    public static <T> T assertThrows(Class<T> myEx, String expectedMsg, ThrowingRunnable r) {
51
        try {
52 1 1. assertThrows : removed call to com/renomad/minum/utils/ThrowingRunnable::run → KILLED
            r.run();
53
            throw new TestFailureException("Failed to throw exception");
54
        } catch (Exception ex) {
55 1 1. assertThrows : negated conditional → KILLED
            if (!myEx.getTypeName().equals(ex.getClass().getTypeName())) {
56
                String msg = String.format("This did not throw the expected exception type (%s).  Instead, (%s) was thrown", myEx, ex);
57
                throw new TestFailureException(msg, ex);
58
            }
59 2 1. assertThrows : negated conditional → KILLED
2. assertThrows : negated conditional → KILLED
            if (expectedMsg != null && !ex.getMessage().equals(expectedMsg)) {
60
                String msg = String.format("Did not get expected message (%s). Instead, got: %s", expectedMsg, ex.getMessage());
61
                throw new TestFailureException(msg, ex);
62
            }
63 1 1. assertThrows : replaced return value with null for com/renomad/minum/testing/TestFramework::assertThrows → KILLED
            return (T) ex;
64
        }
65
66
    }
67
68
    /**
69
     * A helper for testing - assert two generics are equal.  If you
70
     * need to compare two byte arrays, see {@link #assertEqualByteArray(byte[], byte[])}
71
     */
72
    public static <T> void assertEquals(T left, T right) {
73 2 1. assertEquals : negated conditional → KILLED
2. assertEquals : negated conditional → KILLED
        if (left == null || right == null) throw new TestFailureException("This assertion does not allow checking against null.  Use a form like assertTrue(a == null).  left was %s and right was %s".formatted(left, right));
74 1 1. assertEquals : negated conditional → KILLED
        if (! left.equals(right)) {
75
            throw new TestFailureException("Not equal! %nleft:  %s %nright: %s".formatted(showWhiteSpace(String.valueOf(left)), showWhiteSpace(String.valueOf(right))));
76
        }
77
    }
78
79
    /**
80
     * asserts that two lists are equal in value and order.
81
     * <br><br>
82
     * For example, (a, b) is equal to (a, b)
83
     * Does not expect null as an input value.
84
     * Two empty lists are considered equal.
85
     */
86
    public static <T> void assertEquals(List<T> left, List<T> right) {
87 1 1. assertEquals : removed call to com/renomad/minum/testing/TestFramework::assertEquals → KILLED
        assertEquals(left, right, "");
88
    }
89
90
    /**
91
     * asserts that two lists are equal in value and order.
92
     * <br><br>
93
     * For example, (a, b) is equal to (a, b)
94
     * Does not expect null as an input value.
95
     * Two empty lists are considered equal.
96
     * <br><br>
97
     * @param failureMessage a failureMessage that should be shown if this assertion fails
98
     */
99
    public static <T> void assertEquals(List<T> left, List<T> right, String failureMessage) {
100 2 1. assertEquals : negated conditional → KILLED
2. assertEquals : negated conditional → KILLED
        if (left == null || right == null) throw new TestFailureException("This assertion does not allow checking against null.  Use a form like assertTrue(a == null).  left was %s and right was %s".formatted(left, right));
101 1 1. assertEquals : negated conditional → KILLED
        if (left.size() != right.size()) {
102
            throw new TestFailureException(
103
                    String.format("different sizes: left was %d, right was %d. %s", left.size(), right.size(), failureMessage));
104
        }
105 2 1. assertEquals : negated conditional → KILLED
2. assertEquals : changed conditional boundary → KILLED
        for (int i = 0; i < left.size(); i++) {
106 1 1. assertEquals : negated conditional → KILLED
            if (!left.get(i).equals(right.get(i))) {
107
                throw new TestFailureException(
108
                        String.format("different values - left: \"%s\" right: \"%s\". %s", showWhiteSpace(String.valueOf(left.get(i))), showWhiteSpace(String.valueOf(right.get(i))), failureMessage));
109
            }
110
        }
111
    }
112
113
    /**
114
     * Compares two byte arrays for equality
115
     */
116
    public static void assertEqualByteArray(byte[] left, byte[] right) {
117 2 1. assertEqualByteArray : negated conditional → KILLED
2. assertEqualByteArray : negated conditional → KILLED
        if (left == null || right == null) throw new TestFailureException("This assertion does not allow checking against null.  Use a form like assertTrue(a == null).  left was %s and right was %s".formatted(left, right));
118 1 1. assertEqualByteArray : negated conditional → KILLED
        if (left.length != right.length) throw new TestFailureException("Not equal! left length: %d right length: %d".formatted(left.length, right.length));
119 2 1. assertEqualByteArray : changed conditional boundary → KILLED
2. assertEqualByteArray : negated conditional → KILLED
        for (int i = 0; i < left.length; i++) {
120 1 1. assertEqualByteArray : negated conditional → KILLED
            if (left[i] != right[i]) throw new TestFailureException("Not equal! at index %d left was: %d right was: %d".formatted(i, left[i], right[i]));
121
        }
122
    }
123
124
    public static void assertEqualByteArray(byte[] left, byte[] right, String failureMessage) {
125
        try {
126 1 1. assertEqualByteArray : removed call to com/renomad/minum/testing/TestFramework::assertEqualByteArray → KILLED
            assertEqualByteArray(left, right);
127
        } catch (TestFailureException ex) {
128
            throw new TestFailureException(ex.getMessage() + ". " + failureMessage);
129
        }
130
    }
131
132
    /**
133
     * asserts two lists are equal, ignoring the order.
134
     * For example, (a, b) is equal to (b, a)
135
     * <p>
136
     * Note that the lists must be of comparable objects, or else
137
     * a ClassCastException will be thrown
138
     */
139
    public static void assertEqualsDisregardOrder(List<? extends CharSequence> left, List<? extends CharSequence> right) {
140 2 1. assertEqualsDisregardOrder : negated conditional → KILLED
2. assertEqualsDisregardOrder : negated conditional → KILLED
        if (left == null || right == null) throw new TestFailureException("This assertion does not allow checking against null.  Use a form like assertTrue(a == null).  left was %s and right was %s".formatted(left, right));
141 1 1. assertEqualsDisregardOrder : negated conditional → KILLED
        if (left.size() != right.size()) {
142
            throw new TestFailureException(String.format("different sizes: left was %d, right was %d%n", left.size(), right.size()));
143
        }
144
        List<? extends CharSequence> orderedLeft = left.stream().sorted().toList();
145
        List<? extends CharSequence> orderedRight = right.stream().sorted().toList();
146
147 2 1. assertEqualsDisregardOrder : changed conditional boundary → KILLED
2. assertEqualsDisregardOrder : negated conditional → KILLED
        for (int i = 0; i < left.size(); i++) {
148 1 1. assertEqualsDisregardOrder : negated conditional → KILLED
            if (!String.valueOf(orderedLeft.get(i)).contentEquals(orderedRight.get(i))) {
149
                throw new TestFailureException(
150
                        String.format(
151
                                "%n%ndifferent values:%n%nleft:  %s%nright: %s%n%nfull left:%n-----------%n%s%n%nfull right:%n-----------%n%s%n",
152
                                orderedLeft.get(i),
153
                                orderedRight.get(i),
154
                                String.join("\n", showWhiteSpace(String.valueOf(left))),
155
                                String.join("\n", showWhiteSpace(String.valueOf(right)))));
156
            }
157
        }
158
    }
159
160
    public static void assertEqualsDisregardOrder(List<? extends CharSequence> left, List<? extends CharSequence> right, String failureMessage) {
161
        try {
162 1 1. assertEqualsDisregardOrder : removed call to com/renomad/minum/testing/TestFramework::assertEqualsDisregardOrder → KILLED
            assertEqualsDisregardOrder(left, right);
163
        } catch (TestFailureException ex) {
164
            throw new TestFailureException(ex.getMessage() + ". " + failureMessage);
165
        }
166
    }
167
168
    public static void assertTrue(boolean value) {
169 1 1. assertTrue : removed call to com/renomad/minum/testing/TestFramework::assertTrue → TIMED_OUT
      assertTrue(value, "");
170
    }
171
172
    /**
173
     * Assert that something is true, and show a message if it fails. This
174
     * is also handy for including a kind of documentation in your test
175
     * code.  So, please carefully note this example of its use, because
176
     * there's a certain subtlety at play:
177
     * <p>
178
     *     <pre>
179
     *      {@code assertTrue(foo == true, "foo must be true");}
180
     *     </pre>
181
     * </p>
182
     * <p>
183
     * Notice something here: The message is a statement about what *should*
184
     * be true.  Sometimes, I see people who do it wrong here - they
185
     * add a message like *foo was wrong*, but that's a disconcerting
186
     * thing to see in a test.  Do it like the example above, instead.
187
     * </p>
188
     * <p>
189
     *     One other detail to mention: If this test fails, it doesn't really
190
     *     give you much help about what the value should have been, it merely
191
     *     insists it be true.  In some cases, like where you are
192
     *     asserting that a string contains a substring, it is handy to include
193
     *     what you were looking for and what the string was as part of the
194
     *     failure message.
195
     * </p>
196
     */
197
    public static void assertTrue(boolean value, String failureMessage) {
198 1 1. assertTrue : negated conditional → KILLED
        if (!value) {
199
            throw new TestFailureException(failureMessage);
200
        }
201
    }
202
203
    public static void assertFalse(boolean value) {
204 1 1. assertFalse : negated conditional → KILLED
        if (value) {
205
            throw new TestFailureException("value was unexpectedly true");
206
        }
207
    }
208
209
    public static void assertFalse(boolean value, String failureMessage) {
210 1 1. assertFalse : negated conditional → KILLED
        if (value) {
211
            throw new TestFailureException(failureMessage);
212
        }
213
    }
214
215
    /**
216
     * Given a string that may have whitespace chars,
217
     * render it in a way we can see.
218
     * <p>
219
     *     More specifically, it will replace tabs with (TAB),
220
     *     newlines with (NEWLINE), carriage returns with (RETURN).
221
     *     Also, if the entire text is empty (it's got a 0 length), you'll
222
     *     get back (EMPTY), and if blank (it's full of whitespace),
223
     *     you'll get back (BLANK).
224
     * </p>
225
     * <p>
226
     *     Note that this method is not very performant.  It carries out
227
     *     its work through multiple string replacements, so it's
228
     *     basically O(3*n) (that is, it scans through
229
     *     the whole string three times).
230
     * </p>
231
     */
232
    static String showWhiteSpace(String msg) {
233 2 1. showWhiteSpace : replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED
2. showWhiteSpace : negated conditional → KILLED
        if (msg == null) return "(NULL)";
234 2 1. showWhiteSpace : replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED
2. showWhiteSpace : negated conditional → KILLED
        if (msg.isEmpty()) return "(EMPTY)";
235
236
        // if we have tabs, returns, newlines in the text, show them
237
        String text = msg
238
                .replace("\t", "\\t")
239
                .replace("\r", "\\r")
240
                .replace("\n", "\\n");
241
242 2 1. showWhiteSpace : replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED
2. showWhiteSpace : negated conditional → KILLED
        if (text.isBlank()) return "(BLANK)";
243 1 1. showWhiteSpace : replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED
        return text;
244
    }
245
246
    /**
247
     * This builds a context very similarly to {@link FullSystem#buildContext()},
248
     * except that it uses {@link TestLogger} instead of {@link com.renomad.minum.logging.Logger}
249
     * @param loggerName this will assign a human-readable name to the logger's
250
     *                   LoggingActionQueue so we can distinguish it
251
     *                   when reviewing the threads
252
     * @see #buildTestingContext(String, Properties)
253
     * @see #shutdownTestingContext(Context)
254
     */
255
    public static Context buildTestingContext(String loggerName) {
256 1 1. buildTestingContext : replaced return value with null for com/renomad/minum/testing/TestFramework::buildTestingContext → KILLED
        return buildTestingContext(loggerName, null);
257
    }
258
259
    /**
260
     * This builds a context very similarly to {@link FullSystem#buildContext()},
261
     * except that it uses {@link TestLogger} instead of {@link com.renomad.minum.logging.Logger}.
262
     * @param loggerName this will assign a human-readable name to the logger's
263
     *                   LoggingActionQueue so we can distinguish it
264
     *                   when reviewing the threads
265
     * @param properties If you want, you can inject a properties object here, to have
266
     *                   greater control over your test.  Using a parameter of null here
267
     *                   will cause the system to obtain properties from the minum.config file
268
     * @see #shutdownTestingContext(Context)
269
     */
270
    public static Context buildTestingContext(String loggerName, Properties properties) {
271
        var constants = new Constants(properties);
272
        var executorService = Executors.newVirtualThreadPerTaskExecutor();
273
        var logger = new TestLogger(constants, executorService, loggerName);
274
275
        var context = new Context(executorService, constants, logger);
276
277 1 1. buildTestingContext : replaced return value with null for com/renomad/minum/testing/TestFramework::buildTestingContext → KILLED
        return context;
278
    }
279
280
    /**
281
     * A helper to close down resources that are opened up by running
282
     * the {@link #buildTestingContext} methods.
283
     */
284
    public static void shutdownTestingContext(Context context) {
285 1 1. shutdownTestingContext : removed call to com/renomad/minum/queue/ActionQueueKiller::killAllQueues → KILLED
            new ActionQueueKiller(context).killAllQueues();
286
            context.getLogger().stop();
287
            context.getExecutorService().shutdownNow();
288
    }
289
290
}

Mutations

44

1.1
Location : assertThrows
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_RightIsNull(com.renomad.minum.testing.TestFrameworkTests)
replaced return value with null for com/renomad/minum/testing/TestFramework::assertThrows → KILLED

52

1.1
Location : assertThrows
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_RightIsNull(com.renomad.minum.testing.TestFrameworkTests)
removed call to com/renomad/minum/utils/ThrowingRunnable::run → KILLED

55

1.1
Location : assertThrows
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_RightIsNull(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

59

1.1
Location : assertThrows
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_RightIsNull(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

2.2
Location : assertThrows
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertFalse_WithMessage(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

63

1.1
Location : assertThrows
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_RightIsNull(com.renomad.minum.testing.TestFrameworkTests)
replaced return value with null for com/renomad/minum/testing/TestFramework::assertThrows → KILLED

73

1.1
Location : assertEquals
Killed by : com.renomad.minum.utils.StringUtilsTests.test_CleanAttributes(com.renomad.minum.utils.StringUtilsTests)
negated conditional → KILLED

2.2
Location : assertEquals
Killed by : com.renomad.minum.utils.StringUtilsTests.test_CleanAttributes(com.renomad.minum.utils.StringUtilsTests)
negated conditional → KILLED

74

1.1
Location : assertEquals
Killed by : com.renomad.minum.utils.StringUtilsTests.test_CleanAttributes(com.renomad.minum.utils.StringUtilsTests)
negated conditional → KILLED

87

1.1
Location : assertEquals
Killed by : com.renomad.minum.web.WebTests
removed call to com/renomad/minum/testing/TestFramework::assertEquals → KILLED

100

1.1
Location : assertEquals
Killed by : com.renomad.minum.state.ConstantsTests.testGetProps_Array(com.renomad.minum.state.ConstantsTests)
negated conditional → KILLED

2.2
Location : assertEquals
Killed by : com.renomad.minum.state.ConstantsTests.testGetProps_Array(com.renomad.minum.state.ConstantsTests)
negated conditional → KILLED

101

1.1
Location : assertEquals
Killed by : com.renomad.minum.state.ConstantsTests.testGetProps_Array(com.renomad.minum.state.ConstantsTests)
negated conditional → KILLED

105

1.1
Location : assertEquals
Killed by : com.renomad.minum.htmlparsing.HtmlParseNodeTests.testHappyPath(com.renomad.minum.htmlparsing.HtmlParseNodeTests)
negated conditional → KILLED

2.2
Location : assertEquals
Killed by : com.renomad.minum.state.ConstantsTests.testGetProps_Array(com.renomad.minum.state.ConstantsTests)
changed conditional boundary → KILLED

106

1.1
Location : assertEquals
Killed by : com.renomad.minum.state.ConstantsTests.testGetProps_Array(com.renomad.minum.state.ConstantsTests)
negated conditional → KILLED

117

1.1
Location : assertEqualByteArray
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_CustomError_ButValidComparison(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

2.2
Location : assertEqualByteArray
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_CustomError_ButValidComparison(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

118

1.1
Location : assertEqualByteArray
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_CustomError_ButValidComparison(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

119

1.1
Location : assertEqualByteArray
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_CustomError_ButValidComparison(com.renomad.minum.testing.TestFrameworkTests)
changed conditional boundary → KILLED

2.2
Location : assertEqualByteArray
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_DifferentValuesInArrays(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

120

1.1
Location : assertEqualByteArray
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_CustomError_ButValidComparison(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

126

1.1
Location : assertEqualByteArray
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEqualsByteArray_CustomError(com.renomad.minum.testing.TestFrameworkTests)
removed call to com/renomad/minum/testing/TestFramework::assertEqualByteArray → KILLED

140

1.1
Location : assertEqualsDisregardOrder
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEquals_ListsDifferentOrders(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

2.2
Location : assertEqualsDisregardOrder
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEquals_ListsDifferentOrders(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

141

1.1
Location : assertEqualsDisregardOrder
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEquals_ListsDifferentOrders(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

147

1.1
Location : assertEqualsDisregardOrder
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEquals_ListsDifferentOrders(com.renomad.minum.testing.TestFrameworkTests)
changed conditional boundary → KILLED

2.2
Location : assertEqualsDisregardOrder
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEquals_ListsDifferentOrders(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

148

1.1
Location : assertEqualsDisregardOrder
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEquals_ListsDifferentOrders(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

162

1.1
Location : assertEqualsDisregardOrder
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertEquals_ListsDifferentOrders(com.renomad.minum.testing.TestFrameworkTests)
removed call to com/renomad/minum/testing/TestFramework::assertEqualsDisregardOrder → KILLED

169

1.1
Location : assertTrue
Killed by : none
removed call to com/renomad/minum/testing/TestFramework::assertTrue → TIMED_OUT

198

1.1
Location : assertTrue
Killed by : com.renomad.minum.utils.MyThreadTests.test_InterruptionHandler(com.renomad.minum.utils.MyThreadTests)
negated conditional → KILLED

204

1.1
Location : assertFalse
Killed by : com.renomad.minum.testing.RegexUtilsTests.test_isFound(com.renomad.minum.testing.RegexUtilsTests)
negated conditional → KILLED

210

1.1
Location : assertFalse
Killed by : com.renomad.minum.testing.TestFrameworkTests.test_assertFalse_WithMessage(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

233

1.1
Location : showWhiteSpace
Killed by : com.renomad.minum.testing.TestFrameworkTests.testShowWhiteSpace(com.renomad.minum.testing.TestFrameworkTests)
replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED

2.2
Location : showWhiteSpace
Killed by : com.renomad.minum.testing.TestFrameworkTests.testShowWhiteSpace(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

234

1.1
Location : showWhiteSpace
Killed by : com.renomad.minum.testing.TestFrameworkTests.testShowWhiteSpace(com.renomad.minum.testing.TestFrameworkTests)
replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED

2.2
Location : showWhiteSpace
Killed by : com.renomad.minum.testing.TestFrameworkTests.testShowWhiteSpace(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

242

1.1
Location : showWhiteSpace
Killed by : com.renomad.minum.testing.TestFrameworkTests.testShowWhiteSpace(com.renomad.minum.testing.TestFrameworkTests)
replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED

2.2
Location : showWhiteSpace
Killed by : com.renomad.minum.testing.TestFrameworkTests.testShowWhiteSpace(com.renomad.minum.testing.TestFrameworkTests)
negated conditional → KILLED

243

1.1
Location : showWhiteSpace
Killed by : com.renomad.minum.testing.TestFrameworkTests.testShowWhiteSpace(com.renomad.minum.testing.TestFrameworkTests)
replaced return value with "" for com/renomad/minum/testing/TestFramework::showWhiteSpace → KILLED

256

1.1
Location : buildTestingContext
Killed by : com.renomad.minum.logging.TestLoggerTests.test_testLoggerQueue_Basic(com.renomad.minum.logging.TestLoggerTests)
replaced return value with null for com/renomad/minum/testing/TestFramework::buildTestingContext → KILLED

277

1.1
Location : buildTestingContext
Killed by : com.renomad.minum.logging.TestLoggerTests.test_testLoggerQueue_Basic(com.renomad.minum.logging.TestLoggerTests)
replaced return value with null for com/renomad/minum/testing/TestFramework::buildTestingContext → KILLED

285

1.1
Location : shutdownTestingContext
Killed by : com.renomad.minum.database.DbTests.test_Deserialization_EdgeCases_2(com.renomad.minum.database.DbTests)
removed call to com/renomad/minum/queue/ActionQueueKiller::killAllQueues → KILLED

Active mutators

Tests examined


Report generated by PIT 1.17.0