Esempio n. 1
0
 public void startTransaction() {
   if (syncMode) {
     ElasticSearchInlineListener.useSyncIndexing.set(true);
   }
   if (!TransactionHelper.isTransactionActive()) {
     TransactionHelper.startTransaction();
   }
   Assert.assertEquals(0, esa.getPendingWorkerCount());
   commandProcessed = esa.getTotalCommandProcessed();
 }
Esempio n. 2
0
 public void assertNumberOfCommandProcessed(int processed) throws Exception {
   Assert.assertEquals(processed, esa.getTotalCommandProcessed() - commandProcessed);
 }