001package org.kuali.ole.docstore.common.document;
002
003import org.apache.commons.io.FileUtils;
004import org.apache.log4j.Logger;
005import org.junit.Test;
006import org.kuali.ole.docstore.common.util.ParseXml;
007
008import java.io.File;
009
010/**
011 * Created with IntelliJ IDEA.
012 * User: jayabharathreddy
013 * Date: 1/23/14
014 * Time: 4:24 PM
015 * To change this template use File | Settings | File Templates.
016 */
017public class BibTrees_UT {
018
019    private static final Logger LOG = Logger.getLogger(BibTrees_UT.class);
020
021    @Test
022    public void deserializeAndSerialize() {
023        String input = "";
024        File file = null;
025        try {
026            file = new File(getClass().getResource("/documents/BibTrees1.xml").toURI());
027            input = FileUtils.readFileToString(file);
028        } catch (Exception e) {
029            LOG.error("Exception ", e);
030        }
031        BibTrees.deserialize(input);
032
033    }
034
035
036}