Turn LttngSession(Control) into a non-static class
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 24 Jul 2015 07:43:03 +0000 (03:43 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 24 Jul 2015 07:43:03 +0000 (03:43 -0400)
commit8576633f94f26d8fb955d7c3a29a03cd09e99ed4
treee2d05357ea52c4b0c3d99f99cc080b5b7b205cd5
parentc5524c71f2a2f7b553f5a6ce0cd7abb2cafeab7a
Turn LttngSession(Control) into a non-static class

By managing session objects, the session management becomes much
less verbose in the tests. Additionally, it becomes clear that
the @Before method has to create the session, and the @After has
to close it. And AutoCloseable rocks, as usual.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
15 files changed:
.settings/org.eclipse.jdt.core.prefs
src/org/lttng/ust/agent/benchmarks/jul/handler/lttng/LttngJulHandlerTracingDisabledBenchmark.java
src/org/lttng/ust/agent/benchmarks/jul/handler/lttng/LttngJulHandlerTracingEnabledBenchmark.java
src/org/lttng/ust/agent/benchmarks/jul/handler/lttng/old/OldLttngJulHandlerTracingDisabledBenchmark.java
src/org/lttng/ust/agent/benchmarks/jul/handler/lttng/old/OldLttngJulHandlerTracingEnabledBenchmark.java
src/org/lttng/ust/agent/integration/common/EnabledEventsTest.java
src/org/lttng/ust/agent/integration/jul/JulEnabledEventsTest.java
src/org/lttng/ust/agent/integration/jul/JulLegacyApiTest.java
src/org/lttng/ust/agent/integration/jul/JulTestUtils.java [new file with mode: 0644]
src/org/lttng/ust/agent/integration/log4j/Log4jEnabledEventsTest.java
src/org/lttng/ust/agent/integration/log4j/Log4jLegacyApiTest.java
src/org/lttng/ust/agent/integration/log4j/Log4jTestUtils.java [new file with mode: 0644]
src/org/lttng/ust/agent/utils/LttngSession.java [new file with mode: 0644]
src/org/lttng/ust/agent/utils/LttngSessionControl.java [deleted file]
src/org/lttng/ust/agent/utils/TestUtils.java [new file with mode: 0644]
This page took 0.024232 seconds and 4 git commands to generate.