From: gmungoc Date: Wed, 23 Aug 2017 10:48:20 +0000 (+0100) Subject: JAL-2481 a smidgin more test coverage of findFeatures X-Git-Tag: Release_2_10_3b1~146 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=71827ba619fa1c06b2d5dd327f2cd204588867e6;p=jalview.git JAL-2481 a smidgin more test coverage of findFeatures --- diff --git a/test/jalview/datamodel/SequenceTest.java b/test/jalview/datamodel/SequenceTest.java index 2f824ca..6844072 100644 --- a/test/jalview/datamodel/SequenceTest.java +++ b/test/jalview/datamodel/SequenceTest.java @@ -1358,6 +1358,10 @@ public class SequenceTest SequenceFeature sfContactFG = new SequenceFeature("Disulfide Bond", "desc", 13, 14, 2f, null); sq.addSequenceFeature(sfContactFG); + // add single position feature at [I] + SequenceFeature sfI = new SequenceFeature("Disulfide Bond", + "desc", 16, 16, null); + sq.addSequenceFeature(sfI); // no features in columns 1-2 (-A) List found = sq.findFeatures(1, 2); @@ -1384,6 +1388,11 @@ public class SequenceTest // columns 10-11 (--) should find nothing found = sq.findFeatures(10, 11); assertEquals(0, found.size()); + + // columns 14-14 (I) should find variant feature + found = sq.findFeatures(14, 14); + assertEquals(1, found.size()); + assertTrue(found.contains(sfI)); } @Test(groups = { "Functional" })