View Javadoc
1   package org.kuali.ole;
2   
3   import org.junit.Test;
4   import org.kuali.ole.docstore.model.xmlpojo.work.instance.oleml.Item;
5   import org.kuali.ole.docstore.model.xmlpojo.work.instance.oleml.OleHoldings;
6   import org.slf4j.Logger;
7   import org.slf4j.LoggerFactory;
8   
9   import static junit.framework.Assert.assertNotNull;
10  
11  /**
12   * Created by IntelliJ IDEA.
13   * User: pvsubrah
14   * Date: 4/10/12
15   * Time: 9:10 PM
16   * To change this template use File | Settings | File Templates.
17   */
18  public class OleInstanceRecordHandler_UT {
19  
20      public static final Logger LOG = LoggerFactory.getLogger(OleInstanceRecordHandler_UT.class);
21  
22      @Test
23      public void testGenerateInstanceXML() throws Exception {
24          OleInstanceRecordHandler oleInstanceRecordHandler = new OleInstanceRecordHandler();
25          String xml = oleInstanceRecordHandler.generateXML(new OleHoldings(), new Item());
26          assertNotNull(xml);
27          LOG.info(xml);
28      }
29  
30  }