From: Jim Procter Date: Fri, 13 Nov 2015 15:22:17 +0000 (+0000) Subject: JAL-1965 test asserts no partial word matches can be retrieved X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cba94dacdc6c6cbd9ce811b52cd1dcfe3018f84b;p=jalview.git JAL-1965 test asserts no partial word matches can be retrieved --- diff --git a/test/jalview/analysis/SequenceIdMatcherTest.java b/test/jalview/analysis/SequenceIdMatcherTest.java index 325a0c4..76e34d9 100644 --- a/test/jalview/analysis/SequenceIdMatcherTest.java +++ b/test/jalview/analysis/SequenceIdMatcherTest.java @@ -157,4 +157,12 @@ public class SequenceIdMatcherTest } + @Test(groups = { "Functional" }) + public void testPartialNotMatch() + { + SequenceI[] match = getWordMatcher().findAllIdMatches("complex"); + Assert.assertNull(match, + "Partial match of 'complex' to any of sequences shouldn't yield a match."); + } + }