-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add diff info to AssertionFailedException #39
Comments
can you elaborate? How would you encode a generic "diff-type" as part of the payload where the left and right sides of the assertions are plain Serializables? What you can do probably is adding an extra pair of "Serializables" to the AssertionFailedException. But lets add: By default (most cases) it is enough to just use |
I think it can be resolved by allowing to pass custom |
AssertJ offers different ways of checking if a string is equal to something:
isEqualTo
isEqualToIgnoringWhitespace
isEqualToNormalizingWhitespace
IDEs (at least IntellIJ) could use this additional information to use correct options from to display the diff. If we could pass this information to the IDEs it would be of a tremendous benefit to users (especially when they use the more advanced checks)
The text was updated successfully, but these errors were encountered: