JAL-1756 fix failed test as a result of runing the BioJS updater from a new thread
[jalview.git] / test / jalview / io / AnnotationFileIOTest.java
index 3d4e841..0962452 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -115,13 +115,12 @@ public class AnnotationFileIOTest
               new AnnotationFile().readAnnotationFile(al, cs, af,
                       FormatAdapter.FILE));
 
-      ViewDef[] v = new ViewDef[1];
       AnnotationFile aff = new AnnotationFile();
-      v[0] = aff.new ViewDef(null, al.getHiddenSequences(), cs,
+      ViewDef v = aff.new ViewDef(null, al.getHiddenSequences(), cs,
               new Hashtable());
       String anfileout = new AnnotationFile().printAnnotations(
               al.getAlignmentAnnotation(), al.getGroups(),
-              al.getProperties(), v);
+              al.getProperties(), null, al, v);
       assertTrue(
               "Test "
                       + testname