cbb7f24e748bf5c7d34f4dc41021381971d6e332
[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().getDataset()
32                     .getCodonFrames().size());
33
34
35   }
36   // @Test
37   // public final void testPrintGFFFormatSequenceIArrayMapOfStringObject()
38   // {
39   // fail("Not yet implemented");
40   // }
41   //
42   // @Test
43   // public final void testAlignFileBooleanStringString()
44   // {
45   // fail("Not yet implemented");
46   // }
47
48 }