HHH-11267 Fix Entity- and CollectionRegionAccessStrategyTest

This commit is contained in:
Radim Vansa 2016-11-21 17:48:35 +01:00 committed by Sanne Grinovero
parent b976e85f06
commit d4f240b439
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ public abstract class AbstractRegionAccessStrategyTest<R extends BaseRegion, S e
NonJtaTransactionCoordinator txOwner = mock(NonJtaTransactionCoordinator.class);
when(txOwner.getResourceLocalTransaction()).thenReturn(new JdbcResourceTransactionMock());
when(txOwner.getJdbcSessionOwner()).thenReturn(jdbcSessionOwner);
when(txOwner.isActive()).thenReturn(true);
TransactionCoordinator txCoord = JdbcResourceLocalTransactionCoordinatorBuilderImpl.INSTANCE
.buildTransactionCoordinator(txOwner, null);
when(session.getTransactionCoordinator()).thenReturn(txCoord);