diff --git a/spring-boot-modules/spring-boot-3/src/test/java/com/baeldung/sample/boundary/TodosControllerApiIntegrationTest.java b/spring-boot-modules/spring-boot-3/src/test/java/com/baeldung/sample/boundary/TodosControllerApiIntegrationTest.java index d809c5f9c9..3a80bc8a6c 100644 --- a/spring-boot-modules/spring-boot-3/src/test/java/com/baeldung/sample/boundary/TodosControllerApiIntegrationTest.java +++ b/spring-boot-modules/spring-boot-3/src/test/java/com/baeldung/sample/boundary/TodosControllerApiIntegrationTest.java @@ -216,14 +216,14 @@ class TodosControllerApiIntegrationTest { } @Test - void testGetSlashMatchingNotExisting() throws Exception { + void whenThereIsNoSlashMatching_ThenHttpStatusIs404() throws Exception { mvc .perform(get(BASEURL + "/name/").contentType(DEFAULT_MEDIA_TYPE)) .andExpect(status().isNotFound()); } @Test - void testGetNameExists() throws Exception { + void whenThereIsNoSlashMatching_ThenHttpStatusIs200() throws Exception { mvc .perform(get(BASEURL + "/name").contentType(DEFAULT_MEDIA_TYPE)) .andExpect(status().isOk());