JAL-3821 failing test
[jalview.git] / test / jalview / io / EmblFlatFileTest.java
index ee853f3..7775c8f 100644 (file)
@@ -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<SequenceI> seqs = parser.getSeqs();
+    assertTrue(seqs.get(0).getSequenceAsString().indexOf("u")>-1);
+  }
 
   @Test(groups = "Functional")
   public void testParse_codonStartNot1()