We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d36aa commit bf00db3Copy full SHA for bf00db3
spring-test/src/test/java/org/springframework/mock/web/MockHttpServletRequestTests.java
@@ -297,8 +297,7 @@ void cookies() {
297
298
assertThat(cookieHeaders)
299
.describedAs("Cookies -> Header conversion works as expected per RFC6265")
300
- .hasSize(1)
301
- .hasOnlyOneElementSatisfying(header -> assertThat(header).isEqualTo("foo=bar; baz=qux"));
+ .singleElement().isEqualTo("foo=bar; baz=qux");
302
}
303
304
@Test
0 commit comments