From 1715d6b603e31df13954d7f78998e46ad1375f05 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 1 Aug 2016 13:45:05 +0100 Subject: [PATCH] JAL-2164 clear the desktop before testStoreAndRecoverExpandedViews --- test/jalview/io/Jalview2xmlTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/jalview/io/Jalview2xmlTests.java b/test/jalview/io/Jalview2xmlTests.java index 915625f..2c55909 100644 --- a/test/jalview/io/Jalview2xmlTests.java +++ b/test/jalview/io/Jalview2xmlTests.java @@ -371,10 +371,12 @@ public class Jalview2xmlTests @Test(groups = { "Functional" }, enabled = true) public void testStoreAndRecoverExpandedviews() throws Exception { + Desktop.instance.closeAll_actionPerformed(null); AlignFrame af = new jalview.io.FileLoader().LoadFileWaitTillLoaded( "examples/exampleFile_2_7.jar", FormatAdapter.FILE); assertTrue("Didn't read in the example file correctly.", af != null); + Assert.assertEquals(Desktop.getAlignFrames().length, 1); String afid = af.getViewport().getSequenceSetId(); // check FileLoader returned a reference to the one alignFrame that is -- 1.7.10.2