Skip to content
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

Replacing assertion libraries: Hamcrest by AssertJ #31

Closed

Conversation

eliasnogueira
Copy link
Contributor

Motivation

This PR replaces Hamcrest with AssertJ in order to add more fluent and understandable assertions.

Changed

  • jakarta-data-api
    • Removed hamcrest-all in favour of assertj-core
    • Changed the assertions in PageableTest and SortTest
    • Removed redundant tests on SortTest
  • jakarta-data-parent
    • Updated the following libraries
      • mockito.versionto4.8.0`
      • junit to 5.9.0
    • Fix typo on mockito.version

This change replace all the assertions from Hamcrest by AssertJ, adding more fluent assertions through soft assertions.
This change replace all the assertions from Hamcrest by AssertJ, adding more fluent assertions through soft assertions.
Three tests was also removed as they are now redundant: shouldCreateOrder(), shouldAscending() and shouldDescending()
Replace of Hamcrest by AssertJ to add more fluent assertions.
Additionally, added a property to easily update the assertj-core version
JUnit and Mockito are now using the latest versions.
Fix typo in the mockito version property
api/pom.xml Outdated Show resolved Hide resolved
eliasnogueira and others added 2 commits October 3, 2022 16:00
Co-authored-by: Otávio Santana <otaviopolianasantana@gmail.com>
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.

None yet

2 participants