Created
September 17, 2019 19:03
-
-
Save tzachz/4a388a987f43fa48ca32227377d4de06 to your computer and use it in GitHub Desktop.
Mockito gotcha: detail
This file contains 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
private def answerSizeOfInputPlus(add: Int): Answer[Int] = invocation => { | |
val inputArg: String = invocation.getArgumentAt(0, classOf[String]) | |
inputArg.length + add | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment