X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Futil%2FLog4jTest.java;h=bdd1833accf001397eb5d955b6ca5372a2891f56;hb=be6f655652936ae635f212f4f2daac505d63a0bb;hp=9aad697f237aab5e96511e9834577e2088add702;hpb=a1984b1c8c273ed33c7ce9283039f4027dcae2de;p=jalview.git diff --git a/test/jalview/util/Log4jTest.java b/test/jalview/util/Log4jTest.java index 9aad697..bdd1833 100644 --- a/test/jalview/util/Log4jTest.java +++ b/test/jalview/util/Log4jTest.java @@ -34,7 +34,7 @@ import org.testng.annotations.Test; import io.github.classgraph.ClassGraph; import io.github.classgraph.ScanResult; -import jalview.bin.Cache; +import jalview.bin.Console; public class Log4jTest { @@ -125,7 +125,7 @@ public class Log4jTest String classpath = getClassPath(); String cmd = java_exe + " " + " -classpath " + classpath + " " + " jalview.bin.Jalview " + " " - + "-props test/jalview/util/log4jTestProps.jvprops " + appArgs; + + "--props=test/jalview/util/log4jTestProps.jvprops " + appArgs; Process proc = null; Worker worker = null; try @@ -174,7 +174,7 @@ public class Log4jTest { break; } - if (ln.contains(Cache.LOGGING_TEST_MESSAGE)) + if (ln.contains(Console.LOGGING_TEST_MESSAGE)) { logTestFound = true; break; @@ -192,7 +192,7 @@ public class Log4jTest if (!logTestFound) { Assert.fail("Did not find Log4j Test message line '" - + Cache.LOGGING_TEST_MESSAGE + "'"); + + Console.LOGGING_TEST_MESSAGE + "'"); } }