예제 #1
0
  @Then("^the response should contain a \"([^\"]*)\"$")
  public void the_response_should_contain_a(String memberName) throws Throwable {
    String[] path = memberName.split("[.]");

    Object member = ReflectionUtils.getByPath(result, Arrays.asList(path));

    assertNotNull(member);
  }
예제 #2
0
  @Then("^the value at \"(.*?)\" should be a map")
  public void then_the_value_at_should_be_a_map(String memberName) {

    String[] path = memberName.split("[.]");

    Object member = ReflectionUtils.getByPath(result, Arrays.asList(path));

    assertTrue(member instanceof java.util.Map);
  }