001package org.kuali.ole.docstore.process; 002 003import org.junit.Test; 004import org.kuali.ole.docstore.model.enums.DocCategory; 005import org.kuali.ole.docstore.model.enums.DocFormat; 006import org.kuali.ole.docstore.model.enums.DocType; 007import org.slf4j.Logger; 008import org.slf4j.LoggerFactory; 009 010import static org.junit.Assert.fail; 011 012/** 013 * Created by IntelliJ IDEA. 014 * User: Pranitha 015 * Date: 6/4/12 016 * Time: 3:15 PM 017 * To change this template use File | Settings | File Templates. 018 */ 019public class LinkingInstanceNBibHandler_AT { 020 021 private static final Logger LOG = LoggerFactory.getLogger(LinkingInstanceNBibHandler_AT.class); 022 @Test 023 public void testRebuildIndexesForMarc() { 024 try { 025 LinkingInstanceNBibHandler link = LinkingInstanceNBibHandler 026 .getInstance(DocCategory.WORK.getCode(), DocType.INSTANCE.getDescription(), 027 DocFormat.OLEML.getCode()); 028 link.run(); 029 } catch (Exception e) { 030 LOG.info("Exception :", e); 031 fail(); 032 } 033 034 } 035}