@Test public void testDoBegin() { when(contextSourceMock.getReadWriteContext()).thenReturn(contextMock); CompensatingTransactionObject expectedTransactionObject = new CompensatingTransactionObject(null); tested.doBegin(expectedTransactionObject, transactionDefinitionMock); DirContextHolder foundContextHolder = (DirContextHolder) TransactionSynchronizationManager .getResource(contextSourceMock); assertThat(foundContextHolder.getCtx()).isSameAs(contextMock); }
protected void doBegin(Object transaction, TransactionDefinition definition) { delegate.doBegin(transaction, definition); }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doBegin(Object transaction, TransactionDefinition definition) { delegate.doBegin(transaction, definition); } }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doBegin(Object transaction, TransactionDefinition definition) { delegate.doBegin(transaction, definition); }  }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doBegin(Object transaction, TransactionDefinition definition) { delegate.doBegin(transaction, definition); }  ContextSource getContextSource(); void setContextSource(ContextSource contextSource); void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy); void afterPropertiesSet(); }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doBegin(Object transaction, TransactionDefinition definition) { delegate.doBegin(transaction, definition); }  ContextSource getContextSource(); void setContextSource(ContextSource contextSource); void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy); void afterPropertiesSet();  }