private int privateMethod(Object o, boolean b) throws Exception
--
PowerMockito.doThrow(new Throwable("Just a throwable")).when(spy, "privateMethod", Mockito.any(), Mockito.any());
--
org.mockito.exceptions.misusing.UnfinishedStubbingException:
Unfinished stubbing detected
我已经尝试将 any() 切换到 anyObject() 等。但我遇到了存根问题......
错误在哪里?