Skip to content

Added FollowService integration test and fixed a bug - #4

Merged
YukiJanse merged 2 commits into
mainfrom
feature/integration-tests
Feb 6, 2026
Merged

YukiJanse merged 2 commits into
mainfrom
feature/integration-tests

Conversation

@YukiJanse

Copy link
Copy Markdown
Owner

Added FollowService integration test and fixed a bug

Copilot AI review requested due to automatic review settings February 6, 2026 20:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an integration test for FollowService and fixes a database insert bug in the follow relationship repository query (ensuring audit timestamps are populated).

Changes:

  • Added FollowServiceIntegrationTest covering follow/unfollow behavior and “already followed” idempotency.
  • Updated FollowRepository#createFollowRelationship native INSERT to also set updated_at (in addition to created_at).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/test/java/se/jensen/yuki/springboot/service/FollowServiceIntegrationTest.java New integration tests for follow/unfollow flows using Spring Boot context + repositories.
src/main/java/se/jensen/yuki/springboot/repository/FollowRepository.java Fixes native insert to populate updated_at, aligning with non-null audit columns from BaseEntity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@YukiJanse
YukiJanse merged commit ad66905 into main Feb 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants