공부
Mockito match any class argument
승가비
2024. 6. 1. 11:04
728x90
when(a.method(any(Class.class))).thenReturn(b);
https://stackoverflow.com/questions/7500312/mockito-match-any-class-argument
Mockito match any class argument
Is there a way to match any class argument of the below sample routine? class A { public B method(Class<? extends A> a) {} } How can I always return a new B() regardless of which class...
stackoverflow.com
728x90