X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fanalysis%2FFinderTest.java;h=7e3bd86f2e341cc9ffd2e50396d3d5b2631defa1;hb=23deaf6a1371e81b2e6547d5df697bf60e442e84;hp=95e6c0dc52643b19ccd11da66fea2048f61d5275;hpb=3d2750d886f1b6015b2fc3f8671a6cf3e32bb07a;p=jalview.git diff --git a/test/jalview/analysis/FinderTest.java b/test/jalview/analysis/FinderTest.java index 95e6c0d..7e3bd86 100644 --- a/test/jalview/analysis/FinderTest.java +++ b/test/jalview/analysis/FinderTest.java @@ -123,6 +123,20 @@ public class FinderTest assertEquals(matches.get(1).getEnd(), 6); } + @Test(groups = "Functional") + public void testFind_findAll() + { + /* + * simple JAL-3765 test + * single symbol should find *all* matching symbols + */ + Finder f = new Finder(av); + f.findAll("M", false, false, false); + SearchResultsI sr = f.getSearchResults(); + assertEquals(sr.getCount(), 5); + + } + /** * Test for (undocumented) find residue by position */ @@ -562,7 +576,7 @@ public class FinderTest sg.addSequence(al.getSequenceAt(1), false); sg.addSequence(al.getSequenceAt(2), false); av.setSelectionGroup(sg); - + /* * search for 'e' should match two sequence ids and one residue */ @@ -628,8 +642,8 @@ public class FinderTest } /** - * Test that find does not report hidden positions, but does report matches that - * span hidden gaps + * Test that find does not report hidden positions, but does report matches + * that span hidden gaps */ @Test(groups = "Functional") public void testFind_withHiddenColumns() @@ -757,7 +771,7 @@ public class FinderTest * --bcdEFH * aa---aMMMMMaaa */ - + /* * hide columns 2-4 and 6-7 */ @@ -765,7 +779,7 @@ public class FinderTest hc.hideColumns(2, 4); hc.hideColumns(6, 7); al.setHiddenColumns(hc); - + /* * select rows 2-3 */