-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[refactor] replace JUnit assertions by AssertJ #16765
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
[refactor] replace JUnit assertions by AssertJ #16765
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
in many cases, it produces a better error message in case of test failure.
61f0dac to
d8446ff
Compare
|
@asolntsev We are getting some build failures in RBE CI that I think were caused by this PR. Can you take a look? https://github.com/SeleniumHQ/selenium/actions/workflows/ci-rbe.yml?query=branch%3Atrunk I this in the RBE logs: |
|
The RBE tests on this PR failed. This shouldn't have been merged. |
|
Sure, I will check the failure. |
|
You can rerun the specific tests if you think there was a one off issue with a run, but even "just flaky" tests can't be merged until understood. We can help sort out weird bazel errors when they happen if it isn't obvious. |
Fixed in #16773 Thank you @titusfortner for fixing it. |
User description
in many cases, it produces a better error message in case of test failure.
🔄 Types of changes
PR Type
Tests
Description
Replace JUnit assertions with AssertJ for better error messages
Update 30+ test files to use AssertJ fluent API
Add
hasExtension()method toDownloadedFileclassRefactor test code for improved readability and maintainability
Diagram Walkthrough
File Walkthrough
46 files
Replace JUnit assertions with AssertJRefactor assertions and extract helper methodsReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit fail with AssertionErrorAdd new test for DownloadedFile.hasExtensionReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJReplace JUnit assertions with AssertJ1 files
Add hasExtension method to DownloadedFile