From 71827ba619fa1c06b2d5dd327f2cd204588867e6 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 23 Aug 2017 11:48:20 +0100 Subject: [PATCH] JAL-2481 a smidgin more test coverage of findFeatures --- test/jalview/datamodel/SequenceTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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" }) -- 1.7.10.2