HHH-11267 Fix Entity- and CollectionRegionAccessStrategyTest
This commit is contained in:
parent
b976e85f06
commit
d4f240b439
|
@ -156,6 +156,7 @@ public abstract class AbstractRegionAccessStrategyTest<R extends BaseRegion, S e
|
||||||
NonJtaTransactionCoordinator txOwner = mock(NonJtaTransactionCoordinator.class);
|
NonJtaTransactionCoordinator txOwner = mock(NonJtaTransactionCoordinator.class);
|
||||||
when(txOwner.getResourceLocalTransaction()).thenReturn(new JdbcResourceTransactionMock());
|
when(txOwner.getResourceLocalTransaction()).thenReturn(new JdbcResourceTransactionMock());
|
||||||
when(txOwner.getJdbcSessionOwner()).thenReturn(jdbcSessionOwner);
|
when(txOwner.getJdbcSessionOwner()).thenReturn(jdbcSessionOwner);
|
||||||
|
when(txOwner.isActive()).thenReturn(true);
|
||||||
TransactionCoordinator txCoord = JdbcResourceLocalTransactionCoordinatorBuilderImpl.INSTANCE
|
TransactionCoordinator txCoord = JdbcResourceLocalTransactionCoordinatorBuilderImpl.INSTANCE
|
||||||
.buildTransactionCoordinator(txOwner, null);
|
.buildTransactionCoordinator(txOwner, null);
|
||||||
when(session.getTransactionCoordinator()).thenReturn(txCoord);
|
when(session.getTransactionCoordinator()).thenReturn(txCoord);
|
||||||
|
|
Loading…
Reference in New Issue