Last active
April 10, 2020 12:44
-
-
Save ashkrit/e60c7d400fc07059e5287577ec95aa4d 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
@RegisterExtension | |
JUnit5Mockery context = new JUnit5Mockery(); | |
context.checking(new Expectations() {{ | |
oneOf(currencyConverter).convert(1, "SGD", "INR"); | |
will(returnValue(50d)); | |
oneOf(bankService).deposit(100d, account); | |
will(returnValue("99999")); | |
}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment