Refactor rename TransactionManager methods (#2382)

This commit is contained in:
Rob Bygrave
2021-09-21 14:54:26 +12:00
committed by GitHub
parent 0bf8c9eb64
commit 3550bf61c4
13 changed files with 43 additions and 43 deletions
@@ -39,7 +39,7 @@ public abstract class BaseTestCase {
@AfterEach
public void checkForLeak(TestInfo testInfo) {
TransactionScopeManager scope = spiEbeanServer().transactionManager().scope();
SpiTransaction trans = scope.getInScope();
SpiTransaction trans = scope.inScope();
if (trans != null) {
String msg = getClass().getSimpleName() + "." + testInfo.getDisplayName() + " did not clear threadScope:" + trans;
scope.clearExternal(); // clear for next test
@@ -99,7 +99,7 @@ public abstract class BaseTestCase {
}
protected SpiTransaction getInScopeTransaction() {
return spiEbeanServer().transactionManager().scope().getInScope();
return spiEbeanServer().transactionManager().scope().inScope();
}
/**
@@ -30,7 +30,7 @@ public class TransactionManagerTest extends BaseTestCase {
SpiTransactionManager transactionManager = server.transactionManager();
DataSource dataSource = transactionManager.getDataSource();
DataSource dataSource = transactionManager.dataSource();
Connection connection = dataSource.getConnection();
try {
SpiTransaction externalTxn = new ExternalJdbcTransaction("external0", true, connection, null);