From c4c5d134453fa4138d8857742ff05c09350d1283 Mon Sep 17 00:00:00 2001 From: bsoares Date: Tue, 31 Jul 2018 09:58:21 +0100 Subject: [PATCH] Stockholm file for test --- examples/rna_ss_test.stk | 6 ++++++ test/jalview/io/StockholmFileTest.java | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 examples/rna_ss_test.stk diff --git a/examples/rna_ss_test.stk b/examples/rna_ss_test.stk new file mode 100644 index 0000000..e716e0c --- /dev/null +++ b/examples/rna_ss_test.stk @@ -0,0 +1,6 @@ +# STOCKHOLM 1.0 +#=GF ID RNA.SS.TEST +#=GF TP RNA; +Test.sequence AAAAAA +#=GC SS_cons (EHhe) +// diff --git a/test/jalview/io/StockholmFileTest.java b/test/jalview/io/StockholmFileTest.java index 4273e6c..2427167 100644 --- a/test/jalview/io/StockholmFileTest.java +++ b/test/jalview/io/StockholmFileTest.java @@ -54,7 +54,8 @@ public class StockholmFileTest } static String PfamFile = "examples/PF00111_seed.stk", - RfamFile = "examples/RF00031_folded.stk"; + RfamFile = "examples/RF00031_folded.stk", + RnaSSTestFile = "examples/rna_ss_test.stk"; @Test(groups = { "Functional" }) public void pfamFileIO() throws Exception @@ -230,8 +231,8 @@ public class StockholmFileTest // we might want to revise this in future int aa_new_size = (aa_new == null ? 0 : aa_new.length); int aa_original_size = (aa_original == null ? 0 : aa_original.length); - Map orig_groups = new HashMap(); - Map new_groups = new HashMap(); + Map orig_groups = new HashMap<>(); + Map new_groups = new HashMap<>(); if (aa_new != null && aa_original != null) { -- 1.7.10.2