From 115b633239d47d2158d8e0fd1803fc0c2a15c676 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 27 Apr 2014 16:06:09 +0100 Subject: [PATCH] test for JAL-952 --- test/jalview/io/Jalview2xmlTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/jalview/io/Jalview2xmlTests.java b/test/jalview/io/Jalview2xmlTests.java index 4ef038a..3a69595 100644 --- a/test/jalview/io/Jalview2xmlTests.java +++ b/test/jalview/io/Jalview2xmlTests.java @@ -57,6 +57,8 @@ public class Jalview2xmlTests assertTrue("Didn't read input file "+inFile, af!=null); int olddsann=countDsAnn(af.getViewport()); assertTrue("Didn't find any dataset annotations",olddsann>0); + af.rnahelicesColour_actionPerformed(null); + assertTrue("Couldn't apply RNA helices colourscheme",af.getViewport().getGlobalColourScheme() instanceof jalview.schemes.RNAHelicesColour); assertTrue("Failed to store as a project.",af.saveAlignment(tfile, "Jalview")); af.closeMenuItem_actionPerformed(true); af=null; @@ -65,6 +67,7 @@ public class Jalview2xmlTests int newdsann=countDsAnn(af.getViewport()); assertTrue("Differing numbers of dataset sequence annotation\nOriginally "+olddsann+" and now "+newdsann,olddsann==newdsann); System.out.println("Read in same number of annotations as originally present ("+olddsann+")"); + assertTrue("RNA helices colourscheme was not applied on import.",af.getViewport().getGlobalColourScheme() instanceof jalview.schemes.RNAHelicesColour); } @Test public void testTCoffeeScores() throws Exception @@ -93,5 +96,4 @@ public class Jalview2xmlTests assertTrue("Didn't set T-coffee colourscheme for imported project.",af.getViewport().getGlobalColourScheme().getClass().equals(jalview.schemes.TCoffeeColourScheme.class)); System.out.println("T-Coffee score shading successfully recovered from project."); } - } -- 1.7.10.2