File tree Expand file tree Collapse file tree 14 files changed +41
-30
lines changed
spring-test/src/main/java/org/springframework/test/web/servlet/result Expand file tree Collapse file tree 14 files changed +41
-30
lines changed Original file line number Diff line number Diff line change 34
34
import static org .springframework .test .util .AssertionErrors .*;
35
35
36
36
/**
37
- * Factory for response content assertions. An instance of this class is
38
- * typically accessed via {@link MockMvcResultMatchers#content()}.
37
+ * Factory for response content assertions.
38
+ * <p>An instance of this class is typically accessed via
39
+ * {@link MockMvcResultMatchers#content}.
39
40
*
40
41
* @author Rossen Stoyanchev
41
42
* @since 3.2
@@ -213,7 +214,7 @@ public void match(MvcResult result) throws Exception {
213
214
214
215
/**
215
216
* Parse the response content and the given string as JSON and assert the two
216
- * are "similar" - i.e. they contain the same attribute-value pairs
217
+ * are "similar" — i.e. they contain the same attribute-value pairs
217
218
* regardless of order and formatting.
218
219
* <p>Use of this matcher requires the <a
219
220
* href="http://jsonassert.skyscreamer.org/">JSONassert<a/> library.
Original file line number Diff line number Diff line change 27
27
import static org .springframework .test .util .AssertionErrors .*;
28
28
29
29
/**
30
- * Factory for response cookie assertions. An instance of this class is
31
- * typically accessed via {@link MockMvcResultMatchers#cookie()}.
30
+ * Factory for response cookie assertions.
31
+ * <p>An instance of this class is typically accessed via
32
+ * {@link MockMvcResultMatchers#cookie}.
32
33
*
33
34
* @author Rossen Stoyanchev
34
35
* @author Thomas Bruyelle
Original file line number Diff line number Diff line change 25
25
import static org .springframework .test .util .AssertionErrors .*;
26
26
27
27
/**
28
- * Factory for "output" flash attribute assertions. An instance of this class is
29
- * typically accessed via {@link MockMvcResultMatchers#flash()}.
28
+ * Factory for "output" flash attribute assertions.
29
+ * <p>An instance of this class is typically accessed via
30
+ * {@link MockMvcResultMatchers#flash}.
30
31
*
31
32
* @author Rossen Stoyanchev
32
33
* @since 3.2
Original file line number Diff line number Diff line change 31
31
import static org .springframework .test .util .AssertionErrors .*;
32
32
33
33
/**
34
- * Factory for assertions on the selected handler. An instance of this class is
35
- * typically accessed via {@link MockMvcResultMatchers#handler()}.
34
+ * Factory for assertions on the selected handler.
35
+ * <p>An instance of this class is typically accessed via
36
+ * {@link MockMvcResultMatchers#handler}.
36
37
*
37
38
* @author Rossen Stoyanchev
38
39
* @since 3.2
Original file line number Diff line number Diff line change 25
25
import static org .springframework .test .util .AssertionErrors .*;
26
26
27
27
/**
28
- * Factory for response header assertions. An instance of this
29
- * class is usually accessed via {@link MockMvcResultMatchers#header()}.
28
+ * Factory for response header assertions.
29
+ * <p>An instance of this class is usually accessed via
30
+ * {@link MockMvcResultMatchers#header}.
30
31
*
31
32
* @author Rossen Stoyanchev
32
33
* @author Sam Brannen
Original file line number Diff line number Diff line change 25
25
/**
26
26
* Factory for assertions on the response content using
27
27
* <a href="http://goessner.net/articles/JsonPath/">JSONPath</a> expressions.
28
- * An instance of this class is typically accessed via
28
+ * <p> An instance of this class is typically accessed via
29
29
* {@link MockMvcResultMatchers#jsonPath}.
30
30
*
31
31
* @author Rossen Stoyanchev
Original file line number Diff line number Diff line change 29
29
import org .springframework .util .CollectionUtils ;
30
30
31
31
/**
32
- * Static, factory methods for {@link ResultHandler}-based result actions.
32
+ * Static factory methods for {@link ResultHandler}-based result actions.
33
33
*
34
- * <p><strong>Eclipse users:</strong> consider adding this class as a Java editor
35
- * favorite. To navigate to this setting, open the Preferences and type "favorites".
34
+ * <h3>Eclipse Users</h3>
35
+ * <p>Consider adding this class as a Java editor favorite. To navigate to
36
+ * this setting, open the Preferences and type "favorites".
36
37
*
37
38
* @author Rossen Stoyanchev
38
39
* @author Sam Brannen
Original file line number Diff line number Diff line change 28
28
import static org .springframework .test .util .AssertionErrors .*;
29
29
30
30
/**
31
- * Static, factory methods for {@link ResultMatcher}-based result actions.
31
+ * Static factory methods for {@link ResultMatcher}-based result actions.
32
32
*
33
- * <p><strong>Eclipse users:</strong> consider adding this class as a Java editor
34
- * favorite. To navigate, open the Preferences and type "favorites".
33
+ * <h3>Eclipse Users</h3>
34
+ * <p>Consider adding this class as a Java editor favorite. To navigate to
35
+ * this setting, open the Preferences and type "favorites".
35
36
*
36
37
* @author Rossen Stoyanchev
37
38
* @author Brian Clozel
Original file line number Diff line number Diff line change 29
29
import static org .springframework .test .util .AssertionErrors .*;
30
30
31
31
/**
32
- * Factory for assertions on the model. An instance of this class is
33
- * typically accessed via {@link MockMvcResultMatchers#model()}.
32
+ * Factory for assertions on the model.
33
+ * <p>An instance of this class is typically accessed via
34
+ * {@link MockMvcResultMatchers#model}.
34
35
*
35
36
* @author Rossen Stoyanchev
36
37
* @since 3.2
Original file line number Diff line number Diff line change 31
31
import static org .springframework .test .util .AssertionErrors .*;
32
32
33
33
/**
34
- * Factory for assertions on the request. An instance of this class is
35
- * typically accessed via {@link MockMvcResultMatchers#request()}.
34
+ * Factory for assertions on the request.
35
+ * <p>An instance of this class is typically accessed via
36
+ * {@link MockMvcResultMatchers#request}.
36
37
*
37
38
* @author Rossen Stoyanchev
38
39
* @since 3.2
Original file line number Diff line number Diff line change 26
26
import static org .springframework .test .util .AssertionErrors .*;
27
27
28
28
/**
29
- * Factory for assertions on the response status. An instance of this class is
30
- * typically accessed via {@link MockMvcResultMatchers#status()}.
29
+ * Factory for assertions on the response status.
30
+ * <p>An instance of this class is typically accessed via
31
+ * {@link MockMvcResultMatchers#status}.
31
32
*
32
33
* @author Keesun Baik
33
34
* @author Rossen Stoyanchev
Original file line number Diff line number Diff line change 26
26
import static org .springframework .test .util .AssertionErrors .*;
27
27
28
28
/**
29
- * Factory for assertions on the selected view. An instance of this class is
30
- * typically accessed via {@link MockMvcResultMatchers#view()}.
29
+ * Factory for assertions on the selected view.
30
+ * <p>An instance of this class is typically accessed via
31
+ * {@link MockMvcResultMatchers#view}.
31
32
*
32
33
* @author Rossen Stoyanchev
33
34
* @since 3.2
Original file line number Diff line number Diff line change 28
28
import org .springframework .test .web .servlet .ResultMatcher ;
29
29
30
30
/**
31
- * Factory for response content {@code ResultMatcher}'s using an XPath
32
- * expression. An instance of this class is typically accessed via
31
+ * Factory for assertions on the response content using XPath expressions.
32
+ * <p> An instance of this class is typically accessed via
33
33
* {@link MockMvcResultMatchers#xpath}.
34
34
*
35
35
* @author Rossen Stoyanchev
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Contains built-in {@code ResultMatcher} and {@code ResultHandler} implementations.
3
- * Use {@link org.springframework.test.web.servlet.result.MockMvcResultMatchers}
3
+ * <p> Use {@link org.springframework.test.web.servlet.result.MockMvcResultMatchers}
4
4
* and {@link org.springframework.test.web.servlet.result.MockMvcResultHandlers}
5
- * to access to instances of those implementations.
5
+ * to access instances of those implementations.
6
6
*/
7
7
package org .springframework .test .web .servlet .result ;
You can’t perform that action at this time.
0 commit comments