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;
* @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);
* @throws IOException
* If we could not delete the test file
*/
- @After
+ @AfterEach
public void testTeardown() throws IOException {
Files.deleteIfExists(outputFile);
}