public void SomeClass {
public void process() {
mylist.addAll(rpp.getFilePaths(id));
}
}
public class Test {
@Test
public void testProcess() throws Exception {
// I need help here ...
List <Path> results = when(rpp.getFilePaths(id)).thenReturn)(blah blah);
test.process();
}
}
With Mockito
, how can I obtain the values of mylist
when test.process()
is called or how can I obtain the List
that was returned when rpp.getFilePaths(id)
was called.