diff --git a/src/test/java/com/fasterxml/jackson/databind/deser/dos/StreamReadStringConstraintsTest.java b/src/test/java/com/fasterxml/jackson/databind/deser/dos/StreamReadStringConstraintsTest.java index ebc572f6ed..16ac84812d 100644 --- a/src/test/java/com/fasterxml/jackson/databind/deser/dos/StreamReadStringConstraintsTest.java +++ b/src/test/java/com/fasterxml/jackson/databind/deser/dos/StreamReadStringConstraintsTest.java @@ -50,8 +50,8 @@ public void testBigString() throws Exception fail("expected DatabindException"); } catch (DatabindException e) { final String message = e.getMessage(); - assertTrue("unexpected exception message: " + message, message.startsWith("String length")); - assertTrue("unexpected exception message: " + message, message.contains("exceeds the maximum length (")); + assertTrue("unexpected exception message: " + message, message.startsWith("String value length")); + assertTrue("unexpected exception message: " + message, message.contains("exceeds the maximum allowed (")); } } @@ -64,8 +64,8 @@ public void testBiggerString() throws Exception final String message = e.getMessage(); // this test fails when the TextBuffer is being resized, so we don't yet know just how big the string is // so best not to assert that the String length value in the message is the full 6000000 value - assertTrue("unexpected exception message: " + message, message.startsWith("String length")); - assertTrue("unexpected exception message: " + message, message.contains("exceeds the maximum length (")); + assertTrue("unexpected exception message: " + message, message.startsWith("String value length")); + assertTrue("unexpected exception message: " + message, message.contains("exceeds the maximum allowed (")); } }