package org.lttng.ust.agent.integration.context;
-import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.util.logging.Logger;
import org.junit.After;
+import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.lttng.tools.ILttngSession.Domain;
-import org.lttng.tools.LttngToolsHelper;
import org.lttng.ust.agent.jul.LttngLogHandler;
import org.lttng.ust.agent.utils.JulTestUtils;
-import org.lttng.ust.agent.utils.LttngUtils;
/**
* Implementation of {@link AppContextOrderingITBase} for the JUL API.
*/
@BeforeClass
public static void julClassSetup() {
- /* Make sure we can find the JNI library and lttng-tools */
- assertTrue(JulTestUtils.checkForJulLibrary());
- assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ JulTestUtils.testClassSetup();
+ }
- LttngToolsHelper.destroyAllSessions();
+ /**
+ * Class cleanup
+ */
+ @AfterClass
+ public static void julClassCleanup() {
+ JulTestUtils.testClassCleanup();
}
/**