JAL-1478 test to demonstrate bug
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 18 Apr 2014 15:18:36 +0000 (16:18 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 21 Apr 2014 13:09:19 +0000 (14:09 +0100)
examples/testdata/test_grpannot.jva [new file with mode: 0644]
test/jalview/io/AnnotationFileIOTest.java

diff --git a/examples/testdata/test_grpannot.jva b/examples/testdata/test_grpannot.jva
new file mode 100644 (file)
index 0000000..1259bdc
--- /dev/null
@@ -0,0 +1,5 @@
+JALVIEW_ANNOTATION
+
+SEQUENCE_GROUP mygrpa  1       10      -1      FER_CAPAA       FER_SPIOL       FER1_MAIZE
+SEQUENCE_GROUP another group   150     250     -1      FER1_MAIZE
+
index cfbc884..7d6a15f 100644 (file)
@@ -30,9 +30,19 @@ import org.junit.Test;
 public class AnnotationFileIOTest
 {
 
-  static String TestFiles[][] = {{ "Test example annotation import/export","examples/uniref50.fa", "examples/testdata/example_annot_file.jva" }
-          ,{"Test multiple combine annotation statements import/export","examples/uniref50.fa", "examples/testdata/test_combine_annot.jva"}
-          ,{"Test multiple combine annotation statements with sequence_ref import/export","examples/uniref50.fa", "examples/testdata/uniref50_iupred.jva"}};
+  static String TestFiles[][] =
+  {
+      { "Test example annotation import/export", "examples/uniref50.fa",
+          "examples/testdata/example_annot_file.jva" },
+      { "Test multiple combine annotation statements import/export",
+          "examples/uniref50.fa",
+          "examples/testdata/test_combine_annot.jva" },
+      {
+          "Test multiple combine annotation statements with sequence_ref import/export",
+          "examples/uniref50.fa", "examples/testdata/uniref50_iupred.jva" },
+      {
+          "Test group only annotation file parsing results in parser indicating annotation was parsed",
+          "examples/uniref50.fa", "examples/testdata/test_grpannot.jva" } };
 
   @Test
   public void exampleAnnotationFileIO() throws Exception