test: add integration tests for JDBC repositories #15
+2
-1
@@ -61,7 +61,8 @@ class FilmLibraryRepositoryIntegrationTest {
|
||||
|
||||
@Test
|
||||
fun `should save new film library entry and return saved entry`() {
|
||||
val entry = FilmLibrary(
|
||||
val entry =
|
||||
FilmLibrary(
|
||||
id = UUID.randomUUID(),
|
||||
userId = testUser.id,
|
||||
filmId = testFilm.id,
|
||||
|
||||
+2
-1
@@ -41,7 +41,8 @@ class FilmRepositoryIntegrationTest {
|
||||
|
||||
@Test
|
||||
fun `should save new film and return saved film`() {
|
||||
val film = Film(
|
||||
val film =
|
||||
Film(
|
||||
id = UUID.randomUUID(),
|
||||
title = "Начало",
|
||||
description = "Захватывающий триллер о снах внутри снов",
|
||||
|
||||
+2
-1
@@ -41,7 +41,8 @@ class UserRepositoryIntegrationTest {
|
||||
|
||||
@Test
|
||||
fun `should save new user and return saved user`() {
|
||||
val user = User(
|
||||
val user =
|
||||
User(
|
||||
id = UUID.randomUUID(),
|
||||
name = "John Doe",
|
||||
email = "john@example.com",
|
||||
|
||||
Reference in New Issue
Block a user