From 2a588edcd2b5ebd520bfa6956114d7ef3e1ddea4 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 9 Jun 2020 16:08:28 +0100 Subject: [PATCH] JAL-3446 tearDown to fix unit test fail --- .../renderer/seqfeatures/FeatureRendererTest.java | 24 ++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/test/jalview/renderer/seqfeatures/FeatureRendererTest.java b/test/jalview/renderer/seqfeatures/FeatureRendererTest.java index 2e04ecb..679ba6b 100644 --- a/test/jalview/renderer/seqfeatures/FeatureRendererTest.java +++ b/test/jalview/renderer/seqfeatures/FeatureRendererTest.java @@ -27,6 +27,16 @@ import static org.testng.Assert.assertNull; import static org.testng.Assert.assertSame; import static org.testng.Assert.assertTrue; +import java.awt.Color; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.testng.annotations.AfterMethod; +import org.testng.annotations.Test; + import jalview.analysis.GeneticCodes; import jalview.api.AlignViewportI; import jalview.api.FeatureColourI; @@ -46,17 +56,13 @@ import jalview.schemes.FeatureColour; import jalview.util.matcher.Condition; import jalview.viewmodel.seqfeatures.FeatureRendererModel.FeatureSettingsBean; -import java.awt.Color; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.testng.annotations.Test; - public class FeatureRendererTest { + @AfterMethod(alwaysRun = true) + public void tearDown() + { + Desktop.getInstance().closeAll_actionPerformed(null); + } @Test(groups = "Functional") public void testFindAllFeatures() -- 1.7.10.2