diff --git a/jbpm-test-coverage/src/test/java/org/jbpm/test/functional/CorrelationKeyTest.java b/jbpm-test-coverage/src/test/java/org/jbpm/test/functional/CorrelationKeyTest.java index 1ffb4e3b44..a9f1b16e4d 100644 --- a/jbpm-test-coverage/src/test/java/org/jbpm/test/functional/CorrelationKeyTest.java +++ b/jbpm-test-coverage/src/test/java/org/jbpm/test/functional/CorrelationKeyTest.java @@ -90,7 +90,7 @@ public void testNotUniqueSimpleKey() { Assertions.fail("Not unique correlation key used. Exception should have been thrown."); } catch (RuntimeException ex) { ex.printStackTrace(); - Assertions.assertThat(ex.getMessage()).contains("already exists"); + Assertions.assertThat(ex.getMessage()).contains("failed to persist"); } } @@ -106,7 +106,7 @@ public void testNotUniqueMultiValuedKey() { Assertions.fail("Not unique correlation key used. Exception should have been thrown."); } catch (RuntimeException ex) { ex.printStackTrace(); - Assertions.assertThat(ex.getMessage()).contains("already exists"); + Assertions.assertThat(ex.getMessage()).contains("failed to persist"); } }