Created
December 30, 2013 21:54
-
-
Save indrekots/8188865 to your computer and use it in GitHub Desktop.
Example on how to stub methods with Mockito
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mockito.when(userDao.getUserById(1L)).thenReturn(new User("Mario")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment