Skip to content

Update Room Interactor Tests for 100% Line Coverage#131

Merged
aivkov123 merged 1 commit into
mainfrom
room-tests
Dec 2, 2025
Merged

Update Room Interactor Tests for 100% Line Coverage#131
aivkov123 merged 1 commit into
mainfrom
room-tests

Conversation

@perakasem

Copy link
Copy Markdown
Collaborator

No description provided.

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 comprehensive test coverage for JoinRoomInteractor and CreateRoomInteractor to achieve 100% line coverage. The new tests focus on edge cases and error handling paths that were previously untested.

  • Added 2 new test cases for JoinRoomInteractor covering switch methods and exception handling in getRoomByInviteCode
  • Added 7 new test cases for CreateRoomInteractor covering invite code collision/exhaustion, switch methods, and various exception scenarios
  • All tests follow existing patterns and verify correct error handling behavior

Reviewed changes

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

File Description
src/test/java/use_case/room/join/JoinRoomInteractorTest.java Added tests for switch view methods and getRoomByInviteCode exception handling to achieve complete coverage of JoinRoomInteractor
src/test/java/use_case/room/create/CreateRoomInteractorTest.java Added tests for invite code generation edge cases, switch view methods, null room name validation, and various DAO exception scenarios to achieve complete coverage of CreateRoomInteractor

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

@aivkov123 aivkov123 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Tests look good to me, achieves 100% code coverage

@aivkov123
aivkov123 merged commit 9851796 into main Dec 2, 2025
9 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.

3 participants