mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13926 Test for the issue
This commit is contained in:
parent
c8fabbb2b0
commit
677a65a8cf
@ -92,6 +92,7 @@ public void testBatchAndOptimisticLocking() {
|
|||||||
}
|
}
|
||||||
catch (Exception expected) {
|
catch (Exception expected) {
|
||||||
assertEquals( OptimisticLockException.class, expected.getClass());
|
assertEquals( OptimisticLockException.class, expected.getClass());
|
||||||
|
assertEquals( "Batch update returned unexpected row count from update [1]; actual row count: 0; expected: 1; statement executed: update Person set name=?, version=? where id=? and version=?", expected.getMessage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user