X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fbin%2FCommandLineOperations.java;h=09650ea94ef7354e4e050cc71ec4e818ddc33d78;hb=5247711ab4a6453614e2a9fb9307e6bae6a7b4a9;hp=991d8560b4b1a42e91024fe2cba033e48ff0434f;hpb=06fd47babe3c407fe5a6322c820eabd4d4dd4ca3;p=jalview.git diff --git a/test/jalview/bin/CommandLineOperations.java b/test/jalview/bin/CommandLineOperations.java index 991d856..09650ea 100644 --- a/test/jalview/bin/CommandLineOperations.java +++ b/test/jalview/bin/CommandLineOperations.java @@ -109,7 +109,6 @@ public class CommandLineOperations { BufferedReader outputReader = new BufferedReader( new InputStreamReader(ls2_proc.getInputStream())); - BufferedReader errorReader = new BufferedReader( new InputStreamReader(ls2_proc.getErrorStream())); worker = new Worker(ls2_proc); @@ -127,20 +126,19 @@ public class CommandLineOperations return worker; } - @BeforeTest + @BeforeTest(alwaysRun = true) public void initialize() { new CommandLineOperations(); } - - @BeforeTest + @BeforeTest(alwaysRun = true) public void setUpForHeadlessCommandLineInputOperations() throws IOException { String cmds = "nodisplay -open examples/uniref50.fa -sortbytree -props FILE -colour zappo " + "-jabaws http://www.compbio.dundee.ac.uk/jabaws -nosortbytree -dasserver nickname=www.test.com " - + "-features uniref50_test_features -annotations uniref50_test_annot -tree uniref50_test_tree"; + + "-features examples/testdata/plantfdx.features -annotations examples/testdata/plantfdx.annotations -tree examples/testdata/uniref50_test_tree"; Worker worker = jalviewDesktopRunner(true, cmds, 9000); String ln = null; while ((ln = worker.getOutputReader().readLine()) != null) @@ -150,7 +148,7 @@ public class CommandLineOperations } } - @BeforeTest + @BeforeTest(alwaysRun = true) public void setUpForCommandLineInputOperations() throws IOException { String cmds = "-open examples/uniref50.fa -noquestionnaire -nousagestats"; @@ -231,12 +229,15 @@ public class CommandLineOperations "Failed command : -nosortbytree" }, { "CMD [-dasserver nickname=www.test.com] executed successfully!", "Failed command : -dasserver nickname=www.test.com" }, - { "CMD [-features uniref50_test_features] executed successfully!", - "Failed command : -features uniref50_test_features" }, - { "CMD [-annotations uniref50_test_annot] executed successfully!", - "Failed command : -annotations uniref50_test_annot" }, - { "CMD [-tree uniref50_test_tree] executed successfully!", - "Failed command : -tree uniref50_test_tree" }, + { + "CMD [-features examples/testdata/plantfdx.features] executed successfully!", + "Failed command : -features examples/testdata/plantfdx.features" }, + { + "CMD [-annotations examples/testdata/plantfdx.annotations] executed successfully!", + "Failed command : -annotations examples/testdata/plantfdx.annotations" }, + { + "CMD [-tree examples/testdata/uniref50_test_tree] executed successfully!", + "Failed command : -tree examples/testdata/uniref50_test_tree" }, // non headless mode input operations { "CMD [-nousagestats] executed successfully!", "Failed command : -nousagestats" },