View Javadoc
1   package org.kuali.ole.docstore.common.document;
2   
3   import org.apache.commons.io.FileUtils;
4   import org.apache.log4j.Logger;
5   import org.junit.Test;
6   import org.kuali.ole.docstore.common.util.ParseXml;
7   
8   import java.io.File;
9   
10  /**
11   * Created with IntelliJ IDEA.
12   * User: jayabharathreddy
13   * Date: 1/23/14
14   * Time: 4:24 PM
15   * To change this template use File | Settings | File Templates.
16   */
17  public class BibTrees_UT {
18  
19      private static final Logger LOG = Logger.getLogger(BibTrees_UT.class);
20  
21      @Test
22      public void deserializeAndSerialize() {
23          String input = "";
24          File file = null;
25          try {
26              file = new File(getClass().getResource("/documents/BibTrees1.xml").toURI());
27              input = FileUtils.readFileToString(file);
28          } catch (Exception e) {
29              LOG.error("Exception ", e);
30          }
31          BibTrees.deserialize(input);
32  
33      }
34  
35  
36  }