Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit ce315af

Browse files
committed
fix: change to Arrays.asList to support java 8
1 parent 8acb1a6 commit ce315af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql-spring-boot-test/src/test/java/com/graphql/spring/boot/test/GraphQLTestTemplateIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void testPerformWithFileUploads() throws IOException {
244244
ArrayNode nodes = objectMapper.valueToTree(Arrays.asList(null, null));
245245
variables.putArray(FILES_STRING_NAME).addAll(nodes);
246246

247-
List<String> fileNames = List.of("multiple-queries.graphql", "simple-test-query.graphql");
247+
List<String> fileNames = Arrays.asList("multiple-queries.graphql", "simple-test-query.graphql");
248248
List<ClassPathResource> testUploadFiles =
249249
fileNames.stream().map(ClassPathResource::new).collect(Collectors.toList());
250250
// WHEN - THEN
@@ -263,7 +263,7 @@ void testPerformWithIndividualFileUpload() throws IOException {
263263
final ObjectNode variables = objectMapper.createObjectNode();
264264
variables.put(UPLOADING_FILE_STRING_NAME, objectMapper.valueToTree(null));
265265

266-
List<String> fileNames = List.of("multiple-queries.graphql");
266+
List<String> fileNames = Arrays.asList("multiple-queries.graphql");
267267
List<ClassPathResource> testUploadFiles =
268268
fileNames.stream().map(ClassPathResource::new).collect(Collectors.toList());
269269
// WHEN - THEN

0 commit comments

Comments
 (0)