chore(release): first stable release #45
+8
-7
@@ -61,13 +61,14 @@ class FilmLibraryRepositoryIntegrationTest {
|
||||
|
||||
@Test
|
||||
fun `should save new film library entry and return saved entry`() {
|
||||
val entry = FilmLibrary(
|
||||
id = UUID.randomUUID(),
|
||||
userId = testUser.id,
|
||||
filmId = testFilm.id,
|
||||
comment = "Отличный фильм!",
|
||||
isViewed = false,
|
||||
)
|
||||
val entry =
|
||||
FilmLibrary(
|
||||
id = UUID.randomUUID(),
|
||||
userId = testUser.id,
|
||||
filmId = testFilm.id,
|
||||
comment = "Отличный фильм!",
|
||||
isViewed = false,
|
||||
)
|
||||
|
||||
val savedEntry = filmLibraryRepository.save(entry)
|
||||
|
||||
|
||||
+6
-5
@@ -41,11 +41,12 @@ class FilmRepositoryIntegrationTest {
|
||||
|
||||
@Test
|
||||
fun `should save new film and return saved film`() {
|
||||
val film = Film(
|
||||
id = UUID.randomUUID(),
|
||||
title = "Начало",
|
||||
description = "Захватывающий триллер о снах внутри снов",
|
||||
)
|
||||
val film =
|
||||
Film(
|
||||
id = UUID.randomUUID(),
|
||||
title = "Начало",
|
||||
description = "Захватывающий триллер о снах внутри снов",
|
||||
)
|
||||
|
||||
val savedFilm = filmRepository.save(film)
|
||||
|
||||
|
||||
+7
-6
@@ -41,12 +41,13 @@ class UserRepositoryIntegrationTest {
|
||||
|
||||
@Test
|
||||
fun `should save new user and return saved user`() {
|
||||
val user = User(
|
||||
id = UUID.randomUUID(),
|
||||
name = "John Doe",
|
||||
email = "john@example.com",
|
||||
library = null,
|
||||
)
|
||||
val user =
|
||||
User(
|
||||
id = UUID.randomUUID(),
|
||||
name = "John Doe",
|
||||
email = "john@example.com",
|
||||
library = null,
|
||||
)
|
||||
|
||||
val savedUser = userRepository.save(user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user