From: Jim Procter Date: Mon, 19 Oct 2020 17:07:29 +0000 (+0100) Subject: JAL-3765 simple test that findAll finds all matches for a pattern when it is present... X-Git-Tag: Release_2_11_1_3~11^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7428d315297907b3bb52ddb099a348acffb87636;p=jalview.git JAL-3765 simple test that findAll finds all matches for a pattern when it is present multiple times in a sequence --- diff --git a/test/jalview/analysis/FinderTest.java b/test/jalview/analysis/FinderTest.java index 95e6c0d..764c56f 100644 --- a/test/jalview/analysis/FinderTest.java +++ b/test/jalview/analysis/FinderTest.java @@ -82,6 +82,16 @@ public class FinderTest DataSourceType.PASTE); av = af.getViewport(); al = av.getAlignment(); + + // JAL-3765 bug test data + String longSeqData = + ">O80429_MAIZE/2-140 Ferredoxin\n" + + "AAT---------ALSMSILR---APPPCFSSPLRLRV--AVAKPLA-APMRRQLLRAQATYNVKLITPEGEV\n" + + "ELQVPDDVYILDFAEEEGIDLPFSCRAGSCSSCAGKVVSGSVDQSDQSFLNDNQVADGWVLTCAAYPTSDVV\n" + + "IETHKEDDLL--\n" ; + af_oneseq=new FileLoader().LoadFileWaitTillLoaded(longSeqData, DataSourceType.PASTE); + av_oneseq = af_oneseq.getViewport(); + al_oneseq = av_oneseq.getAlignment(); } @AfterMethod(alwaysRun = true)