Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AntiShare mockedAntiShare = PowerMockito.mock(AntiShare.class);
- PowerMockito.mockStatic(AntiShare.class);
- when(AntiShare.getInstance()).thenReturn(mockedAntiShare);
- when(mockedAntiShare.getDataFolder()).thenReturn(new File("my/path"));
Advertisement
Add Comment
Please, Sign In to add comment