package org.lttng.ust.agent.integration.filter;
-import static org.junit.Assert.assertTrue;
-
import java.io.IOException;
-import org.junit.BeforeClass;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Tag;
import org.lttng.tools.ILttngSession;
-import org.lttng.tools.LttngToolsHelper;
import org.lttng.ust.agent.ILttngHandler;
import org.lttng.ust.agent.jul.LttngLogHandler;
import org.lttng.ust.agent.utils.ILogLevelStrings;
import org.lttng.ust.agent.utils.JulTestUtils;
-import org.lttng.ust.agent.utils.LttngUtils;
/**
* Filter notifications tests using the JUL logging API.
*
* @author Alexandre Montplaisir
*/
+@Tag("agent:jul")
+@Tag("domain:jul")
public class JulFilterListenerIT extends FilterListenerITBase {
/**
* Class setup
*/
- @BeforeClass
+ @BeforeAll
public static void julClassSetup() {
- /* Make sure we can find the JNI library and lttng-tools */
- assertTrue(JulTestUtils.checkForJulLibrary());
- assertTrue(LttngUtils.checkForLttngTools(ILttngSession.Domain.JUL));
- LttngToolsHelper.destroyAllSessions();
+ JulTestUtils.testClassSetup();
+ }
+
+ /**
+ * Class cleanup
+ */
+ @AfterAll
+ public static void julClassCleanup() {
+ JulTestUtils.testClassCleanup();
}
@Override
protected ILogLevelStrings getLogLevelStrings() {
return ILogLevelStrings.JUL_LOGLEVEL_STRINGS;
}
-
}