From: Jim Procter Date: Mon, 1 Aug 2016 12:45:05 +0000 (+0100) Subject: JAL-2164 clear the desktop before testStoreAndRecoverExpandedViews X-Git-Tag: Release_2_10_0~126^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1715d6b603e31df13954d7f78998e46ad1375f05;p=jalview.git JAL-2164 clear the desktop before testStoreAndRecoverExpandedViews --- 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