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

When multiple differences are found, AssertionErrors are missing detail #181

Closed
hannsl opened this issue May 21, 2019 · 2 comments
Closed

Comments

@hannsl
Copy link

hannsl commented May 21, 2019

When multiple differences are found, the individual assertion errors are reported as:

Different value found in node "%s", expected: <%s> but was: <%s>.

This seems to be due to the following line of code in JsonDifference:

AssertionFailedError getError() {
    return new AssertionFailedError(message, expected.getValue(), actual.getValue());
}
@lukas-krecan
Copy link
Owner

Hi, thanks a lot for reporting. Will fix it.

lukas-krecan added a commit that referenced this issue May 22, 2019
Fixes #181 - correct formatting of multiple error messages
@lukas-krecan
Copy link
Owner

Released as 2.6.2

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

No branches or pull requests

2 participants