From: Jim Procter Date: Fri, 18 Apr 2014 15:18:36 +0000 (+0100) Subject: JAL-1478 test to demonstrate bug X-Git-Tag: Jalview_2_9~123^2~36 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ae3a5e9ecc087f6ada0cee07efde4b0d0ba76a41;p=jalview.git JAL-1478 test to demonstrate bug --- diff --git a/examples/testdata/test_grpannot.jva b/examples/testdata/test_grpannot.jva new file mode 100644 index 0000000..1259bdc --- /dev/null +++ b/examples/testdata/test_grpannot.jva @@ -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 + diff --git a/test/jalview/io/AnnotationFileIOTest.java b/test/jalview/io/AnnotationFileIOTest.java index cfbc884..7d6a15f 100644 --- a/test/jalview/io/AnnotationFileIOTest.java +++ b/test/jalview/io/AnnotationFileIOTest.java @@ -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