-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Mutant in line 543 ('JIR_Ifgt') is killed by test testFlush(), that is when executing defects4j test with the mutation manually inserted in the JsonWriter.java file, the test fails. However, in the GUI, it still appears alive.
Line 543 of JsonWriter.java file
if (stackSize == 0) {Line 543 with manually inserted JIR_Ifgt mutation JsonWriter.java file
if (stackSize > 0) {StudentTest.java
@Test
public void testFlush() throws IOException {
StringWriter stringWriter = new StringWriter();
JsonWriter writer = new JsonWriter(stringWriter);
writer.value(1);
try {
writer.flush();
} catch (IllegalStateException e) {
fail();
}
}JsonWriter.java
/**
* Ensures all buffered data is written to the underlying {@link Writer}
* and flushes that writer.
*/
public void flush() throws IOException {
if (stackSize == 0) {
throw new IllegalStateException("JsonWriter is closed.");
}
out.flush();
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels