From 1ce322bceb447d830a58c2d8d3201a71cafb4ae6 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 20 Jul 2020 23:16:33 +0200 Subject: [PATCH] HHH-13926 Test for the issue --- .../org/hibernate/test/batch/BatchOptimisticLockingTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hibernate-core/src/test/java/org/hibernate/test/batch/BatchOptimisticLockingTest.java b/hibernate-core/src/test/java/org/hibernate/test/batch/BatchOptimisticLockingTest.java index c554de19df..124342d23d 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/batch/BatchOptimisticLockingTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/batch/BatchOptimisticLockingTest.java @@ -92,6 +92,7 @@ public class BatchOptimisticLockingTest extends } catch (Exception expected) { 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() ); } }