| 1 | package org.lttng.ust.agent.benchmarks.jul.handler.lttng.old; |
| 2 | |
| 3 | import static org.junit.Assert.assertTrue; |
| 4 | |
| 5 | import org.junit.After; |
| 6 | import org.junit.Before; |
| 7 | import org.lttng.ust.agent.LTTngAgent; |
| 8 | import org.lttng.ust.agent.benchmarks.jul.handler.AbstractJulBenchmark; |
| 9 | import org.lttng.ust.agent.utils.LttngSession; |
| 10 | import org.lttng.ust.agent.utils.LttngSession.Domain; |
| 11 | |
| 12 | @SuppressWarnings("deprecation") |
| 13 | public class OldLttngJulHandlerTracingDisabledBenchmark extends AbstractJulBenchmark { |
| 14 | |
| 15 | private LttngSession session; |
| 16 | |
| 17 | @Before |
| 18 | public void testSetup() { |
| 19 | LTTngAgent.getLTTngAgent(); |
| 20 | |
| 21 | session = new LttngSession(null, Domain.JUL); |
| 22 | assertTrue(session.enableEvents("non-event")); |
| 23 | assertTrue(session.start()); |
| 24 | } |
| 25 | |
| 26 | @After |
| 27 | public void testTeardown() { |
| 28 | assertTrue(session.stop()); |
| 29 | session.close(); |
| 30 | |
| 31 | LTTngAgent.dispose(); |
| 32 | } |
| 33 | } |