JAL-3529 assert Uniprot refs must be provided as primary ‘AC’ ref
[jalview.git] / 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);