001package org.kuali.ole.docstore.process;
002
003import org.junit.Test;
004import org.kuali.ole.BaseTestCase;
005import org.kuali.ole.RepositoryManager;
006import org.kuali.ole.docstore.model.enums.DocCategory;
007import org.kuali.ole.docstore.model.enums.DocFormat;
008import org.kuali.ole.docstore.model.enums.DocType;
009import org.kuali.ole.docstore.model.xmlpojo.ingest.RequestDocument;
010import org.kuali.ole.docstore.service.DocumentIngester;
011import org.slf4j.Logger;
012import org.slf4j.LoggerFactory;
013
014import javax.jcr.Node;
015import javax.jcr.NodeIterator;
016import javax.jcr.RepositoryException;
017import javax.jcr.Session;
018
019/**
020 * Created with IntelliJ IDEA.
021 * User: SS10304
022 * Date: 1/3/13
023 * Time: 5:32 PM
024 * To change this template use File | Settings | File Templates.
025 */
026public class LinkingInstanceNBibHandler_UT extends BaseTestCase {
027
028    private static final Logger LOG = LoggerFactory.getLogger(LinkingInstanceNBibHandler_UT.class);
029
030    @Test
031    public void testLinkingInstanceNBibHandler() throws Exception {
032        LinkingInstanceNBibHandler linkingInstanceNBibHandler = LinkingInstanceNBibHandler.getInstance(DocCategory.WORK.getCode(), DocType.BIB.getCode(), DocFormat.MARC.getCode());
033        LOG.info("IsRunning :" + linkingInstanceNBibHandler.isRunning());
034        linkingInstanceNBibHandler.startProcess();
035        linkingInstanceNBibHandler.run();
036        LOG.info("IsRunning :" + linkingInstanceNBibHandler.isRunning());
037    }
038}