mockStatic (StaticVoidMethodClass.class); // in Mockito, there is a way of stubbing void : // Mockito.doNothing().when(mockObj).toBeMocked(anyInt());
確定! 回上一頁