1 package org.lttng.ust.agent.benchmarks.jul.handler.lttng;
3 import static org.junit.Assert.assertTrue;
5 import java.io.IOException;
7 import org.junit.After;
8 import org.junit.Before;
9 import org.lttng.ust.agent.benchmarks.jul.handler.AbstractJulBenchmark;
10 import org.lttng.ust.agent.jul.LttngLogHandler;
11 import org.lttng.ust.agent.utils.LttngSession;
12 import org.lttng.ust.agent.utils.LttngSession.Domain;
14 public class LttngJulHandlerTracingEnabledBenchmark extends AbstractJulBenchmark {
16 private LttngSession session;
19 public void testSetup() throws IOException {
20 handler = new LttngLogHandler();
22 session = new LttngSession(null, Domain.JUL);
23 assertTrue(session.enableAllEvents());
24 assertTrue(session.start());
28 public void testTeardown() {
29 assertTrue(session.stop());