From: Jim Procter Date: Tue, 15 Jan 2019 11:19:39 +0000 (+0000) Subject: JAL-1767 patch buggy PCA view association test X-Git-Tag: Release_2_11_1_0~78^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2c8ef0f88ce90532213c36613b83aa283320b72d;p=jalview.git JAL-1767 patch buggy PCA view association test --- diff --git a/test/jalview/project/Jalview2xmlTests.java b/test/jalview/project/Jalview2xmlTests.java index a0f1f6d..fb2d3e9 100644 --- a/test/jalview/project/Jalview2xmlTests.java +++ b/test/jalview/project/Jalview2xmlTests.java @@ -1151,7 +1151,14 @@ public class Jalview2xmlTests extends Jalview2xmlBase "PCA and the tabbed alignment view should be the only two windows on the desktop"); PCAPanel pcaPanel = (PCAPanel) frames[frames[0] == af ? 1 : 0]; - AlignmentViewPanel restoredNewView = af.getAlignPanels().get(1); + AlignmentViewPanel restoredNewView = null; + for (AlignmentViewPanel alignpanel : Desktop.getAlignmentPanels(null)) + { + if (alignpanel.getAlignViewport() == pcaPanel.getAlignViewport()) + { + restoredNewView = alignpanel; + } + } assertEquals(restoredNewView.getViewName(), PCAVIEWNAME); assertTrue( restoredNewView.getAlignViewport() == pcaPanel