From 9028e7194ce7bc6d284671317bd4016694affbd1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 14 Feb 2020 14:27:46 +0000 Subject: [PATCH] JAL-3529 more detailed asserts to detect whitespace in DBRefs imported from Stockholm --- test/jalview/io/StockholmFileTest.java | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 1.7.10.2