SomeClass someclass = mock(SomeClass.class,Mockito.RETURNS_DEEP_STUBS);2. Assert Any Exceptions 断言异常
assertThrows(RunTimeException.class, ()->{ //logic code });3. Mock private method私有方法
@InjectMocks PrivateInClass privateInClass; ReflectionTestUtils.invokeMethod(privateInClass, "privateMethodName", param1, param2, ...);4. Mock final class 将文件加入到如下路径
.../test/resources/mockkito-extensions/org.mockito.plugins.MockMakerMockMaker 文件内容
mock-maker-inline