Add multi-session tests
[lttng-ust-java-tests.git] / src / org / lttng / ust / agent / benchmarks / jul / handler / FileHandlerBenchmark.java
CommitLineData
da8308fe 1package org.lttng.ust.agent.benchmarks.jul.handler;
7ac7128a
AM
2
3import java.io.IOException;
9368bd5e
AM
4import java.nio.file.Files;
5import java.nio.file.Path;
7ac7128a
AM
6import java.util.logging.FileHandler;
7import java.util.logging.SimpleFormatter;
8
9368bd5e 9import org.junit.After;
7ac7128a
AM
10import org.junit.Before;
11
12public class FileHandlerBenchmark extends AbstractJulBenchmark {
13
9368bd5e
AM
14 private Path outputFile;
15
7ac7128a
AM
16 @Before
17 public void testSetup() throws SecurityException, IOException {
9368bd5e
AM
18 outputFile = Files.createTempFile(this.getClass().getSimpleName(), null);
19
20 handler = new FileHandler(outputFile.toString(), false);
7ac7128a
AM
21 handler.setFormatter(new SimpleFormatter());
22 }
9368bd5e
AM
23
24 @After
25 public void testTeardown() throws IOException {
26 Files.deleteIfExists(outputFile);
27 }
7ac7128a 28}
This page took 0.024889 seconds and 4 git commands to generate.