X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-ust-java-tests-log4j%2Fsrc%2Ftest%2Fjava%2Forg%2Flttng%2Fust%2Fagent%2Fintegration%2Fevents%2FLog4jEnabledEventsIT.java;h=2d73217ce7a8764cac057b5965fb6fb7a05a2e8b;hb=eca27046b6f32c55dc7ceccb0821431c9be9f3af;hp=dcca40da005f09f749151cd9701e75a871c55390;hpb=88282100495351d3bbdc08743cf6fc6c311163bb;p=lttng-ust-java-tests.git diff --git a/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jEnabledEventsIT.java b/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jEnabledEventsIT.java index dcca40d..2d73217 100644 --- a/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jEnabledEventsIT.java +++ b/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jEnabledEventsIT.java @@ -18,8 +18,6 @@ package org.lttng.ust.agent.integration.events; -import static org.junit.Assert.assertTrue; - import java.io.IOException; import org.apache.log4j.Appender; @@ -31,10 +29,8 @@ import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.lttng.tools.ILttngSession.Domain; -import org.lttng.tools.LttngToolsHelper; import org.lttng.ust.agent.log4j.LttngLogAppender; import org.lttng.ust.agent.utils.Log4jTestUtils; -import org.lttng.ust.agent.utils.LttngUtils; /** * Enabled events test for the LTTng-UST Log4j log handler. @@ -53,19 +49,15 @@ public class Log4jEnabledEventsIT extends EnabledEventsITBase { */ @BeforeClass public static void log4jClassSetup() { - /* Make sure we can find the JNI library and lttng-tools */ - assertTrue(Log4jTestUtils.checkForLog4jLibrary()); - assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J)); - - LttngToolsHelper.destroyAllSessions(); + Log4jTestUtils.testClassSetup(); } /** - * Class teardown + * Class cleanup */ @AfterClass public static void log4jClassCleanup() { - LttngToolsHelper.deleteAllTraces(); + Log4jTestUtils.testClassCleanup(); } /**