From: Jim Procter Date: Fri, 14 Feb 2020 14:27:46 +0000 (+0000) Subject: JAL-3529 more detailed asserts to detect whitespace in DBRefs imported from Stockholm X-Git-Tag: Develop-2_11_2_0-d20201215~35^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9028e7194ce7bc6d284671317bd4016694affbd1;p=jalview.git JAL-3529 more detailed asserts to detect whitespace in DBRefs imported from Stockholm --- diff --git a/test/jalview/io/StockholmFileTest.java b/test/jalview/io/StockholmFileTest.java index d8d524f..9004cdf 100644 --- a/test/jalview/io/StockholmFileTest.java +++ b/test/jalview/io/StockholmFileTest.java @@ -119,6 +119,11 @@ public class StockholmFileTest AlignmentI fromStockholm = af.readFile(toStockholm, DataSourceType.PASTE, FileFormat.Stockholm); SequenceI importedSeq = fromStockholm.getSequenceAt(0); + assertTrue(importedSeq.getDBRefs().length == 1, + "Expected just one database reference to be added to sequence."); + assertTrue( + importedSeq.getDBRefs()[0].getAccessionId().indexOf(" ") == -1, + "Spaces were found in accession ID."); List dbrefs = DBRefUtils.searchRefs(importedSeq.getDBRefs(), "P00224"); assertTrue(dbrefs.size() == 1,