Skip to content

Instantly share code, notes, and snippets.

@MemoAlfa
Created October 3, 2019 12:01
Show Gist options
  • Save MemoAlfa/5cd1a79fc9267283590b11909a6beebc to your computer and use it in GitHub Desktop.
Save MemoAlfa/5cd1a79fc9267283590b11909a6beebc to your computer and use it in GitHub Desktop.
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