import org.junit.Before;
import org.junit.Test;
+/**
+ * Base abstract class for JUL benchmarks. Sub-classes can setup parameters to
+ * test different types of log handlers.
+ */
public abstract class JulHandlerBenchmarkBase {
// ------------------------------------------------------------------------
// Maintenance methods
// ------------------------------------------------------------------------
+ /**
+ * Base test setup
+ */
@Before
public void setup() {
/* Set up the logger */
/* Sub-classes' @Before will setup the Handler */
}
+ /**
+ * Base test teardown
+ */
@After
public void teardown() {
if (handler != null) {
// Test methods
// ------------------------------------------------------------------------
+ /**
+ * Main test class for running the benchmark
+ */
@Test
public void runBenchmark() {
if (handler != null) {