JAL-4134 colour by annotation needs distinct annotation elements to hold colours
[jalview.git] / test / jalview / util / Log4jTest.java
index 9aad697..bdd1833 100644 (file)
@@ -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 + "'");
     }
   }