From ef6752a198460762e97c00b44384648d90a79bc4 Mon Sep 17 00:00:00 2001 From: Cesare Date: Sun, 19 Feb 2023 16:19:46 +0100 Subject: [PATCH] BAEL-6125 Migrate Application from Spring Boot 2 to Spring Boot 3 -fix test naming --- .../sample/boundary/TodosControllerApiIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());