BAEL-6125 Migrate Application from Spring Boot 2 to Spring Boot 3 -fix test naming

This commit is contained in:
Cesare 2023-02-19 16:19:46 +01:00
parent 04d70801ec
commit ef6752a198
1 changed files with 2 additions and 2 deletions

View File

@ -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());