JAL-629 fixed a Log4j test by adding --debug arg
[jalview.git] / test / jalview / util / Log4jTest.java
index 9aad697..8f23ae5 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
 {
@@ -158,7 +158,7 @@ public class Log4jTest
   @Test(groups = { "Functional" })
   public void testLog4j()
   {
-    String appArgs = " -open examples/uniref50.fa -nosplash -nonews -noquestionnaire -nousagestats -nowebservicediscovery";
+    String appArgs = " -open examples/uniref50.fa -nosplash -nonews -noquestionnaire -nousagestats -nowebservicediscovery --debug";
 
     Worker worker = getJalviewDesktopRunner(appArgs);
     assertNotNull(worker, "worker is null");
@@ -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 + "'");
     }
   }