Skip to content

Commit 0e69bac

Browse files
committed
Polish 0cfbf60: fix a test for Java 8 compatibility
1 parent 0cfbf60 commit 0e69bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-test/src/test/java/org/springframework/test/web/client/match/MockRestRequestMatchersTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void headerListContainsMismatch() {
212212

213213
@Test
214214
void headerListDoesntHideHeaderWithSingleMatcher() throws IOException {
215-
this.request.getHeaders().put("foo", List.of("bar", "baz"));
215+
this.request.getHeaders().put("foo", Arrays.asList("bar", "baz"));
216216

217217
MockRestRequestMatchers.header("foo", equalTo("bar")).match(this.request);
218218

0 commit comments

Comments
 (0)