Polish 0cfbf60: fix a test for Java 8 compatibility

This commit is contained in:
Simon Baslé
2023-04-04 15:25:27 +02:00
parent 0cfbf6036c
commit 0e69bac7b0

View File

@@ -212,7 +212,7 @@ class MockRestRequestMatchersTests {
@Test
void headerListDoesntHideHeaderWithSingleMatcher() throws IOException {
this.request.getHeaders().put("foo", List.of("bar", "baz"));
this.request.getHeaders().put("foo", Arrays.asList("bar", "baz"));
MockRestRequestMatchers.header("foo", equalTo("bar")).match(this.request);