From 128a6aca2330923c3e47de8ec4013c8f4ceef47e Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 13 Mar 2023 19:52:26 +0000 Subject: [PATCH] JAL-629 teardown in CommandsTest --- test/jalview/bin/CommandsTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/jalview/bin/CommandsTest.java b/test/jalview/bin/CommandsTest.java index 9c763e1..bd67ded 100644 --- 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 org.testng.annotations.AfterMethod; 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); } + @AfterMethod(alwaysRun = true) + public void tearDown() + { + Desktop.instance.closeAll_actionPerformed(null); + } + @Test(groups = "Functional", dataProvider = "cmdLines") public void commandsOpenTest(String cmdLine, String sequence) { -- 1.7.10.2