Add 'log4j2' domain tests to the Log4j 2.x agent
[lttng-ust-java-tests.git] / lttng-ust-java-tests-jul / src / test / java / org / lttng / ust / agent / integration / filter / JulFilterListenerIT.java
index 3db70b5cd5f0addeb01a275e5a0cb0a7f9ff3725..9b3eeea4edd4f10e678325fdc2352b05e7b92113 100644 (file)
 
 package org.lttng.ust.agent.integration.filter;
 
-import static org.junit.Assume.assumeTrue;
-
 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() {
-        /* Skip tests if we can't find the JNI library or lttng-tools */
-        assumeTrue(JulTestUtils.checkForJulLibrary());
-        assumeTrue(LttngUtils.checkForLttngTools(ILttngSession.Domain.JUL));
-        LttngToolsHelper.destroyAllSessions();
+        JulTestUtils.testClassSetup();
+    }
+
+    /**
+     * Class cleanup
+     */
+    @AfterAll
+    public static void julClassCleanup() {
+        JulTestUtils.testClassCleanup();
     }
 
     @Override
@@ -63,5 +68,4 @@ public class JulFilterListenerIT extends FilterListenerITBase {
     protected ILogLevelStrings getLogLevelStrings() {
         return ILogLevelStrings.JUL_LOGLEVEL_STRINGS;
     }
-
 }
This page took 0.023734 seconds and 4 git commands to generate.