diff --git a/spring-web-modules/spring-thymeleaf-5/src/test/java/com/baeldung/thymeleaf/controller/HomeControllerIntegrationTest.java b/spring-web-modules/spring-thymeleaf-5/src/test/java/com/baeldung/thymeleaf/controller/HomeControllerIntegrationTest.java index 33bf74a3ea..6d9d91c689 100644 --- a/spring-web-modules/spring-thymeleaf-5/src/test/java/com/baeldung/thymeleaf/controller/HomeControllerIntegrationTest.java +++ b/spring-web-modules/spring-thymeleaf-5/src/test/java/com/baeldung/thymeleaf/controller/HomeControllerIntegrationTest.java @@ -83,7 +83,7 @@ public class HomeControllerIntegrationTest { } @Test - public void whenUsingUnlessConditionalAndVariableIsNotDefined_thenVariableIsNotPrinted() throws Exception { + public void whenVariableIsDefined_thenUnlessConditionalIsFalse() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/variable-not-defined")) .andExpect(status().isOk()) .andExpect(view().name("checkVariableIsDefined.html"))