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