Skip to content

Commit

Permalink
Include correct keyword in CookieAssertions failure messages
Browse files Browse the repository at this point in the history
Closes gh-27550
  • Loading branch information
koenpunt authored and sbrannen committed Oct 13, 2021
1 parent b1c7f7d commit 50b9211
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public WebTestClient.ResponseSpec secure(String name, boolean expected) {
public WebTestClient.ResponseSpec httpOnly(String name, boolean expected) {
boolean isHttpOnly = getCookie(name).isHttpOnly();
this.exchangeResult.assertWithDiagnostics(() -> {
String message = getMessage(name) + " secure";
String message = getMessage(name) + " httpOnly";
AssertionErrors.assertEquals(message, expected, isHttpOnly);
});
return this.responseSpec;
Expand All @@ -200,7 +200,7 @@ public WebTestClient.ResponseSpec httpOnly(String name, boolean expected) {
public WebTestClient.ResponseSpec sameSite(String name, String expected) {
String sameSite = getCookie(name).getSameSite();
this.exchangeResult.assertWithDiagnostics(() -> {
String message = getMessage(name) + " secure";
String message = getMessage(name) + " sameSite";
AssertionErrors.assertEquals(message, expected, sameSite);
});
return this.responseSpec;
Expand Down

0 comments on commit 50b9211

Please sign in to comment.