| 1 |
Description: correcting the first argument of dm.resolveDependencies |
| 2 |
This argument needs to be a List<String>, not a List<Object>. |
| 3 |
Author: Pierre Gruet <[email protected]> |
| 4 |
Forwarded: https://github.com/nextflow-io/capsule-maven/pull/2 |
| 5 |
Last-Update: 2021-04-29 |
| 6 |
|
| 7 |
--- a/src/test/java/MavenCapsuleTest.java |
| 8 |
+++ b/src/test/java/MavenCapsuleTest.java |
| 9 |
@@ -175,7 +175,7 @@ |
| 10 |
deps.put(dep, as); |
| 11 |
|
| 12 |
when(dm.resolveDependency(dep, type)).thenReturn(as); |
| 13 |
|
| 14 |
+ when(dm.resolveDependencies(anyListOf(String.class), eq(type))).thenAnswer(new Answer<List<Path>>() { |
| 15 |
@Override |
| 16 |
public List<Path> answer(InvocationOnMock invocation) throws Throwable { |
| 17 |
List<String> coords = (List<String>) invocation.getArguments()[0]; |