+ @Test(groups = "Functional")
+ public void argFilesGlobAndSubstitutionsTest() throws IOException
+ {
+ cleanupArgfilesImages();
+ String cmdLine = "--headless --argfile=" + testfiles
+ + "/dir*/argfile.txt";
+ String[] args = cmdLine.split("\\s+");
+ Jalview.main(args);
+ Commands cmds = Jalview.getInstance().getCommands();
+ File file1 = new File(png1);
+ File file2 = new File(png2);
+ Assert.assertTrue(file1.exists(),
+ "Did not make file " + png1 + " from argfile");
+ Assert.assertTrue(file2.exists(),
+ "Did not make file " + png2 + " from argfile");
+ long size1 = Files.size(file1.toPath());
+ long size2 = Files.size(file2.toPath());
+ Assert.assertTrue(file1.isFile() && size1 > 0);
+ Assert.assertTrue(file2.isFile() && size2 > 0);
+ Assert.assertTrue(size2 > size1); // png2 has three sequences, png1 has 2
+ cleanupArgfilesImages();
+ }
+