X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fbin%2FCommandLineOperations.java;h=0ab18d91a8a10424260404b0d188926e406833fb;hb=b5fade85256c0fbcedd48b078a31e8c2ac86ba1e;hp=cf21c3ae2de1cab3c61b8bd82f1f4614d1dfba29;hpb=32a2c42a535d809dfcb48db1e8cc91bb03193f8e;p=jalview.git diff --git a/test/jalview/bin/CommandLineOperations.java b/test/jalview/bin/CommandLineOperations.java index cf21c3a..0ab18d9 100644 --- a/test/jalview/bin/CommandLineOperations.java +++ b/test/jalview/bin/CommandLineOperations.java @@ -34,7 +34,6 @@ import java.util.ArrayList; import org.testng.Assert; import org.testng.FileAssert; import org.testng.annotations.BeforeClass; -import org.testng.annotations.BeforeTest; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; @@ -53,10 +52,8 @@ public class CommandLineOperations JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); } - private static final int TEST_TIMEOUT = 13000; // Note longer timeout needed - // on - // full test run than on - // individual tests + // Note longer timeout needed on full test run than on individual tests + private static final int TEST_TIMEOUT = 23000; private static final int SETUP_TIMEOUT = 9500; @@ -215,19 +212,19 @@ public class CommandLineOperations } } - @BeforeTest(alwaysRun = true) + @BeforeClass(alwaysRun = true) public void initialize() { new CommandLineOperations(); } - @BeforeTest(alwaysRun = true) + @BeforeClass(alwaysRun = true) public void setUpForHeadlessCommandLineInputOperations() throws IOException { String cmds = "nodisplay -open examples/uniref50.fa -sortbytree -props test/jalview/bin/testProps.jvprops -colour zappo " + "-jabaws http://www.compbio.dundee.ac.uk/jabaws -nosortbytree " - + "-features examples/testdata/plantfdx.features -annotations examples/testdata/plantfdx.annotations -tree examples/testdata/uniref50_test_tree --debug"; + + "-features examples/testdata/plantfdx.features -annotations examples/testdata/plantfdx.annotations -tree examples/testdata/uniref50_test_tree"; Worker worker = getJalviewDesktopRunner(true, cmds, SETUP_TIMEOUT); String ln = null; while ((ln = worker.getOutputReader().readLine()) != null) @@ -241,10 +238,10 @@ public class CommandLineOperations } } - @BeforeTest(alwaysRun = true) + @BeforeClass(alwaysRun = true) public void setUpForCommandLineInputOperations() throws IOException { - String cmds = "-open examples/uniref50.fa -noquestionnaire -nousagestats --debug"; + String cmds = "-open examples/uniref50.fa -noquestionnaire -nousagestats"; final Worker worker = getJalviewDesktopRunner(false, cmds, SETUP_TIMEOUT); @@ -263,7 +260,7 @@ public class CommandLineOperations int count = 0; try { - while ((ln = worker.getErrorReader().readLine()) != null) + while ((ln = worker.getOutputReader().readLine()) != null) { System.out.println(ln); successfulCMDs.add(ln); @@ -342,8 +339,8 @@ public class CommandLineOperations { return new Object[][] { // headless mode input operations - { "CMD [-color zappo] executed successfully!", - "Failed command : -color zappo" }, + { "CMD [-colour zappo] executed successfully!", + "Failed command : -colour zappo" }, { "CMD [-props test/jalview/bin/testProps.jvprops] executed successfully!", "Failed command : -props File" }, { "CMD [-sortbytree] executed successfully!", @@ -375,9 +372,11 @@ public class CommandLineOperations // since it works. // https://issues.jalview.org/browse/JAL-1889?focusedCommentId=21609&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-21609 String workingDir = "test/jalview/bin/"; - return new Object[][] { { "nodisplay -open examples/uniref50.fa", - " -eps", workingDir + "test_uniref50_out.eps", true, - MINFILESIZE_BIG, TEST_TIMEOUT }, + return new Object[][] { + // + { "nodisplay -open examples/uniref50.fa", " -eps", + workingDir + "test_uniref50_out.eps", true, MINFILESIZE_BIG, + TEST_TIMEOUT }, { "nodisplay -open examples/uniref50.fa", " -eps", workingDir + "test_uniref50_out.eps", false, MINFILESIZE_BIG, TEST_TIMEOUT }, @@ -422,6 +421,8 @@ public class CommandLineOperations TEST_TIMEOUT }, { "headless -open examples/uniref50.fa", " -jalview", workingDir + "test_uniref50_out.jvp", true, MINFILESIZE_SMALL, - TEST_TIMEOUT }, }; + TEST_TIMEOUT }, + // + }; } }