在这个例子中,我试图模拟下面的方法,但是我得到了错误 org.mockito.exceptions.misusing.NotAMockException: Argument should be a mock, but is: class java.lang.Class
attry {
TrustManager[] trustAllCerts = // ge
我正在使用编写一个简单的单元测试。我有一个函数要测试: foo.getStudent(new School());我的测试用例:public void testDoSomethingrun the method under test}
我想在调用foo.getStudent(school)时将mockedSchool作为参数传递,如何在Mockito中声明此参数?似乎Mockito只有w