Skip to content

Commit

Permalink
User
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 21, 2022
1 parent 86f21b4 commit 1a82062
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import <%= packageName %>.security.AuthoritiesConstants;

<%_ if (reactive) { _%>
import org.springframework.test.web.reactive.server.WebTestClient;
import static org.hamcrest.Matchers.is;
<%_ } else { _%>
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.test.web.servlet.MockMvc;
Expand Down Expand Up @@ -104,7 +105,7 @@ public class UserStepDefs extends StepDefs {
@Then("his last name is {string}")
public void his_last_name_is(String lastName) throws Throwable {
<%_ if (reactive) { _%>
actions.expectBody().jsonPath("$.lastName").value(lastName);
actions.expectBody().jsonPath("$.lastName").value(is(lastName));
<%_ } else { _%>
actions.andExpect(jsonPath("$.lastName").value(lastName));
<%_ } _%>
Expand Down

0 comments on commit 1a82062

Please sign in to comment.