mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor rename TransactionManager methods (#2382)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user