Created
March 20, 2019 15:18
-
-
Save albertusdev/fa0ee092a90b7f7ccf05fc68a09aca88 to your computer and use it in GitHub Desktop.
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
when(mockObject.nameOfFunctionToTest()).thenReturn(objectToBeReturned); | |
when(mockObject.nameOfFunctionToTest()).thenThrows(errorToBeReturned); | |
when(mockObject.nameOfFunctionToTest()).thenAnswer(functionToBeExecutedAndReturnsSomeValueWithTheSameTypeWhenMethodIsCalled); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment