@Test public void testDoCleanupAfterCompletion() throws Exception { DirContextHolder expectedContextHolder = new DirContextHolder(null, contextMock); TransactionSynchronizationManager.bindResource(contextSourceMock, expectedContextHolder); tested.doCleanupAfterCompletion(new CompensatingTransactionObject(expectedContextHolder)); assertThat(TransactionSynchronizationManager.getResource(contextSourceMock)).isNull(); assertThat(expectedContextHolder.getTransactionOperationManager()).isNull(); verify(contextMock).close(); }
protected void doCleanupAfterCompletion(Object transaction) { delegate.doCleanupAfterCompletion(transaction); }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doCleanupAfterCompletion(Object transaction) { delegate.doCleanupAfterCompletion(transaction); } }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doCleanupAfterCompletion(Object transaction) { delegate.doCleanupAfterCompletion(transaction); }  }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doCleanupAfterCompletion(Object transaction) { delegate.doCleanupAfterCompletion(transaction); }  ContextSource getContextSource(); void setContextSource(ContextSource contextSource); void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy); void afterPropertiesSet(); }
ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doCleanupAfterCompletion(Object transaction) { delegate.doCleanupAfterCompletion(transaction); }  ContextSource getContextSource(); void setContextSource(ContextSource contextSource); void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy); void afterPropertiesSet();  }