X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=lttng-ust-java-tests-jul%2Fsrc%2Ftest%2Fjava%2Forg%2Flttng%2Fust%2Fagent%2Fintegration%2Fevents%2FJulListEventsIT.java;h=f3e2b1f988e7af24098b7b7af8f0fbafe042a33b;hb=7a4f0255e3d52ad76b194fb2e83bcdc6f641549e;hp=dbd5c334e5bfd15aa14633116b56b941213f5b5a;hpb=7bd5724a34cb45dabe914c1ee2ec83964ce1d455;p=lttng-ust-java-tests.git diff --git a/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java b/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java index dbd5c33..f3e2b1f 100644 --- a/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java +++ b/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java @@ -23,10 +23,10 @@ import java.util.logging.Handler; import java.util.logging.LogManager; import java.util.logging.Logger; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; import org.lttng.tools.ILttngSession; import org.lttng.ust.agent.jul.LttngLogHandler; import org.lttng.ust.agent.utils.JulTestUtils; @@ -42,7 +42,7 @@ public class JulListEventsIT extends ListEventsITBase { /** * Class setup */ - @BeforeClass + @BeforeAll public static void julClassSetup() { JulTestUtils.testClassSetup(); } @@ -50,7 +50,7 @@ public class JulListEventsIT extends ListEventsITBase { /** * Class cleanup */ - @AfterClass + @AfterAll public static void julClassCleanup() { JulTestUtils.testClassCleanup(); } @@ -61,7 +61,7 @@ public class JulListEventsIT extends ListEventsITBase { * @throws SecurityException * @throws IOException */ - @Before + @BeforeEach public void julSetup() throws SecurityException, IOException { /* Clear the JUL logger configuration */ LogManager.getLogManager().reset(); @@ -82,7 +82,7 @@ public class JulListEventsIT extends ListEventsITBase { /** * Test teardown. Detach and close all log handlers. */ - @After + @AfterEach public void julTeardown() { for (Logger logger : loggers) { for (Handler handler : handlers) {