Polishing

This commit is contained in:
Sam Brannen
2015-08-14 22:45:10 +02:00
parent 07bb0378b9
commit d4d5e5ce40
8 changed files with 62 additions and 64 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.test.web.client.match;
import java.io.IOException;
@@ -26,10 +27,10 @@ import org.springframework.test.util.JsonPathExpectationsHelper;
import org.springframework.test.web.client.RequestMatcher;
/**
* Factory methods for request content {@code RequestMatcher}'s using a <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a> expression.
* An instance of this class is typically accessed via
* {@code RequestMatchers.jsonPath(..)}.
* Factory methods for request content {@code RequestMatcher}s using a
* <a href="https://github.com/jayway/JsonPath">JsonPath</a> expression.
* <p>An instance of this class is typically accessed via
* {@link MockRestRequestMatchers#jsonPath}.
*
* @author Rossen Stoyanchev
* @since 3.2
@@ -115,7 +116,7 @@ public class JsonPathRequestMatchers {
/**
* Abstract base class for JSONPath {@link RequestMatcher}'s.
* Abstract base class for JSONPath {@link RequestMatcher}s.
*/
private abstract static class AbstractJsonPathRequestMatcher implements RequestMatcher {

View File

@@ -36,11 +36,12 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*;
/**
* Static, factory methods for {@link RequestMatcher} classes. Typically used to
* Static factory methods for {@link RequestMatcher} classes. Typically used to
* provide input for {@link MockRestServiceServer#expect(RequestMatcher)}.
*
* <p><strong>Eclipse users:</strong> Consider adding this class as a Java editor
* favorite. To navigate, open the Preferences and type "favorites".
* <h3>Eclipse Users</h3>
* <p>Consider adding this class as a Java editor favorite. To navigate to
* this setting, open the Preferences and type "favorites".
*
* @author Craig Walls
* @author Rossen Stoyanchev
@@ -166,8 +167,8 @@ public abstract class MockRestRequestMatchers {
}
/**
* Access to request body matchers using a <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a> expression to
* Access to request body matchers using a
* <a href="https://github.com/jayway/JsonPath">JsonPath</a> expression to
* inspect a specific subset of the body. The JSON path expression can be a
* parameterized string using formatting specifiers as defined in
* {@link String#format(String, Object...)}.
@@ -179,8 +180,8 @@ public abstract class MockRestRequestMatchers {
}
/**
* Access to request body matchers using a <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a> expression to
* Access to request body matchers using a
* <a href="https://github.com/jayway/JsonPath">JsonPath</a> expression to
* inspect a specific subset of the body and a Hamcrest match for asserting
* the value found at the JSON path.
* @param expression the JSON path expression