Is there a way to match any class argument of the below sample routine?
class A { public B method(Class extends A> a) {} }
How
There is another way to do that without cast:
when(a.method(Matchers.>any())).thenReturn(b);
This solution forces the method any() to return Class type and not its default value (Object).
any()
Class
Object