@Test public void testCommit() { transaction.begin(); transaction.commit(); verify(sessionMock, times(1)).execute(isA(BapiTransactionCommit.class), eq(bapiCommitMapping)); }
public void commit() { errorIfNotInTransaction(); notifySynchronizationsBeforeCompletion(); try { executeBapi(new BapiTransactionCommit(), bapiCommit); notifySynchronizationsAfterCompletion(true); } catch (RuntimeException e) { notifySynchronizationsAfterCompletion(false); throw e; } }
JCoTransaction extends AbstractTransaction { public void commit() { errorIfNotInTransaction(); notifySynchronizationsBeforeCompletion(); try { executeBapi(new BapiTransactionCommit(), bapiCommit); notifySynchronizationsAfterCompletion(true); } catch (RuntimeException e) { notifySynchronizationsAfterCompletion(false); throw e; } } }
JCoTransaction extends AbstractTransaction { public void commit() { errorIfNotInTransaction(); notifySynchronizationsBeforeCompletion(); try { executeBapi(new BapiTransactionCommit(), bapiCommit); notifySynchronizationsAfterCompletion(true); } catch (RuntimeException e) { notifySynchronizationsAfterCompletion(false); throw e; } } JCoTransaction(final SessionImplementor session); }
JCoTransaction extends AbstractTransaction { public void commit() { errorIfNotInTransaction(); notifySynchronizationsBeforeCompletion(); try { executeBapi(new BapiTransactionCommit(), bapiCommit); notifySynchronizationsAfterCompletion(true); } catch (RuntimeException e) { notifySynchronizationsAfterCompletion(false); throw e; } } JCoTransaction(final SessionImplementor session); void begin(); void commit(); void rollback(); }
JCoTransaction extends AbstractTransaction { public void commit() { errorIfNotInTransaction(); notifySynchronizationsBeforeCompletion(); try { executeBapi(new BapiTransactionCommit(), bapiCommit); notifySynchronizationsAfterCompletion(true); } catch (RuntimeException e) { notifySynchronizationsAfterCompletion(false); throw e; } } JCoTransaction(final SessionImplementor session); void begin(); void commit(); void rollback();  }