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