031c26e7c17a48b69ba5cc1c5ff5dce5ad61e895
[lttng-ust-java-tests.git] /
1 package org.lttng.ust.agent.benchmarks.jul.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.benchmarks.jul.handler.JulHandlerBenchmarkBase;
10 import org.lttng.ust.agent.jul.LttngLogHandler;
11 import org.lttng.ust.agent.utils.LttngSession;
12 import org.lttng.ust.agent.utils.LttngSession.Domain;
13
14 public class LttngJulHandlerTracingEnabledBenchmark extends JulHandlerBenchmarkBase {
15
16 private LttngSession session;
17
18 @Before
19 public void testSetup() throws IOException {
20 handler = new LttngLogHandler();
21
22 session = new LttngSession(null, Domain.JUL);
23 assertTrue(session.enableAllEvents());
24 assertTrue(session.start());
25 }
26
27 @After
28 public void testTeardown() {
29 assertTrue(session.stop());
30 session.close();
31 }
32 }
This page took 0.029178 seconds and 3 git commands to generate.