@Test public void testCommit() { DefaultCompensatingTransactionOperationManager tested = new DefaultCompensatingTransactionOperationManager( operationFactoryMock); tested.getOperationExecutors().push(operationExecutorMock); tested.commit(); verify(operationExecutorMock).commit(); }
public void commit() { log.debug("Performing commit"); for (CompensatingTransactionOperationExecutor operationExecutor : operationExecutors) { try { operationExecutor.commit(); } catch (Exception e) { throw new TransactionSystemException( "Error occurred during commit", e); } } }
DefaultCompensatingTransactionOperationManager implements
        CompensatingTransactionOperationManager { public void commit() { log.debug("Performing commit"); for (CompensatingTransactionOperationExecutor operationExecutor : operationExecutors) { try { operationExecutor.commit(); } catch (Exception e) { throw new TransactionSystemException( "Error occurred during commit", e); } } } }
DefaultCompensatingTransactionOperationManager implements
        CompensatingTransactionOperationManager { public void commit() { log.debug("Performing commit"); for (CompensatingTransactionOperationExecutor operationExecutor : operationExecutors) { try { operationExecutor.commit(); } catch (Exception e) { throw new TransactionSystemException( "Error occurred during commit", e); } } } DefaultCompensatingTransactionOperationManager(
            CompensatingTransactionOperationFactory operationFactory); }
DefaultCompensatingTransactionOperationManager implements
        CompensatingTransactionOperationManager { public void commit() { log.debug("Performing commit"); for (CompensatingTransactionOperationExecutor operationExecutor : operationExecutors) { try { operationExecutor.commit(); } catch (Exception e) { throw new TransactionSystemException( "Error occurred during commit", e); } } } DefaultCompensatingTransactionOperationManager(
            CompensatingTransactionOperationFactory operationFactory); void performOperation(Object resource, String operation,
            Object[] args); void rollback(); void commit(); }
DefaultCompensatingTransactionOperationManager implements
        CompensatingTransactionOperationManager { public void commit() { log.debug("Performing commit"); for (CompensatingTransactionOperationExecutor operationExecutor : operationExecutors) { try { operationExecutor.commit(); } catch (Exception e) { throw new TransactionSystemException( "Error occurred during commit", e); } } } DefaultCompensatingTransactionOperationManager(
            CompensatingTransactionOperationFactory operationFactory); void performOperation(Object resource, String operation,
            Object[] args); void rollback(); void commit();  }