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
Henning Vogt opened SPR-17091 and commented
org.springframework.test.web.reactive.server.JsonPathAssertions does not have an equals method, thus this Unit-test will always pass:
ResponseSpec spec = this.client.get().uri("/aaa/select?q=*:*").exchange(); spec.expectStatus().is4xxClientError().expectBody() .jsonPath("$.message").equals("test");
I'd suggest to override equals in JsonPathAssertions, makin it "fail()" always, pointing the user to the correct isEqualTo() method. (probably throw an AssertionError or something like that...?)
Affects: 5.0.7
Referenced from: commits fcbf06f
The text was updated successfully, but these errors were encountered:
Rossen Stoyanchev commented
Okay I've done just that for JSON and XML assertions.
Sorry, something went wrong.
rstoyanchev
No branches or pull requests
Henning Vogt opened SPR-17091 and commented
org.springframework.test.web.reactive.server.JsonPathAssertions does not have an equals method, thus this Unit-test will always pass:
I'd suggest to override equals in JsonPathAssertions, makin it "fail()" always, pointing the user to the correct isEqualTo() method. (probably throw an AssertionError or something like that...?)
Affects: 5.0.7
Referenced from: commits fcbf06f
The text was updated successfully, but these errors were encountered: