Skip to content

Instantly share code, notes, and snippets.

@tzachz
Created September 17, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzachz/bb5d8bdf03e25bd26f82dcf62f015fc4 to your computer and use it in GitHub Desktop.
Save tzachz/bb5d8bdf03e25bd26f82dcf62f015fc4 to your computer and use it in GitHub Desktop.
Mockito gotcha: mockito impl
public <T> OngoingStubbing<T> when(T methodCall) {
mockingProgress.stubbingStarted();
return (OngoingStubbing) stub();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment