diff --git a/core/spring-boot-test/src/main/java/org/springframework/boot/test/json/JacksonTester.java b/core/spring-boot-test/src/main/java/org/springframework/boot/test/json/JacksonTester.java index b2cfbc0e80ee..94f3ff93779e 100644 --- a/core/spring-boot-test/src/main/java/org/springframework/boot/test/json/JacksonTester.java +++ b/core/spring-boot-test/src/main/java/org/springframework/boot/test/json/JacksonTester.java @@ -56,7 +56,7 @@ * @Before * public void setup() { * JsonMapper jsonMapper = new JsonMapper(); - * JacksonTester.initFields(this, objectMapper); + * JacksonTester.initFields(this, jsonMapper); * } * * @Test @@ -88,7 +88,7 @@ public class JacksonTester extends AbstractJsonMarshalTester { * @since 4.0.0 */ protected JacksonTester(JsonMapper jsonMapper) { - Assert.notNull(jsonMapper, "'objectMapper' must not be null"); + Assert.notNull(jsonMapper, "'jsonMapper' must not be null"); this.jsonMapper = jsonMapper; }