JAL-629 Added --all arg, [*] linkedId and functionality to apply some args to all...
[jalview.git] / test / jalview / bin / argparser / ArgParserTest.java
index b724af0..8d4540a 100644 (file)
@@ -259,4 +259,25 @@ public class ArgParserTest
         "--argfile=test/jalview/bin/argparser/testfiles/argfile0.txt --open=shouldntbeabootstrap",
         Arg.ARGFILE, "test/jalview/bin/argfiles/testfiles/test1.fa" } };
   }
+
+  @DataProvider(name = "allLinkedIdData")
+  public Object[][] allLinkedIdData()
+  {
+    return new Object[][] {
+        //
+        { "--open=test/jalview/bin/argparser/testfiles/*.fa --substitutions --all --output={dirname}/{basename}.stk --close",
+            Arg.OUTPUT, new String[]
+            { "test/jalview/bin/argfiles/testfiles/test1.stk",
+                "test/jalview/bin/argfiles/testfiles/test2.stk",
+                "test/jalview/bin/argfiles/testfiles/test3.stk", } },
+        { "--open=test/jalview/bin/argparser/testfiles/*.fa --substitutions --all --image={dirname}/{basename}.png --close",
+            Arg.IMAGE, new String[]
+            { "test/jalview/bin/argfiles/testfiles/test1.png",
+                "test/jalview/bin/argfiles/testfiles/test2.png",
+                "test/jalview/bin/argfiles/testfiles/test3.png", } },
+        { "--open=test/jalview/bin/argparser/testfiles/*.fa --substitutions --all --image={dirname}/{basename}.png --close",
+            Arg.CLOSE, null },
+        //
+    };
+  }
 }