Merge branch 'develop' into features/JAL-653_gffalignments
[jalview.git] / test / jalview / io / BioJsHTMLOutputTest.java
index 134d84f..ac2b599 100644 (file)
@@ -21,11 +21,10 @@ public class BioJsHTMLOutputTest
   @Test
   public void getJalviewAlignmentAsJsonString()
   {
-    BioJsHTMLOutput bioJsHtmlOutput = new BioJsHTMLOutput(null, null);
     String bjsTemplate = null;
     try
     {
-      bioJsHtmlOutput.updateBioJS();
+      BioJsHTMLOutput.updateBioJS();
       try
       {
         // allow the update some three seconds to complete before getting latest
@@ -47,10 +46,9 @@ public class BioJsHTMLOutputTest
   @Test(expected = NullPointerException.class)
   public void expectedNullPointerException()
   {
-    BioJsHTMLOutput bjs = new BioJsHTMLOutput(null, null);
     try
     {
-      bjs.refreshBioJSVersionsInfo(null);
+      BioJsHTMLOutput.refreshBioJSVersionsInfo(null);
     } catch (URISyntaxException e)
     {
       Assert.fail("Expception occured while testing!");
@@ -61,11 +59,11 @@ public class BioJsHTMLOutputTest
   @Test
   public void getBioJsMSAVersions()
   {
-    BioJsHTMLOutput bjs = new BioJsHTMLOutput(null, null);
     TreeMap<String, File> versions = null;
     try
     {
-      bjs.refreshBioJSVersionsInfo(BioJsHTMLOutput.BJS_TEMPLATES_LOCAL_DIRECTORY);
+      BioJsHTMLOutput
+              .refreshBioJSVersionsInfo(BioJsHTMLOutput.BJS_TEMPLATES_LOCAL_DIRECTORY);
       versions = BioJsHTMLOutput.getBioJsMSAVersions();
     } catch (URISyntaxException e)
     {