diff --git a/spring-pulsar/src/test/java/org/springframework/pulsar/reader/PulsarReaderStartMessageIdTests.java b/spring-pulsar/src/test/java/org/springframework/pulsar/reader/PulsarReaderStartMessageIdTests.java index 7719fe7f..56a6adde 100644 --- a/spring-pulsar/src/test/java/org/springframework/pulsar/reader/PulsarReaderStartMessageIdTests.java +++ b/spring-pulsar/src/test/java/org/springframework/pulsar/reader/PulsarReaderStartMessageIdTests.java @@ -79,7 +79,7 @@ void startMessageIdMissing() { PulsarReaderStartMessageIdMissing.class)) .rootCause() .isInstanceOf(IllegalArgumentException.class) - .hasMessage( + .hasMessageStartingWith( "Start message id or start message from roll back must be specified but they cannot be specified at the same time"); }