JAL-653 JAL-845 test to check exonerate cDNA-Protein mappings import as GFF3
[jalview.git] / test / jalview / io / Gff3tests.java
1 package jalview.io;
2
3 import jalview.gui.AlignFrame;
4
5 import org.junit.Assert;
6 import org.junit.Test;
7
8 public class Gff3tests
9 {
10
11   private static String exonerateSeqs = "examples/testdata/exonerateseqs.fa",
12           exonerateOutput = "examples/testdata/exonerateoutput.gff";
13
14   @Test
15   public void testExonerateImport()
16   {
17     // exonerate does not tag sequences after features, so we have a more
18     // conventional annotation import test here
19
20     FileLoader loader = new FileLoader(false);
21
22     AlignFrame af = loader.LoadFileWaitTillLoaded(exonerateSeqs,
23             FormatAdapter.FILE);
24
25     Assert.assertEquals("Unexpected number of DNA protein associations", 0,
26             af.getViewport().getAlignment().getCodonFrames().size());
27
28     af.loadJalviewDataFile(exonerateOutput, FormatAdapter.FILE, null, null);
29
30     Assert.assertNotEquals("Expected at least one DNA protein association",
31             0, af.getViewport().getAlignment().getCodonFrames().size());
32
33
34   }
35   // @Test
36   // public final void testPrintGFFFormatSequenceIArrayMapOfStringObject()
37   // {
38   // fail("Not yet implemented");
39   // }
40   //
41   // @Test
42   // public final void testAlignFileBooleanStringString()
43   // {
44   // fail("Not yet implemented");
45   // }
46
47 }