Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 21, 2022
1 parent f1689a1 commit 37ed878
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ public class UserStepDefs extends StepDefs {
@When("I search user {string}")
public void i_search_user(String userId) throws Throwable {
<%_ if (reactive) { _%>
actions = userResourceMock.get().uri("/api/admin/users/" + userId).exchange()
actions = userResourceMock.get().uri("/api/admin/users/" + userId).accept(MediaType.APPLICATION_JSON).exchange();
<%_ } else { _%>
actions = userResourceMock.perform(get("/api/admin/users/" + userId)
actions = userResourceMock.perform(get("/api/admin/users/" + userId).accept(MediaType.APPLICATION_JSON));
<%_ } _%>
.accept(MediaType.APPLICATION_JSON)<% if (!reactive) { %>)<%_ } _%>;
}

@Then("the user is found")
Expand Down

0 comments on commit 37ed878

Please sign in to comment.