Skip to content

Migrate from JUnit 4 to JUnit 5 #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged

Conversation

basmussen
Copy link
Contributor

Summary

  • Migrate testing framework from JUnit 4 to JUnit 5
  • Update test assertions to use modern JUnit 5 API

Changes

  • Replace junit 4.13.2 dependency with junit-jupiter 5.11.4
  • Update all @test(expected=Exception.class) annotations to use assertThrows
  • Add necessary imports for JUnit 5 assertions
  • Improve test structure and readability

Testing

All 86 tests pass successfully with JUnit 5.

Closes #29

- Replace junit 4.13.2 with junit-jupiter 5.11.4
- Update @test(expected=...) to assertThrows
- Add static import for assertThrows
- Update test structure for better readability

Closes #29
@basmussen basmussen merged commit 6676549 into develop Jun 10, 2025
7 checks passed
@basmussen basmussen deleted the feature/junit5-migration branch June 10, 2025 07:55
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.

Migrate from JUnit 4 to JUnit 5
1 participant