41a8baedfd08e6038cb2803aa2c6abb3827adf3e
1 package org
.lttng
.ust
.agent
.benchmarks
.jul
.handler
.builtin
;
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
;
9 import org
.junit
.After
;
10 import org
.junit
.Before
;
11 import org
.lttng
.ust
.agent
.benchmarks
.jul
.handler
.JulHandlerBenchmarkBase
;
13 public class FileHandlerBenchmark
extends JulHandlerBenchmarkBase
{
15 private Path outputFile
;
18 public void testSetup() throws SecurityException
, IOException
{
19 outputFile
= Files
.createTempFile(this.getClass().getSimpleName(), null);
21 handler
= new FileHandler(outputFile
.toString(), false);
22 handler
.setFormatter(new SimpleFormatter());
26 public void testTeardown() throws IOException
{
27 Files
.deleteIfExists(outputFile
);
This page took 0.029833 seconds and 4 git commands to generate.