Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎么能嘲笑Class<Out T>?我得到了错误:当我尝试模拟并在其中使用它时,Mockito match any class arguments
Class<Out T>
whenever(mockClass.method(mockClass)).thenReturns(...)
any(Class::class)或者any(Class::class.java)也没有帮助。
any(Class::class)
any(Class::class.java)