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