예제 #1
0
 /**
  * Test method for {@link
  * org.kuali.ole.docstore.service.DocumentIndexer#rollbackIndexedData(java.util.List)}.
  */
 public final void testRollbackIndexedData() {
   try {
     documentIndexer.indexDocuments(reqDocuments);
   } catch (Exception e) {
     try {
       documentIndexer.rollbackIndexedData(reqDocuments);
     } catch (Exception ex) {
       LOG.info(e.getMessage(), e);
       fail("Failed in rolling back of indexing : " + ex);
     }
   }
 }
예제 #2
0
 /** Method to testIndexDocumentsForBulk */
 public final void testIndexDocumentsForBulk() {
   try {
     documentIndexer.indexDocumentsForBulk(reqDocuments, true);
   } catch (Exception e) {
     LOG.info(e.getMessage(), e);
     fail("Failed in indexing : " + e);
   }
 }