diff --git a/junit-tests/src/test/java/org/junit/gen5/engine/junit5/ReportingTest.java b/junit-tests/src/test/java/org/junit/gen5/engine/junit5/ReportingTest.java index e92dba22f04..677183d732c 100644 --- a/junit-tests/src/test/java/org/junit/gen5/engine/junit5/ReportingTest.java +++ b/junit-tests/src/test/java/org/junit/gen5/engine/junit5/ReportingTest.java @@ -39,23 +39,23 @@ public void threeReportEntriesArePublished() { assertEquals(3L, eventRecorder.getReportingEntryPublishedCount(), "# report entries published"); } -} + static class MyReportingTestCase { -class MyReportingTestCase { + @BeforeEach + void before(TestReporter reporter) { + reporter.publishEntry(new ReportingEntry(new HashMap<>())); + } - @BeforeEach - void before(TestReporter reporter) { - reporter.publishEntry(new ReportingEntry(new HashMap<>())); - } + @AfterEach + void after(TestReporter reporter) { + reporter.publishEntry(new ReportingEntry(new HashMap<>())); + } - @AfterEach - void after(TestReporter reporter) { - reporter.publishEntry(new ReportingEntry(new HashMap<>())); - } + @Test + void succeedingTest(TestReporter reporter) { + reporter.publishEntry(new ReportingEntry(new HashMap<>())); + } - @Test - void succeedingTest(TestReporter reporter) { - reporter.publishEntry(new ReportingEntry(new HashMap<>())); } }