import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-import static org.junit.Assume.assumeTrue;
import java.util.ArrayList;
import java.util.Arrays;
clientThread = new Thread(client);
clientThread.start();
- assumeTrue("Timed out waiting for root sessiond", client.waitForConnection(5));
+ assertTrue("Timed out waiting for root sessiond", client.waitForConnection(5));
}
/**
package org.lttng.ust.agent.integration.context;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.logging.Handler;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(JulTestUtils.checkForJulLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.context;
+import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeTrue;
import java.io.IOException;
import java.util.logging.Handler;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(JulTestUtils.checkForJulLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.events;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.logging.Handler;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(JulTestUtils.checkForJulLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeTrue;
import java.lang.reflect.Field;
import java.util.List;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(JulTestUtils.checkForJulLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.events;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.logging.Handler;
*/
@BeforeClass
public static void testClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(JulTestUtils.checkForJulLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.events;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.logging.Handler;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(JulTestUtils.checkForJulLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.filter;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
*/
@BeforeClass
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));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(ILttngSession.Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.filter;
+import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeTrue;
import java.io.IOException;
import java.util.logging.Handler;
import java.util.logging.Logger;
import org.junit.BeforeClass;
-import org.lttng.tools.LttngToolsHelper;
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;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(JulTestUtils.checkForJulLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.JUL));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(JulTestUtils.checkForJulLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.JUL));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.context;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the log4j library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.context;
+import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeTrue;
import java.io.IOException;
*/
@BeforeClass
public static void log4jClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.events;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
*/
@BeforeClass
public static void log4jClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeTrue;
import java.lang.reflect.Field;
import java.util.List;
*/
@BeforeClass
public static void classSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.events;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
*/
@BeforeClass
public static void testClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.events;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
*/
@BeforeClass
public static void log4jClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.filter;
-import static org.junit.Assume.assumeTrue;
+import static org.junit.Assert.assertTrue;
import java.io.IOException;
*/
@BeforeClass
public static void log4jClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(ILttngSession.Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(ILttngSession.Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}
package org.lttng.ust.agent.integration.filter;
+import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeTrue;
import java.io.IOException;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.junit.BeforeClass;
-import org.lttng.tools.LttngToolsHelper;
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;
*/
@BeforeClass
public static void julClassSetup() {
- /* Skip tests if we can't find the JNI library or lttng-tools */
- assumeTrue(Log4jTestUtils.checkForLog4jLibrary());
- assumeTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
+ /* Make sure we can find the JNI library and lttng-tools */
+ assertTrue(Log4jTestUtils.checkForLog4jLibrary());
+ assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J));
LttngToolsHelper.destroyAllSessions();
}