Commit | Line | Data |
---|---|---|
86316987 AM |
1 | package org.lttng.ust.agent.jul.benchmarks.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.jul.LTTngLogHandler; | |
10 | import org.lttng.ust.agent.jul.benchmarks.handler.AbstractJulBenchmark; | |
11 | import org.lttng.ust.agent.jul.benchmarks.utils.LttngSessionControl; | |
12 | ||
13 | public class LttngJulHandlerTracingEnabledBenchmark extends AbstractJulBenchmark { | |
14 | ||
15 | @Before | |
16 | public void testSetup() throws IOException { | |
17 | handler = new LTTngLogHandler(true); | |
18 | ||
19 | assertTrue(LttngSessionControl.setupJulSessionAllEvents()); | |
20 | } | |
21 | ||
22 | @After | |
23 | public void testTeardown() { | |
24 | assertTrue(LttngSessionControl.stopSession()); | |
25 | assertTrue(LttngSessionControl.destroySession()); | |
26 | } | |
27 | } |