Since version 3.4 of Mockito (PR), we can mock static methods using the mockStatic ... staticSingleton = mockStatic(Singleton.class)) ...
確定! 回上一頁