So I faced with a problem how to mock static methods. ... Use mockStatic(StaticClassToMock.class);. 4. Unmock by calling: ... For example:.
確定! 回上一頁