Clear logs in UsualJUnitMachineryOnShrinkingPropertyBasedTest
@@ -69,6 +69,7 @@ public class UsualJUnitMachineryOnShrinkingPropertyBasedTest {
@Test public void orderingOfStatements() {
assertThat(testResult(PropertyBasedTests.class), failureCountIs(1));
assertEquals(expectedStatements, PropertyBasedTests.LOGS);
+ PropertyBasedTests.clearLogs();
}
@RunWith(JUnitQuickcheck.class)
@@ -136,5 +137,9 @@ public class UsualJUnitMachineryOnShrinkingPropertyBasedTest {
fail();
}
+
+ public static void clearLogs() {
+ LOGS.clear();
+ }
}
}
