1 package org.kuali.ole.docstore.process;
2
3 import org.junit.Test;
4 import org.kuali.ole.BaseTestCase;
5 import org.kuali.ole.RepositoryManager;
6 import org.kuali.ole.docstore.model.enums.DocCategory;
7 import org.kuali.ole.docstore.model.enums.DocFormat;
8 import org.kuali.ole.docstore.model.enums.DocType;
9 import org.kuali.ole.docstore.model.xmlpojo.ingest.RequestDocument;
10 import org.kuali.ole.docstore.service.DocumentIngester;
11 import org.slf4j.Logger;
12 import org.slf4j.LoggerFactory;
13
14 import javax.jcr.Node;
15 import javax.jcr.NodeIterator;
16 import javax.jcr.RepositoryException;
17 import javax.jcr.Session;
18
19
20
21
22
23
24
25
26 public class LinkingInstanceNBibHandler_UT extends BaseTestCase {
27
28 private static final Logger LOG = LoggerFactory.getLogger(LinkingInstanceNBibHandler_UT.class);
29
30 @Test
31 public void testLinkingInstanceNBibHandler() throws Exception {
32 LinkingInstanceNBibHandler linkingInstanceNBibHandler = LinkingInstanceNBibHandler.getInstance(DocCategory.WORK.getCode(), DocType.BIB.getCode(), DocFormat.MARC.getCode());
33 LOG.info("IsRunning :" + linkingInstanceNBibHandler.isRunning());
34 linkingInstanceNBibHandler.startProcess();
35 linkingInstanceNBibHandler.run();
36 LOG.info("IsRunning :" + linkingInstanceNBibHandler.isRunning());
37 }
38 }