1 package org.kuali.ole.web;
2
3 import org.junit.After;
4 import org.junit.Before;
5 import org.junit.Test;
6 import org.kuali.ole.base.BaseTestCase;
7 import org.kuali.ole.docstore.model.enums.DocCategory;
8 import org.kuali.ole.docstore.model.enums.DocFormat;
9 import org.kuali.ole.docstore.model.enums.DocType;
10 import org.kuali.ole.docstore.process.LinkingInstanceNBibHandler;
11
12 import static org.junit.Assert.fail;
13
14
15
16
17
18
19
20
21 public class LinkingBibNInstanceAfterBulkIngest_UT extends BaseTestCase {
22
23 @Override
24 @Before
25 public void setUp() throws Exception {
26 super.setUp();
27 }
28
29 @After
30 public void tearDown() throws Exception {
31 }
32
33
34 @Test
35 public void testRebuildIndexesForMarc() {
36 try {
37 LinkingInstanceNBibHandler link = LinkingInstanceNBibHandler
38 .getInstance(DocCategory.WORK.getCode(), DocType.BIB.getDescription(),
39 DocFormat.MARC.getDescription());
40 link.run();
41 } catch (Exception e) {
42 e.printStackTrace();
43 fail();
44 }
45
46 }
47
48 @Test
49 public void testRebuildIndexesForInstance() {
50 try {
51 LinkingInstanceNBibHandler link = LinkingInstanceNBibHandler
52 .getInstance(DocCategory.WORK.getCode(), DocType.INSTANCE.getDescription(),
53 DocFormat.OLEML.getCode());
54 link.run();
55 } catch (Exception e) {
56 e.printStackTrace();
57 fail();
58 }
59
60 }
61 }