Skip to content

Instantly share code, notes, and snippets.

@lfn3
Last active June 7, 2018 03:22
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 lfn3/035ff5f3c218b6763d7ac9da82b947ea to your computer and use it in GitHub Desktop.
Save lfn3/035ff5f3c218b6763d7ac9da82b947ea to your computer and use it in GitHub Desktop.
JMock -> Mockito Regexes
allowing\((.+)\)\.(\w+\(.*\));\n\s*will\(returnValue\((.*)\)\);
given($1.$2).willReturn($3);
oneOf\((.+)\)\.(.+);
verify($1).$2;
ignoring\(.+\);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment