JAL-3531 failing test
authorJim Procter <jprocter@issues.jalview.org>
Fri, 14 Feb 2020 14:40:10 +0000 (14:40 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 14 Feb 2020 14:42:51 +0000 (14:42 +0000)
test/jalview/util/DBRefUtilsTest.java

index 0368d1e..ca5bca3 100644 (file)
@@ -135,6 +135,11 @@ public class DBRefUtilsTest
     assertEquals("1.2", ref.getVersion());
     assertEquals("a7890", ref.getAccessionId());
     assertTrue(seq.getAllPDBEntries().isEmpty());
+    SequenceI seq2 = new Sequence("Seq2", "ABCD");
+    // Check that whitespace doesn't confuse parseToDbRef
+    DBRefEntry ref2 = DBRefUtils.parseToDbRef(seq2, "EMBL", "1.2",
+            " a7890");
+    assertEquals(ref, ref2);
   }
 
   /**