Created
November 17, 2014 23:25
-
-
Save dmcg/8bdde635acca45139888 to your computer and use it in GitHub Desktop.
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
mockery.when(() -> servlet.process( | |
ImmutableMap.of( | |
"code", new String[]{ codeValue}, | |
"state", new String[]{ state }), | |
"http://rescyoume/oauth", | |
response)). | |
then(expect -> { | |
expect.oneOf(stravaAuthenticator).fetchDetails(codeValue, oAuthAccount, clientState, "http://rescyoume/oauth"); | |
expect.will(returnValue(oAuthDetails)); | |
expect.oneOf(db).save(oAuthDetails); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment