Package org.springframework.test.util

Examples of org.springframework.test.util.JsonPathExpectationsHelper


            public void match(MvcResult result) throws ParseException, java.text.ParseException {
                HttpServletRequest request = result.getRequest();
                assertThat("Async not started.", request.isAsyncStarted());
                Object res = result.getAsyncResult();
                assertThat("Not string return.", res, is(instanceOf(String.class)));
                new JsonPathExpectationsHelper(expression).assertValue((String) res, matcher);
            }
        };
    }
View Full Code Here


   * Protected constructor. Use
   * {@link MockMvcResultMatchers#jsonPath(String, Object...)} or
   * {@link MockMvcResultMatchers#jsonPath(String, Matcher)}.
   */
  protected JsonPathResultMatchers(String expression, Object ... args) {
    this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
  }
View Full Code Here

   * @param args arguments to parameterize the JSONPath expression with using
   * the formatting specifiers defined in
   * {@link String#format(String, Object...)}
   */
  protected JsonPathRequestMatchers(String expression, Object ... args) {
    this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
  }
View Full Code Here

TOP

Related Classes of org.springframework.test.util.JsonPathExpectationsHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.