JAL-1541 minor code clean up, and added test for BioJsHTMLOutput
[jalview.git] / test / jalview / io / BioJsHTMLOutputTest.java
index 8c4b639..8d9de77 100644 (file)
@@ -1,19 +1,28 @@
 package jalview.io;
 
-import org.junit.Ignore;
+import java.io.IOException;
+
+import org.junit.Assert;
 import org.junit.Test;
 
 
 public class BioJsHTMLOutputTest
 {
 
-
   @Test
-  @Ignore
   public void getJalviewAlignmentAsJsonString()
   {
-    BioJsHTMLOutput bioJsHtmlOuput = new BioJsHTMLOutput(null, null);
-
+    BioJsHTMLOutput bioJsHtmlOutput = new BioJsHTMLOutput(null, null);
+    String bjsTemplate = null;
+    try
+    {
+      bjsTemplate = BioJsHTMLOutput
+              .getBioJsTemplateAsString(bioJsHtmlOutput);
+      // System.out.println(bjsTemplate);
+    } catch (IOException e)
+    {
+      e.printStackTrace();
+    }
+    Assert.assertNotNull(bjsTemplate);
   }
-  
 }