| 1 | package org.lttng.ust.agent.benchmarks.jul.handler.lttng; |
| 2 | |
| 3 | import static org.junit.Assert.assertTrue; |
| 4 | |
| 5 | import java.io.IOException; |
| 6 | |
| 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; |
| 13 | |
| 14 | public class LttngJulHandlerTracingDisabledBenchmark extends AbstractJulBenchmark { |
| 15 | |
| 16 | private LttngSession session; |
| 17 | |
| 18 | @Before |
| 19 | public void testSetup() throws IOException { |
| 20 | handler = new LttngLogHandler(); |
| 21 | |
| 22 | session = new LttngSession(null, Domain.JUL); |
| 23 | assertTrue(session.enableEvents("non-event")); |
| 24 | assertTrue(session.start()); |
| 25 | } |
| 26 | |
| 27 | @After |
| 28 | public void testTeardown() { |
| 29 | assertTrue(session.stop()); |
| 30 | session.close(); |
| 31 | } |
| 32 | } |