From: Jim Procter Date: Wed, 7 Feb 2018 16:56:44 +0000 (+0000) Subject: JAL-2780 JAL-2891 clear all windows always beforeTest for Jalview2XmlBase X-Git-Tag: Release_2_10_4~68^2~28 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=92c318069f0358002bf5684a4a6f6b58bd6234e5;p=jalview.git JAL-2780 JAL-2891 clear all windows always beforeTest for Jalview2XmlBase --- diff --git a/test/jalview/io/Jalview2xmlBase.java b/test/jalview/io/Jalview2xmlBase.java index 15e18e3..fbdd782 100644 --- a/test/jalview/io/Jalview2xmlBase.java +++ b/test/jalview/io/Jalview2xmlBase.java @@ -76,7 +76,8 @@ public class Jalview2xmlBase @BeforeTest(alwaysRun = true) public static void clearDesktop() { - if (Desktop.instance != null && Desktop.getAlignFrames() != null) + if (Desktop.instance != null && Desktop.getFrames() != null + && Desktop.getFrames().length > 0) { Desktop.instance.closeAll_actionPerformed(null); }