JAL-4290 fixed tests
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 20 Dec 2023 00:08:56 +0000 (00:08 +0000)
committerJames Procter <j.procter@dundee.ac.uk>
Tue, 23 Jan 2024 16:54:50 +0000 (16:54 +0000)
test/jalview/bin/CommandsTest.java

index 80354f9..c34a7fa 100644 (file)
@@ -185,10 +185,10 @@ public class CommandsTest
           throws IOException
   {
     cleanupFiles(filenames);
-    String[] args = (cmdLine + "").split("\\s+");
+    String[] args = (cmdLine).split("\\s+");
     try
     {
-      callJalviewMain(args);
+      callJalviewMain(args, true);
       Commands cmds = Jalview.getInstance().getCommands();
       Assert.assertNotNull(cmds);
       verifyIncreasingSize(cmdLine, filenames);
@@ -454,56 +454,60 @@ public class CommandsTest
     return new Object[][] {
         //
         /*
+                */
         { "--gui --nonews --nosplash --open=./examples/test_fab41.result/sample.a2m "
                 + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb "
-                + "--structureimage=" + testfiles + "/structureimage1.png "
+                + "--structureimage=" + testfiles
+                + "/structureimage0-1.png "
                 + "--open=./examples/test_fab41.result/sample.a2m "
                 + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb "
                 + "--structureimage=" + testfiles
-                + "/structureimage2.png --scale=1.5 "
+                + "/structureimage0-2.png --scale=1.5 "
                 + "--open=./examples/test_fab41.result/sample.a2m "
                 + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb "
                 + "--structureimage=" + testfiles
-                + "/structureimage3.png --scale=2.0 ",
+                + "/structureimage0-3.png --scale=2.0 ",
             new String[]
-            { testfiles + "/structureimage1.png",
-                testfiles + "/structureimage2.png",
-                testfiles + "/structureimage3.png" } },
+            { testfiles + "/structureimage0-1.png",
+                testfiles + "/structureimage0-2.png",
+                testfiles + "/structureimage0-3.png" } },
         { "--headless --noquit --open=./examples/test_fab41.result/sample.a2m "
                 + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb "
-                + "--structureimage=" + testfiles + "/structureimage1.png "
+                + "--structureimage=" + testfiles
+                + "/structureimage1-1.png "
                 + "--open=./examples/test_fab41.result/sample.a2m "
                 + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb "
                 + "--structureimage=" + testfiles
-                + "/structureimage2.png --scale=1.5 "
+                + "/structureimage1-2.png --scale=1.5 "
                 + "--open=./examples/test_fab41.result/sample.a2m "
                 + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb "
                 + "--structureimage=" + testfiles
-                + "/structureimage3.png --scale=2.0 ",
+                + "/structureimage1-3.png --scale=2.0 ",
             new String[]
-            { testfiles + "/structureimage1.png",
-                testfiles + "/structureimage2.png",
-                testfiles + "/structureimage3.png" } },
-                */
+            { testfiles + "/structureimage1-1.png",
+                testfiles + "/structureimage1-2.png",
+                testfiles + "/structureimage1-3.png" } },
         { "--gui --nonews --nosplash --open examples/1gaq.txt --append ./examples/3W5V.pdb "
                 + "--structure examples/1gaq.txt --seqid \"1GAQ|A\" "
                 + "--structureimage " + testfiles
-                + "/1gaq.png --structure examples/3W5V.pdb "
+                + "/structureimage2-1gaq.png --structure examples/3W5V.pdb "
                 + "--seqid \"3W5V|A\" --structureimage " + testfiles
-                + "/3w5v.png --overwrite",
+                + "/structureimage2-3w5v.png --overwrite",
 
             new String[]
-            { testfiles + "/1gaq.png", testfiles + "/3w5v.png" } },
-        /*
+            { testfiles + "/structureimage2-3w5v.png",
+                testfiles + "/structureimage2-1gaq.png", } },
         { "--headless --noquit --open ./examples/1gaq.txt --append ./examples/3W5V.pdb "
                 + "--structure examples/1gaq.txt --seqid \"1GAQ|A\" "
                 + "--structureimage " + testfiles
-                + "/1gaq.png --structure examples/3W5V.pdb "
+                + "/structureimage3-1gaq.png --structure examples/3W5V.pdb "
                 + "--seqid \"3W5V|A\" --structureimage " + testfiles
-                + "/3w5v.png --overwrite",
-        
+                + "/structureimage3-3w5v.png --overwrite",
+
             new String[]
-            { testfiles + "/1gaq.png", testfiles + "/3w5v.png" } }
+            { testfiles + "/structureimage3-3w5v.png",
+                testfiles + "/structureimage3-1gaq.png", } }
+        /*
                 */
         //
     };