From ae3a5e9ecc087f6ada0cee07efde4b0d0ba76a41 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 18 Apr 2014 16:18:36 +0100 Subject: [PATCH] JAL-1478 test to demonstrate bug --- examples/testdata/test_grpannot.jva | 5 +++++ test/jalview/io/AnnotationFileIOTest.java | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 examples/testdata/test_grpannot.jva 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 -- 1.7.10.2