Description: correcting the first argument of dm.resolveDependencies This argument needs to be a List, not a List. Author: Pierre Gruet Forwarded: https://github.com/nextflow-io/capsule-maven/pull/2 Last-Update: 2021-04-29 --- a/src/test/java/MavenCapsuleTest.java +++ b/src/test/java/MavenCapsuleTest.java @@ -175,7 +175,7 @@ deps.put(dep, as); when(dm.resolveDependency(dep, type)).thenReturn(as); - when(dm.resolveDependencies(anyList(), eq(type))).thenAnswer(new Answer>() { + when(dm.resolveDependencies(anyListOf(String.class), eq(type))).thenAnswer(new Answer>() { @Override public List answer(InvocationOnMock invocation) throws Throwable { List coords = (List) invocation.getArguments()[0];