X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FEmblFlatFileTest.java;h=7775c8f3c10c0da55da7f71f889f719688113ec0;hb=d85279450741df748b662ca0e7757a489b8c6d01;hp=ee853f36a5d6305af4148e5aacc25e28bfd2dd37;hpb=f42cec3b999bbed0ce85045760b55701c527da32;p=jalview.git 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()