BAEL-6125 Migrate Application from Spring Boot 2 to Spring Boot 3 -fix test naming
This commit is contained in:
parent
04d70801ec
commit
ef6752a198
|
@ -216,14 +216,14 @@ class TodosControllerApiIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testGetSlashMatchingNotExisting() throws Exception {
|
void whenThereIsNoSlashMatching_ThenHttpStatusIs404() throws Exception {
|
||||||
mvc
|
mvc
|
||||||
.perform(get(BASEURL + "/name/").contentType(DEFAULT_MEDIA_TYPE))
|
.perform(get(BASEURL + "/name/").contentType(DEFAULT_MEDIA_TYPE))
|
||||||
.andExpect(status().isNotFound());
|
.andExpect(status().isNotFound());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testGetNameExists() throws Exception {
|
void whenThereIsNoSlashMatching_ThenHttpStatusIs200() throws Exception {
|
||||||
mvc
|
mvc
|
||||||
.perform(get(BASEURL + "/name").contentType(DEFAULT_MEDIA_TYPE))
|
.perform(get(BASEURL + "/name").contentType(DEFAULT_MEDIA_TYPE))
|
||||||
.andExpect(status().isOk());
|
.andExpect(status().isOk());
|
||||||
|
|
Loading…
Reference in New Issue