Skip to content

#1764 migrate form Junit5 Assertions to AssertJ#1765

Merged
mergify[bot] merged 1 commit intomainfrom
improvement/1764-migrate-tests-to-assertj
Oct 20, 2024
Merged

#1764 migrate form Junit5 Assertions to AssertJ#1765
mergify[bot] merged 1 commit intomainfrom
improvement/1764-migrate-tests-to-assertj

Conversation

@robfrank
Copy link
Copy Markdown
Collaborator

What does this PR do?

This PR migrates all the Junit5 assertions to AssertJ's

Motivation

The main motivation is to modernize the code base while increasing the readability of test code.

Additional Notes

To fix some flaky tests, Awaitility (https://github.com/awaitility/awaitility) is now used

Checklist

  • I have run the build using mvn clean package command
  • My unit tests cover both failure and success scenarios

@robfrank robfrank added the enhancement New feature or request label Oct 19, 2024
@robfrank robfrank self-assigned this Oct 19, 2024
@robfrank robfrank added this to the 24.11.1 milestone Oct 19, 2024
@robfrank robfrank linked an issue Oct 19, 2024 that may be closed by this pull request
@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (29a0bff) 65144 0 0.00%
Head commit (e26749577c213c59698883253fbf3e17a87a6803) 65144 (+0) 0 (+0) 0.00% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1765) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@robfrank robfrank requested a review from lvca October 19, 2024 15:12
@robfrank robfrank force-pushed the improvement/1764-migrate-tests-to-assertj branch from e267495 to 53edd7d Compare October 19, 2024 16:17
@lvca
Copy link
Copy Markdown
Member

lvca commented Oct 20, 2024

I see there is also the upgrade to Java17, but seems out of scope for this PR.

@robfrank
Copy link
Copy Markdown
Collaborator Author

let me remove the java 17 part

@robfrank robfrank force-pushed the improvement/1764-migrate-tests-to-assertj branch from 0e24563 to 551b1b3 Compare October 20, 2024 07:29
Copy link
Copy Markdown
Member

@lvca lvca left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@mergify mergify bot merged commit 04dec10 into main Oct 20, 2024
@lvca lvca deleted the improvement/1764-migrate-tests-to-assertj branch June 20, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modernization: migrate to assertj

2 participants