Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StartGame spyStartGame = spy(new StartGame());
- User user = mock(User.class);
- ISFSObject resObj = SFSObject.newInstance();
- resObj.putInt("res", 1);
- doNothing().when(spyStartGame).send("StartGame", resObj, user);
- spyStartGame.handleClientRequest(user, null);
- verify(spyStartGame).send("StartGame", resObj, user);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement