Advertisement
Guest User

Test

a guest
Aug 21st, 2014
1,903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. StartGame spyStartGame = spy(new StartGame());
  2.     User user = mock(User.class);
  3.     ISFSObject resObj = SFSObject.newInstance();
  4.     resObj.putInt("res", 1);
  5.    
  6.     doNothing().when(spyStartGame).send("StartGame", resObj, user);
  7.     spyStartGame.handleClientRequest(user, null);
  8.  
  9.     verify(spyStartGame).send("StartGame", resObj, user);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement