-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Replace JUnit asserts with AssertJ in HistoryRecordManagerTest #7654
Conversation
Can I just say how stupid this ktLint is. There is no profil for Android Studio for the codestyle used in ktLint, so I'm using the default one. The output of that breaks ktLint 🤦♂️ |
They provide a wider range of assertions, which allow for more detailed error messages. Also convert SearchHistoryEntry to kotlin data class for better error messages, since toString() is implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tested the app seems to work also as expected 😄
Co-authored-by: Mohammed Anas <triallax@tutanota.com>
Kudos, SonarCloud Quality Gate passed! |
I made a build on dev branch and when I installed it, I got this Exception
Crash log
So I reset some commits back, and found out that it was caused by this PR. |
@TiA4f8R I already saw it
java -> kotlin 🤦 |
So the exact reason is because of ambiguous nullability in java, which then were made explicit in kotlin during the conversion. see the error messag below
|
@tsiflimagas fix with #7674 |
What is it?
Description of the changes in your PR
Replace JUnit asserts with AssertJ in HistoryRecordManagerTest
They provide a wider range of assertions, which allow for more detailed error messages.
Also convert SearchHistoryEntry to kotlin data class for better error messages, since toString() is implemented.
examples
Fixes the following issue(s)
Due diligence
❗ Squash merge