From 96ff2a982aad1455dc663936346126605c87e4d2 Mon Sep 17 00:00:00 2001 From: Niket Agrawal Date: Sun, 24 Sep 2023 02:08:16 +0530 Subject: [PATCH] Updated Test case --- .../com/baeldung/controller/ValidationControllerUnitTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-modules/spring-boot-validations/src/test/java/com/baeldung/controller/ValidationControllerUnitTest.java b/spring-boot-modules/spring-boot-validations/src/test/java/com/baeldung/controller/ValidationControllerUnitTest.java index 0ff786bd4c..f312e1259c 100644 --- a/spring-boot-modules/spring-boot-validations/src/test/java/com/baeldung/controller/ValidationControllerUnitTest.java +++ b/spring-boot-modules/spring-boot-validations/src/test/java/com/baeldung/controller/ValidationControllerUnitTest.java @@ -105,7 +105,7 @@ class ValidationControllerUnitTest { @Test void testValidBean() throws Exception { - String postBody = "{\"boolField\":true,\"trueField\":true,\"falseField\":false,\"boolStringVar\":\"TRUE\"}"; + String postBody = "{\"boolField\":true,\"trueField\":true,\"falseField\":false,\"boolStringVar\":\"+\"}"; String output = mockMvc.perform(post("/validateBoolean").contentType("application/json") .content(postBody))