/*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
private static class Worker extends Thread
{
private final Process process;
+
private BufferedReader outputReader;
+
private BufferedReader errorReader;
+
private Integer exit;
private Worker(Process process)
}
}
- @Test(groups =
- { "Functional" }, dataProvider = "allInputOpearationsData")
+ @Test(groups = { "Functional" }, dataProvider = "allInputOpearationsData")
public void testAllInputOperations(String expectedString,
String failureMsg)
{
Assert.assertTrue(successfulCMDs.contains(expectedString), failureMsg);
}
- @Test(groups =
- { "Functional" }, dataProvider = "headlessModeOutputOperationsData")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "headlessModeOutputOperationsData")
public void testHeadlessModeOutputOperations(String harg, String type,
String fileName, boolean withAWT, int expectedMinFileSize,
int timeout)
new File(fileName).delete();
}
-
@DataProvider(name = "allInputOpearationsData")
public Object[][] getHeadlessModeInputParams()
{
- return new Object[][]
- {
+ return new Object[][] {
// headless mode input operations
{ "CMD [-color zappo] executed successfully!",
"Failed command : -color zappo" },
{ "CMD [-nousagestats] executed successfully!",
"Failed command : -nousagestats" },
{ "CMD [-noquestionnaire] executed successfully!",
- "Failed command : -noquestionnaire nickname=www.test.com" }
- };
+ "Failed command : -noquestionnaire nickname=www.test.com" } };
}
-
+
@DataProvider(name = "headlessModeOutputOperationsData")
public static Object[][] getHeadlessModeOutputParams()
{
- return new Object[][]
- {
+ return new Object[][] {
{ "nodisplay -open examples/uniref50.fa", " -eps",
"test_uniref50_out.eps", true, 4096, 4000 },
{ "nodisplay -open examples/uniref50.fa", " -eps",
{ "headless -open examples/uniref50.fa", " -blc",
"test_uniref50_out.blc", true, 2096, 3000 },
{ "headless -open examples/uniref50.fa", " -jalview",
- "test_uniref50_out.jvp", true, 2096, 3000 },
- };
+ "test_uniref50_out.jvp", true, 2096, 3000 }, };
}
}