View Javadoc

1   package org.kuali.ole.docstore.process;
2   
3   import org.junit.Test;
4   import org.kuali.ole.docstore.model.enums.DocCategory;
5   import org.kuali.ole.docstore.model.enums.DocFormat;
6   import org.kuali.ole.docstore.model.enums.DocType;
7   
8   import static org.junit.Assert.fail;
9   
10  /**
11   * Created by IntelliJ IDEA.
12   * User: Pranitha
13   * Date: 6/4/12
14   * Time: 3:15 PM
15   * To change this template use File | Settings | File Templates.
16   */
17  public class LinkingInstanceNBibHandler_AT {
18  
19  
20       @Test
21      public void testRebuildIndexesForMarc() {
22          try {
23              LinkingInstanceNBibHandler link = LinkingInstanceNBibHandler
24                      .getInstance(DocCategory.WORK.getCode(), DocType.INSTANCE.getDescription(),
25                                   DocFormat.OLEML.getCode());
26              link.run();
27          } catch (Exception e) {
28              e.printStackTrace();
29              fail();
30          }
31  
32      }
33  }