Add Javadoc and related settings
[lttng-ust-java-tests.git] / src / test / java / org / lttng / ust / agent / benchmarks / jul / handler / builtin / FileHandlerBenchmark.java
index 62f1e8e3ca2d89a3a8419ec5de1c5ceaaec7de9c..af4ab7ceb52dc589c13366e273e136aa961b0f66 100644 (file)
@@ -28,20 +28,37 @@ import org.junit.After;
 import org.junit.Before;
 import org.lttng.ust.agent.benchmarks.jul.handler.JulHandlerBenchmarkBase;
 
+/**
+ * Test class using a {@link FileHandler}, which a {@link SimpleFormatter}.
+ */
 public class FileHandlerBenchmark extends JulHandlerBenchmarkBase {
 
     private Path outputFile;
 
-    @Before
-    public void testSetup() throws SecurityException, IOException {
-        outputFile = Files.createTempFile(this.getClass().getSimpleName(), null);
+       /**
+        * Test setup
+        *
+        * @throws SecurityException
+        *             If there is problem setting up the handler
+        * @throws IOException
+        *             If there is problem setting up the handler
+        */
+       @Before
+       public void testSetup() throws SecurityException, IOException {
+               outputFile = Files.createTempFile(this.getClass().getSimpleName(), null);
 
-        handler = new FileHandler(outputFile.toString(), false);
-        handler.setFormatter(new SimpleFormatter());
-    }
+               handler = new FileHandler(outputFile.toString(), false);
+               handler.setFormatter(new SimpleFormatter());
+       }
 
-    @After
-    public void testTeardown() throws IOException {
-        Files.deleteIfExists(outputFile);
-    }
+       /**
+        * Test cleanup
+        *
+        * @throws IOException
+        *             If we could not delete the test file
+        */
+       @After
+       public void testTeardown() throws IOException {
+               Files.deleteIfExists(outputFile);
+       }
 }
This page took 0.025507 seconds and 4 git commands to generate.