test: add integration tests for JDBC repositories #15

Merged
skettiks merged 2 commits from test/repository-integration into develop 2026-04-23 19:55:29 +00:00
3 changed files with 21 additions and 18 deletions
Showing only changes of commit 4f0e8ccbd4 - Show all commits
@@ -61,7 +61,8 @@ class FilmLibraryRepositoryIntegrationTest {
@Test @Test
fun `should save new film library entry and return saved entry`() { fun `should save new film library entry and return saved entry`() {
val entry = FilmLibrary( val entry =
FilmLibrary(
id = UUID.randomUUID(), id = UUID.randomUUID(),
userId = testUser.id, userId = testUser.id,
filmId = testFilm.id, filmId = testFilm.id,
@@ -41,7 +41,8 @@ class FilmRepositoryIntegrationTest {
@Test @Test
fun `should save new film and return saved film`() { fun `should save new film and return saved film`() {
val film = Film( val film =
Film(
id = UUID.randomUUID(), id = UUID.randomUUID(),
title = "Начало", title = "Начало",
description = "Захватывающий триллер о снах внутри снов", description = "Захватывающий триллер о снах внутри снов",
@@ -41,7 +41,8 @@ class UserRepositoryIntegrationTest {
@Test @Test
fun `should save new user and return saved user`() { fun `should save new user and return saved user`() {
val user = User( val user =
User(
id = UUID.randomUUID(), id = UUID.randomUUID(),
name = "John Doe", name = "John Doe",
email = "john@example.com", email = "john@example.com",