From 722717410cce1e398f1153bdf23ed96b79e40e8a Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 23 Sep 2021 17:00:53 +0100 Subject: [PATCH] JAL-3821 failing test --- test/jalview/io/EmblFlatFileTest.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/jalview/io/EmblFlatFileTest.java b/test/jalview/io/EmblFlatFileTest.java index ee853f3..7775c8f 100644 --- a/test/jalview/io/EmblFlatFileTest.java +++ b/test/jalview/io/EmblFlatFileTest.java @@ -230,6 +230,22 @@ public class EmblFlatFileTest } assertEquals(uniprotCount, 8); } + /** + * A fairly tough test, using J03321 (circular DNA), which has 8 CDS features, + * one of them reverse strand + * + * @throws MalformedURLException + * @throws IOException + */ + @Test(groups = "Functional") + public void testParseToRNA() throws MalformedURLException, IOException + { + File dataFile = new File("test/jalview/io/J03321_rna.embl.txt"); + FileParse fp = new FileParse(dataFile, DataSourceType.FILE); + EmblFlatFile parser = new EmblFlatFile(fp, "EmblTest"); + List seqs = parser.getSeqs(); + assertTrue(seqs.get(0).getSequenceAsString().indexOf("u")>-1); + } @Test(groups = "Functional") public void testParse_codonStartNot1() -- 1.7.10.2