Migrate to Junit 5 Jupiter
[lttng-ust-java-tests.git] / lttng-ust-java-tests-jul / src / test / java / org / lttng / ust / agent / benchmarks / jul / handler / builtin / FileHandlerBenchmark.java
index af4ab7ceb52dc589c13366e273e136aa961b0f66..5437754b8a4447553b3b42af4bf1b57ddeec8bfa 100644 (file)
@@ -24,8 +24,8 @@ import java.nio.file.Path;
 import java.util.logging.FileHandler;
 import java.util.logging.SimpleFormatter;
 
-import org.junit.After;
-import org.junit.Before;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
 import org.lttng.ust.agent.benchmarks.jul.handler.JulHandlerBenchmarkBase;
 
 /**
@@ -43,7 +43,7 @@ public class FileHandlerBenchmark extends JulHandlerBenchmarkBase {
         * @throws IOException
         *             If there is problem setting up the handler
         */
-       @Before
+       @BeforeEach
        public void testSetup() throws SecurityException, IOException {
                outputFile = Files.createTempFile(this.getClass().getSimpleName(), null);
 
@@ -57,7 +57,7 @@ public class FileHandlerBenchmark extends JulHandlerBenchmarkBase {
         * @throws IOException
         *             If we could not delete the test file
         */
-       @After
+       @AfterEach
        public void testTeardown() throws IOException {
                Files.deleteIfExists(outputFile);
        }
This page took 0.023023 seconds and 4 git commands to generate.