I\'m using mockito 1.9.5. I have the following code:
public class ClassA { public List extends MyInterface> getMyInterfaces() { return null; }
Another solution (albeit less readable) is to qualify the static method call of when to bind the wildcard:
when
Mockito.>when(classAMock.getMyInterfaces()).thenReturn(interfaces);