| 1 | package org.lttng.ust.agent.jul.benchmarks.handler.lttng.old; |
| 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.LTTngAgent; |
| 10 | import org.lttng.ust.agent.jul.benchmarks.handler.AbstractJulBenchmark; |
| 11 | import org.lttng.ust.agent.jul.benchmarks.utils.LttngSessionControl; |
| 12 | |
| 13 | @SuppressWarnings("deprecation") |
| 14 | public class OldLttngJulHandlerTracingDisabledBenchmark extends AbstractJulBenchmark { |
| 15 | |
| 16 | private LTTngAgent agent; |
| 17 | |
| 18 | @Before |
| 19 | public void testSetup() throws IOException { |
| 20 | agent = LTTngAgent.getLTTngAgent(); |
| 21 | |
| 22 | assertTrue(LttngSessionControl.setupJulSessionNoEvents()); |
| 23 | } |
| 24 | |
| 25 | @After |
| 26 | public void testTeardown() { |
| 27 | assertTrue(LttngSessionControl.stopSession()); |
| 28 | assertTrue(LttngSessionControl.destroySession()); |
| 29 | |
| 30 | agent.dispose(); |
| 31 | } |
| 32 | } |