diff --git a/lib/kadai-core-test/src/test/java/acceptance/task/query/TaskQueryImplAccTest.java b/lib/kadai-core-test/src/test/java/acceptance/task/query/TaskQueryImplAccTest.java index 9e26cc976..978422f98 100644 --- a/lib/kadai-core-test/src/test/java/acceptance/task/query/TaskQueryImplAccTest.java +++ b/lib/kadai-core-test/src/test/java/acceptance/task/query/TaskQueryImplAccTest.java @@ -160,7 +160,7 @@ void should_ReturnDifferentTasks_For_LockResultsEqualsTwo() throws Exception { List returnedTasks = Collections.synchronizedList(new ArrayList<>()); List accessIds = - Collections.synchronizedList(Stream.of("admin", "admin").toList()); + Collections.synchronizedList(new ArrayList<>(List.of("admin", "admin"))); ParallelThreadHelper.runInThread( getRunnableTest(returnedTasks, accessIds), accessIds.size());