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