X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fschemes%2FClustalxColourSchemeTest.java;h=d476d6e21cafe81f73aaf6032780d380f6fea5b0;hb=4bc5c1c97bd08007b2ac9ccfd9b3cb29eac10193;hp=d35ca76ecdbfcbd3b81ffa73132440377919ef67;hpb=136c0793b90b72b928c4d77dc109dd5c644e00d3;p=jalview.git diff --git a/test/jalview/schemes/ClustalxColourSchemeTest.java b/test/jalview/schemes/ClustalxColourSchemeTest.java index d35ca76..d476d6e 100644 --- a/test/jalview/schemes/ClustalxColourSchemeTest.java +++ b/test/jalview/schemes/ClustalxColourSchemeTest.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ 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.schemes; import static org.testng.Assert.assertEquals; @@ -87,7 +107,7 @@ public class ClustalxColourSchemeTest } // @formatter:on - + /** * Test for colour calculation when the consensus percentage ignores gapped * sequences @@ -107,7 +127,7 @@ public class ClustalxColourSchemeTest DataSourceType.PASTE); AlignmentI al = af.getViewport().getAlignment(); ClustalxColourScheme cs = new ClustalxColourScheme(al, null); - + /* * column 1 is 66% C which is above Clustalx threshold of 60% */ @@ -131,4 +151,12 @@ public class ClustalxColourSchemeTest // viewport // assertEquals(cs.findColour('C', 0, al.getSequenceAt(0)), clustalPink); } + @Test + public void testDocString() + { + /* verify we have some sort of useful output */ + ClustalxColourScheme x = new ClustalxColourScheme(); + String out = x.toRuleRep(); + System.out.print(out); + } }