View Javadoc
1   package org.kuali.ole.web;
2   
3   import org.junit.After;
4   import org.junit.Before;
5   import org.junit.Ignore;
6   import org.junit.Test;
7   import org.kuali.ole.base.BaseTestCase;
8   import org.kuali.ole.docstore.model.enums.DocCategory;
9   import org.kuali.ole.docstore.model.enums.DocFormat;
10  import org.kuali.ole.docstore.model.enums.DocType;
11  import org.kuali.ole.docstore.process.LinkingInstanceNBibHandler;
12  import org.kuali.ole.logger.DocStoreLogger;
13  
14  import static org.junit.Assert.fail;
15  
16  /**
17   * Created with IntelliJ IDEA.
18   * User: ?
19   * Date: 12/17/12
20   * Time: 12:28 AM
21   * To change this template use File | Settings | File Templates.
22   */
23  @Ignore
24  @Deprecated
25  public class LinkingBibNInstanceAfterBulkIngest_UT extends BaseTestCase {
26  
27      DocStoreLogger docStoreLogger = new DocStoreLogger(getClass().getName());
28      @Override
29         @Before
30         public void setUp() throws Exception {
31             super.setUp();    //To change body of overridden methods use File | Settings | File Templates.
32         }
33  
34         @After
35         public void tearDown() throws Exception {
36         }
37  
38  
39      @Test
40     public void testRebuildIndexesForMarc() {
41         try {
42             LinkingInstanceNBibHandler link = LinkingInstanceNBibHandler
43                     .getInstance(DocCategory.WORK.getCode(), DocType.BIB.getDescription(),
44                                  DocFormat.MARC.getDescription());
45             link.run();
46         } catch (Exception e) {
47             docStoreLogger.log(e.getMessage(), e);
48             fail();
49         }
50  
51     }
52  
53      @Test
54     public void testRebuildIndexesForInstance() {
55         try {
56             LinkingInstanceNBibHandler link = LinkingInstanceNBibHandler
57                     .getInstance(DocCategory.WORK.getCode(), DocType.INSTANCE.getDescription(),
58                                  DocFormat.OLEML.getCode());
59             link.run();
60         } catch (Exception e) {
61             docStoreLogger.log(e.getMessage(), e);
62             fail();
63         }
64  
65     }
66  }