Created
October 3, 2019 12:01
-
-
Save MemoAlfa/5cd1a79fc9267283590b11909a6beebc 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
public void givenResponseToGetUserInfo(UUID userUuid, UserInfoResponseDto userInfoResponseDto) { | |
mockServerClient.when(HttpRequest.request() | |
.withPath(String.format(USER_INFO_ENDPOINT, userUuid.toString())) | |
.withMethod(HttpMethod.GET.name()), Times.exactly(1)) | |
.respond(jsonResponse() | |
.withStatusCode(200) | |
.withBody(json(userInfoResponseDto))); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment