Browse Source

Avoid AssertJ deprecation warning

pull/25837/head
Sam Brannen 4 years ago
parent
commit
bf00db3c6c
  1. 3
      spring-test/src/test/java/org/springframework/mock/web/MockHttpServletRequestTests.java

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

@ -297,8 +297,7 @@ class MockHttpServletRequestTests { @@ -297,8 +297,7 @@ class MockHttpServletRequestTests {
assertThat(cookieHeaders)
.describedAs("Cookies -> Header conversion works as expected per RFC6265")
.hasSize(1)
.hasOnlyOneElementSatisfying(header -> assertThat(header).isEqualTo("foo=bar; baz=qux"));
.singleElement().isEqualTo("foo=bar; baz=qux");
}
@Test

Loading…
Cancel
Save