X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FJalview2xmlTests.java;h=dc192344d467b59af43910b00c885d97ff59dad8;hb=47168f025aefdaa044802bd5f8f510ffe43a4808;hp=e294616a25727a781d440d606b2cc363a4967a1c;hpb=be1777c33711ef0c9f1014ad6d47c7c2021b2526;p=jalview.git diff --git a/test/jalview/io/Jalview2xmlTests.java b/test/jalview/io/Jalview2xmlTests.java index e294616..dc19234 100644 --- a/test/jalview/io/Jalview2xmlTests.java +++ b/test/jalview/io/Jalview2xmlTests.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) + * Copyright (C) 2014 The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.io; import static org.junit.Assert.*; @@ -5,6 +25,7 @@ import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.SequenceGroup; import jalview.datamodel.SequenceI; import jalview.gui.AlignFrame; +import jalview.gui.Desktop; import jalview.schemes.AnnotationColourGradient; import jalview.schemes.ColourSchemeI; @@ -166,4 +187,13 @@ public class Jalview2xmlTests assertTrue("Got Different group sequence colours", diffgseqcols); System.out.println("Per sequence (Group) colourscheme successfully applied and recovered."); } + @Test + public void gatherViewsHere() throws Exception + { + int origCount = Desktop.getAlignframes().length; + 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); + assertTrue("Didn't gather the views in the example file.", Desktop.getAlignframes().length==1+origCount); + + } }