HHH-16275 fix whitespace
Signed-off-by: Scott Marlow <smarlow@redhat.com>
This commit is contained in:
parent
a175afdaf1
commit
038bbe3b28
|
@ -1191,7 +1191,7 @@ public class LockTest extends BaseEntityManagerFunctionalTestCase {
|
||||||
assertEquals( "lock mode should be PESSIMISTIC_WRITE ", LockModeType.PESSIMISTIC_WRITE, _entityManager.getLockMode( lock2 ) );
|
assertEquals( "lock mode should be PESSIMISTIC_WRITE ", LockModeType.PESSIMISTIC_WRITE, _entityManager.getLockMode( lock2 ) );
|
||||||
|
|
||||||
doInJPA( this::entityManagerFactory, entityManager -> {
|
doInJPA( this::entityManagerFactory, entityManager -> {
|
||||||
TransactionUtil.setJdbcTimeout( entityManager.unwrap( Session.class ), 60*1000L ); // wait up to a minute
|
TransactionUtil.setJdbcTimeout( entityManager.unwrap( Session.class ), 60 * 1000L ); // wait up to a minute
|
||||||
LockReference ref = new LockReference( 1, "name" );
|
LockReference ref = new LockReference( 1, "name" );
|
||||||
ref.setLock( entityManager.getReference( Lock.class, lock.getId() ) );
|
ref.setLock( entityManager.getReference( Lock.class, lock.getId() ) );
|
||||||
|
|
||||||
|
@ -1237,7 +1237,7 @@ public class LockTest extends BaseEntityManagerFunctionalTestCase {
|
||||||
assertEquals( "lock mode should be PESSIMISTIC_WRITE ", LockModeType.PESSIMISTIC_WRITE, _entityManager.getLockMode( l2 ) );
|
assertEquals( "lock mode should be PESSIMISTIC_WRITE ", LockModeType.PESSIMISTIC_WRITE, _entityManager.getLockMode( l2 ) );
|
||||||
|
|
||||||
doInJPA( this::entityManagerFactory, entityManager -> {
|
doInJPA( this::entityManagerFactory, entityManager -> {
|
||||||
TransactionUtil.setJdbcTimeout( entityManager.unwrap( Session.class ), 60*1000L ); // wait up to a minute );
|
TransactionUtil.setJdbcTimeout( entityManager.unwrap( Session.class ), 60 * 1000L ); // wait up to a minute );
|
||||||
LockReference lockReference = entityManager.find( LockReference.class, ref.getId() );
|
LockReference lockReference = entityManager.find( LockReference.class, ref.getId() );
|
||||||
|
|
||||||
// Check that we can update a LockReference, referring to a Lock that is PESSIMISTIC_WRITE locked
|
// Check that we can update a LockReference, referring to a Lock that is PESSIMISTIC_WRITE locked
|
||||||
|
|
Loading…
Reference in New Issue