исправления

This commit is contained in:
Elena Ponomareva
2026-04-24 23:47:56 +03:00
parent 8926e5b08c
commit f563c3e7cf
8 changed files with 137 additions and 69 deletions
@@ -26,7 +26,7 @@ class FilmControllerTest {
fun `create film should return 201 CREATED`() {
val request = CreateFilmRequest(
title = "The Matrix",
description = "A computer hacker learns about the true nature of reality"
description = "A computer hacker learns about the true nature of reality",
)
mockMvc.perform(
@@ -40,7 +40,6 @@ class FilmControllerTest {
.andExpect(jsonPath("$.id").exists())
}
@Test
fun `edit film should return updated film`() {
val createRequest = CreateFilmRequest(
@@ -58,7 +57,7 @@ class FilmControllerTest {
val editRequest = EditFilmRequest(
title = "New Title",
description = "New Description"
description = "New Description",
)
mockMvc.perform(
@@ -71,7 +70,6 @@ class FilmControllerTest {
.andExpect(jsonPath("$.description").value("New Description"))
}
@Test
fun `search film by title should return film`() {
val request = CreateFilmRequest(
@@ -94,7 +92,6 @@ class FilmControllerTest {
.andExpect(jsonPath("$.description").value("Dream within a dream"))
}
@Test
fun `search film by non-existent title should return empty`() {
mockMvc.perform(
@@ -105,7 +102,6 @@ class FilmControllerTest {
.andExpect(content().string(""))
}
@Test
fun `delete film should return 204 NO CONTENT`() {
val request = CreateFilmRequest(