From: Jim Procter Date: Tue, 18 Feb 2020 17:40:12 +0000 (+0000) Subject: JAL-3529 assert Uniprot refs must be provided as primary ‘AC’ ref X-Git-Tag: Develop-2_11_2_0-d20201215~35^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=79b76c7dbb5322cb7b188035fb2fdf676ee974fa;p=jalview.git JAL-3529 assert Uniprot refs must be provided as primary ‘AC’ ref --- diff --git a/test/jalview/io/StockholmFileTest.java b/test/jalview/io/StockholmFileTest.java index 9004cdf..a16aa07 100644 --- a/test/jalview/io/StockholmFileTest.java +++ b/test/jalview/io/StockholmFileTest.java @@ -114,7 +114,7 @@ public class StockholmFileTest String toStockholm = af.formatSequences(FileFormat.Stockholm, new Alignment(new SequenceI[] { sq }), false); - assertTrue(toStockholm.indexOf("P00224") > -1, + assertTrue(toStockholm.matches("AC\\s+P00224"), "Couldn't locate UNIPROT Accession in generated Stockholm file."); AlignmentI fromStockholm = af.readFile(toStockholm, DataSourceType.PASTE, FileFormat.Stockholm);