org.springframework.test.util.JsonPathExpectationsHelper Java Examples

The following examples show how to use org.springframework.test.util.JsonPathExpectationsHelper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JsonPathAssertions.java    From spring-analysis-note with MIT License 4 votes vote down vote up
JsonPathAssertions(WebTestClient.BodyContentSpec spec, String content, String expression, Object... args) {
	this.bodySpec = spec;
	this.content = content;
	this.pathHelper = new JsonPathExpectationsHelper(expression, args);
}
 
Example #2
Source File: JsonPathAssertions.java    From java-technology-stack with MIT License 4 votes vote down vote up
JsonPathAssertions(WebTestClient.BodyContentSpec spec, String content, String expression, Object... args) {
	this.bodySpec = spec;
	this.content = content;
	this.pathHelper = new JsonPathExpectationsHelper(expression, args);
}
 
Example #3
Source File: JsonPathResultMatchers.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Protected constructor.
 * <p>Use {@link MockMvcResultMatchers#jsonPath(String, Object...)} or
 * {@link MockMvcResultMatchers#jsonPath(String, Matcher)}.
 * @param expression the {@link JsonPath} expression; never {@code null} or empty
 * @param args arguments to parameterize the {@code JsonPath} expression with,
 * using formatting specifiers defined in {@link String#format(String, Object...)}
 */
protected JsonPathResultMatchers(String expression, Object... args) {
	this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
}
 
Example #4
Source File: JsonPathRequestMatchers.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Protected constructor.
 * <p>Use {@link MockRestRequestMatchers#jsonPath(String, Matcher)} or
 * {@link MockRestRequestMatchers#jsonPath(String, Object...)}.
 * @param expression the {@link JsonPath} expression; never {@code null} or empty
 * @param args arguments to parameterize the {@code JsonPath} expression with,
 * using formatting specifiers defined in {@link String#format(String, Object...)}
 */
protected JsonPathRequestMatchers(String expression, Object ... args) {
	this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
}
 
Example #5
Source File: JsonPathResultMatchers.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Protected constructor.
 * <p>Use {@link MockMvcResultMatchers#jsonPath(String, Object...)} or
 * {@link MockMvcResultMatchers#jsonPath(String, Matcher)}.
 * @param expression the {@link JsonPath} expression; never {@code null} or empty
 * @param args arguments to parameterize the {@code JsonPath} expression with,
 * using formatting specifiers defined in {@link String#format(String, Object...)}
 */
protected JsonPathResultMatchers(String expression, Object... args) {
	this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
}
 
Example #6
Source File: JsonPathRequestMatchers.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Protected constructor.
 * <p>Use {@link MockRestRequestMatchers#jsonPath(String, Matcher)} or
 * {@link MockRestRequestMatchers#jsonPath(String, Object...)}.
 * @param expression the {@link JsonPath} expression; never {@code null} or empty
 * @param args arguments to parameterize the {@code JsonPath} expression with,
 * using formatting specifiers defined in {@link String#format(String, Object...)}
 */
protected JsonPathRequestMatchers(String expression, Object ... args) {
	this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
}
 
Example #7
Source File: JsonPathResultMatchers.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Protected constructor.
 * <p>Use {@link MockMvcResultMatchers#jsonPath(String, Object...)} or
 * {@link MockMvcResultMatchers#jsonPath(String, Matcher)}.
 * @param expression the {@link JsonPath} expression; never {@code null} or empty
 * @param args arguments to parameterize the {@code JsonPath} expression with,
 * using formatting specifiers defined in {@link String#format(String, Object...)}
 */
protected JsonPathResultMatchers(String expression, Object ... args) {
	this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
}
 
Example #8
Source File: JsonPathRequestMatchers.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Protected constructor.
 * <p>Use {@link MockRestRequestMatchers#jsonPath(String, Matcher)} or
 * {@link MockRestRequestMatchers#jsonPath(String, Object...)}.
 * @param expression the {@link JsonPath} expression; never {@code null} or empty
 * @param args arguments to parameterize the {@code JsonPath} expression with,
 * using formatting specifiers defined in {@link String#format(String, Object...)}
 */
protected JsonPathRequestMatchers(String expression, Object ... args) {
	this.jsonPathHelper = new JsonPathExpectationsHelper(expression, args);
}