X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=lttng-ust-java-tests-log4j%2Fsrc%2Ftest%2Fjava%2Forg%2Flttng%2Fust%2Fagent%2Futils%2FLog4jTestUtils.java;h=fe8f0f2aae4ed784e3e665d1a83875d69a19415b;hb=7a4f0255e3d52ad76b194fb2e83bcdc6f641549e;hp=a258e923111ad03a23eb9f7c60039adf625bb08f;hpb=7bd5724a34cb45dabe914c1ee2ec83964ce1d455;p=lttng-ust-java-tests.git diff --git a/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/utils/Log4jTestUtils.java b/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/utils/Log4jTestUtils.java index a258e92..fe8f0f2 100644 --- a/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/utils/Log4jTestUtils.java +++ b/lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/utils/Log4jTestUtils.java @@ -18,8 +18,8 @@ package org.lttng.ust.agent.utils; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; import java.io.IOException; @@ -43,7 +43,7 @@ public final class Log4jTestUtils { public static void testClassSetup() { /* Make sure we can find the JNI library and lttng-tools */ checkForLog4jLibrary(); - assertTrue("lttng-tools is not working properly.", LttngUtils.checkForLttngTools(Domain.LOG4J)); + assertTrue(LttngUtils.checkForLttngTools(Domain.LOG4J), "lttng-tools is not working properly."); LttngToolsHelper.destroyAllSessions(); }