View Javadoc

1   package org.kuali.ole.docstore.process;
2   
3   import org.junit.Before;
4   import org.junit.Test;
5   import org.kuali.ole.BaseTestCase;
6   import org.slf4j.Logger;
7   import org.slf4j.LoggerFactory;
8   
9   import static org.junit.Assert.fail;
10  
11  /**
12   * Class to test RebuildIndexesHandler.
13   *
14   * @author Rajesh Chowdary K
15   * @created May 2, 2012
16   */
17  public class RebuildIndexesHandler_UT
18          extends BaseTestCase {
19  
20      private static final Logger LOG = LoggerFactory.getLogger(RebuildIndexesHandler_UT.class);
21  
22  
23      @Before
24      public void setUp() throws Exception {
25          System.setProperty("OLE_DOCSTORE_USE_DISCOVERY", Boolean.TRUE.toString());
26      }
27  
28      @Test
29      public void testRebuildIndexesForMarc() {
30          try {
31              RebuildIndexesHandler reBuilder = RebuildIndexesHandler.getInstance();
32              reBuilder.startProcess(null, null, null);
33          }
34          catch (Exception e) {
35              LOG.info(e.getMessage());
36              fail();
37          }
38  
39      }
40  
41  }