Add 'log4j2' domain tests to the Log4j 2.x agent
[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..b6159b23cf6545da7cf01184a43fa0bd8605b49f 100644 (file)
@@ -24,13 +24,17 @@ 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.junit.jupiter.api.Tag;
 import org.lttng.ust.agent.benchmarks.jul.handler.JulHandlerBenchmarkBase;
 
 /**
  * Test class using a {@link FileHandler}, which a {@link SimpleFormatter}.
  */
+@Tag("agent:jul")
+@Tag("domain:jul")
+@Tag("benchmark")
 public class FileHandlerBenchmark extends JulHandlerBenchmarkBase {
 
     private Path outputFile;
@@ -43,7 +47,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 +61,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.023237 seconds and 4 git commands to generate.