JAL-3765 fix test
authorJim Procter <jprocter@issues.jalview.org>
Tue, 20 Oct 2020 16:23:30 +0000 (17:23 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 28 Oct 2020 15:40:42 +0000 (15:40 +0000)
test/jalview/analysis/FinderTest.java

index 95e6c0d..1f45f70 100644 (file)
@@ -123,6 +123,19 @@ public class FinderTest
     assertEquals(matches.get(1).getEnd(), 6);
   }
 
     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
    */
   /**
    * Test for (undocumented) find residue by position
    */