JAL-3529 assert Uniprot refs must be provided as primary ‘AC’ ref
authorJim Procter <jprocter@issues.jalview.org>
Tue, 18 Feb 2020 17:40:12 +0000 (17:40 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 18 Feb 2020 17:40:12 +0000 (17:40 +0000)
test/jalview/io/StockholmFileTest.java

index 9004cdf..a16aa07 100644 (file)
@@ -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);