git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dd27b3a
)
JAL-629 teardown in CommandsTest
author
Ben Soares
<b.soares@dundee.ac.uk>
Mon, 13 Mar 2023 19:52:26 +0000
(19:52 +0000)
committer
Ben Soares
<b.soares@dundee.ac.uk>
Mon, 13 Mar 2023 19:52:26 +0000
(19:52 +0000)
test/jalview/bin/CommandsTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/bin/CommandsTest.java
b/test/jalview/bin/CommandsTest.java
index
9c763e1
..
bd67ded
100644
(file)
--- a/
test/jalview/bin/CommandsTest.java
+++ b/
test/jalview/bin/CommandsTest.java
@@
-3,6
+3,7
@@
package jalview.bin;
import java.util.Date;
import org.testng.Assert;
import java.util.Date;
import org.testng.Assert;
+import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@@
-30,6
+31,12
@@
public class CommandsTest
JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
}
JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
}
+ @AfterMethod(alwaysRun = true)
+ public void tearDown()
+ {
+ Desktop.instance.closeAll_actionPerformed(null);
+ }
+
@Test(groups = "Functional", dataProvider = "cmdLines")
public void commandsOpenTest(String cmdLine, String sequence)
{
@Test(groups = "Functional", dataProvider = "cmdLines")
public void commandsOpenTest(String cmdLine, String sequence)
{