Merge branch 'develop' into trialMerge
[jalview.git] / test / jalview / io / vcf / VCFLoaderTest.java
index 58c73dd..8fcf8f5 100644 (file)
@@ -66,7 +66,7 @@ public class VCFLoaderTest
       // insertion G/GA is transferred to nucleotide but not to peptide
       "17\t45051613\t.\tG\tGA,C\t1666.64\tRF\tAC=15;AF=3.0e-03,2.0e-03" };
 
-  @BeforeClass
+  @BeforeClass(alwaysRun = true)
   public void setUp()
   {
     /*
@@ -75,6 +75,7 @@ public class VCFLoaderTest
     Cache.loadProperties("test/jalview/io/testProps.jvprops");
     Cache.setProperty("VCF_FIELDS", ".*");
     Cache.setProperty("VEP_FIELDS", ".*");
+    Cache.setProperty("VCF_ASSEMBLY", "GRCh38=GRCh38");
     Cache.initLogger();
   }
 
@@ -167,7 +168,7 @@ public class VCFLoaderTest
      * verify SNP variant feature(s) computed and added to protein
      * first codon AGC varies to ACC giving S/T
      */
-    DBRefEntry[] dbRefs = al.getSequenceAt(1).getDBRefs();
+    List<DBRefEntry> dbRefs = al.getSequenceAt(1).getDBRefs();
     SequenceI peptide = null;
     for (DBRefEntry dbref : dbRefs)
     {
@@ -434,7 +435,7 @@ public class VCFLoaderTest
      * verify variant feature(s) computed and added to protein
      * last codon GCT varies to GGT giving A/G in the last peptide position
      */
-    DBRefEntry[] dbRefs = al.getSequenceAt(3).getDBRefs();
+    List<DBRefEntry> dbRefs = al.getSequenceAt(3).getDBRefs();
     SequenceI peptide = null;
     for (DBRefEntry dbref : dbRefs)
     {
@@ -594,7 +595,7 @@ public class VCFLoaderTest
      * and GAG/GGG which is E/G in position 4
      * the insertion variant is not transferred to the peptide
      */
-    DBRefEntry[] dbRefs = al.findName("transcript3").getDBRefs();
+    List<DBRefEntry> dbRefs = al.findName("transcript3").getDBRefs();
     SequenceI peptide = null;
     for (DBRefEntry dbref : dbRefs)
     {