Last active
December 21, 2015 06:19
-
-
Save chbatey/6263652 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
//Java Mocktio | |
when(someMock.someMethod("something")).thenReturn("oneThing") | |
when(someMock.someMethod("somethingElse")).thenReturn("anotherThing") | |
//Groovy MockFor | |
someMock.demand.someMethodThatReturns { | |
param1 -> | |
if (param1 == "something") return "oneThing" | |
if (param1 == "somethingElse") return "anotherThing" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment