test: add unit tests for services #18

Merged
skettiks merged 2 commits from test/service-unit-tests into develop 2026-04-23 19:49:51 +00:00
skettiks commented 2026-04-20 21:22:49 +00:00 (Migrated from github.com)

Добавлены юнит тесты для всех сервисов

Summary by CodeRabbit

  • Tests
    • Added comprehensive unit test suites for core application services—user management, film library management, and film operations. Tests cover successful operations, error scenarios, edge cases, and data integrity validation. These tests improve overall code reliability, prevent regressions, and ensure consistent behavior across all features to support enhanced application stability and quality.
Добавлены юнит тесты для всех сервисов <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added comprehensive unit test suites for core application services—user management, film library management, and film operations. Tests cover successful operations, error scenarios, edge cases, and data integrity validation. These tests improve overall code reliability, prevent regressions, and ensure consistent behavior across all features to support enhanced application stability and quality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
coderabbitai[bot] commented 2026-04-20 21:22:56 +00:00 (Migrated from github.com)

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Free

Run ID: 2b901c07-370a-4838-96a6-a05e65f5d7d1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

<!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- This is an auto-generated comment: skip review by coderabbit.ai --> > [!IMPORTANT] > ## Review skipped > > Auto reviews are disabled on base/target branches other than the default branch. > > > > Please check the settings in the CodeRabbit UI or the `.coderabbit.yaml` file in this repository. To trigger a single review, invoke the `@coderabbitai review` command. > > <details> > <summary>⚙️ Run configuration</summary> > > **Configuration used**: Organization UI > > **Review profile**: ASSERTIVE > > **Plan**: Free > > **Run ID**: `2b901c07-370a-4838-96a6-a05e65f5d7d1` > > </details> > > You can disable this status message by setting the `reviews.review_status` to `false` in the CodeRabbit configuration file. > > Use the checkbox below for a quick retry: > - [ ] <!-- {"checkboxId": "e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review <!-- end of auto-generated comment: skip review by coderabbit.ai --> <!-- tips_start --> --- > [!NOTE] > <details> > <summary>🎁 Summarized by CodeRabbit Free</summary> > > Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting <https://app.coderabbit.ai/login>. > > </details> <sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub> <!-- tips_end -->
devitq commented 2026-04-23 06:26:42 +00:00 (Migrated from github.com)

@copilot review

@copilot review
Copilot commented 2026-04-23 06:36:55 +00:00 (Migrated from github.com)

@copilot review

Done in bd7ecfc: fixed the failing test setup by adding mockk to the Gradle version catalog and formatted FilmLibraryServiceTest to satisfy ktlint. Validation is green (gradle check on Java 21). UI screenshot is not applicable because there are no UI changes in this backend PR.

> @copilot review Done in bd7ecfc: fixed the failing test setup by adding `mockk` to the Gradle version catalog and formatted `FilmLibraryServiceTest` to satisfy ktlint. Validation is green (`gradle check` on Java 21). UI screenshot is not applicable because there are no UI changes in this backend PR.
devitq (Migrated from github.com) approved these changes 2026-04-23 19:49:44 +00:00
devitq (Migrated from github.com) left a comment

LGTM

LGTM
Sign in to join this conversation.