JAL-1541 minor code clean up, and added test for BioJsHTMLOutput
[jalview.git] / test / jalview / io / BioJsHTMLOutputTest.java
1 package jalview.io;
2
3 import java.io.IOException;
4
5 import org.junit.Assert;
6 import org.junit.Test;
7
8
9 public class BioJsHTMLOutputTest
10 {
11
12   @Test
13   public void getJalviewAlignmentAsJsonString()
14   {
15     BioJsHTMLOutput bioJsHtmlOutput = new BioJsHTMLOutput(null, null);
16     String bjsTemplate = null;
17     try
18     {
19       bjsTemplate = BioJsHTMLOutput
20               .getBioJsTemplateAsString(bioJsHtmlOutput);
21       // System.out.println(bjsTemplate);
22     } catch (IOException e)
23     {
24       e.printStackTrace();
25     }
26     Assert.assertNotNull(bjsTemplate);
27   }
28 }