Skip to content

Commit bf00db3

Browse files
committed
Avoid AssertJ deprecation warning
1 parent f5d36aa commit bf00db3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-test/src/test/java/org/springframework/mock/web/MockHttpServletRequestTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ void cookies() {
297297

298298
assertThat(cookieHeaders)
299299
.describedAs("Cookies -> Header conversion works as expected per RFC6265")
300-
.hasSize(1)
301-
.hasOnlyOneElementSatisfying(header -> assertThat(header).isEqualTo("foo=bar; baz=qux"));
300+
.singleElement().isEqualTo("foo=bar; baz=qux");
302301
}
303302

304303
@Test

0 commit comments

Comments
 (0)