Skip to content

Commit 19fcb72

Browse files
committed
Polish Javadoc in the Spring MVC Test Framework
1 parent bf06bf3 commit 19fcb72

14 files changed

+41
-30
lines changed

spring-test/src/main/java/org/springframework/test/web/servlet/result/ContentResultMatchers.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
import static org.springframework.test.util.AssertionErrors.*;
3535

3636
/**
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}.
3940
*
4041
* @author Rossen Stoyanchev
4142
* @since 3.2
@@ -213,7 +214,7 @@ public void match(MvcResult result) throws Exception {
213214

214215
/**
215216
* 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" &mdash; i.e. they contain the same attribute-value pairs
217218
* regardless of order and formatting.
218219
* <p>Use of this matcher requires the <a
219220
* href="http://jsonassert.skyscreamer.org/">JSONassert<a/> library.

spring-test/src/main/java/org/springframework/test/web/servlet/result/CookieResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
import static org.springframework.test.util.AssertionErrors.*;
2828

2929
/**
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}.
3233
*
3334
* @author Rossen Stoyanchev
3435
* @author Thomas Bruyelle

spring-test/src/main/java/org/springframework/test/web/servlet/result/FlashAttributeResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
import static org.springframework.test.util.AssertionErrors.*;
2626

2727
/**
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}.
3031
*
3132
* @author Rossen Stoyanchev
3233
* @since 3.2

spring-test/src/main/java/org/springframework/test/web/servlet/result/HandlerResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
import static org.springframework.test.util.AssertionErrors.*;
3232

3333
/**
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}.
3637
*
3738
* @author Rossen Stoyanchev
3839
* @since 3.2

spring-test/src/main/java/org/springframework/test/web/servlet/result/HeaderResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
import static org.springframework.test.util.AssertionErrors.*;
2626

2727
/**
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}.
3031
*
3132
* @author Rossen Stoyanchev
3233
* @author Sam Brannen

spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Factory for assertions on the response content using
2727
* <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
2929
* {@link MockMvcResultMatchers#jsonPath}.
3030
*
3131
* @author Rossen Stoyanchev

spring-test/src/main/java/org/springframework/test/web/servlet/result/MockMvcResultHandlers.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929
import org.springframework.util.CollectionUtils;
3030

3131
/**
32-
* Static, factory methods for {@link ResultHandler}-based result actions.
32+
* Static factory methods for {@link ResultHandler}-based result actions.
3333
*
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".
3637
*
3738
* @author Rossen Stoyanchev
3839
* @author Sam Brannen

spring-test/src/main/java/org/springframework/test/web/servlet/result/MockMvcResultMatchers.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
import static org.springframework.test.util.AssertionErrors.*;
2929

3030
/**
31-
* Static, factory methods for {@link ResultMatcher}-based result actions.
31+
* Static factory methods for {@link ResultMatcher}-based result actions.
3232
*
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".
3536
*
3637
* @author Rossen Stoyanchev
3738
* @author Brian Clozel

spring-test/src/main/java/org/springframework/test/web/servlet/result/ModelResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
import static org.springframework.test.util.AssertionErrors.*;
3030

3131
/**
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}.
3435
*
3536
* @author Rossen Stoyanchev
3637
* @since 3.2

spring-test/src/main/java/org/springframework/test/web/servlet/result/RequestResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
import static org.springframework.test.util.AssertionErrors.*;
3232

3333
/**
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}.
3637
*
3738
* @author Rossen Stoyanchev
3839
* @since 3.2

spring-test/src/main/java/org/springframework/test/web/servlet/result/StatusResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
import static org.springframework.test.util.AssertionErrors.*;
2727

2828
/**
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}.
3132
*
3233
* @author Keesun Baik
3334
* @author Rossen Stoyanchev

spring-test/src/main/java/org/springframework/test/web/servlet/result/ViewResultMatchers.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
import static org.springframework.test.util.AssertionErrors.*;
2727

2828
/**
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}.
3132
*
3233
* @author Rossen Stoyanchev
3334
* @since 3.2

spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import org.springframework.test.web.servlet.ResultMatcher;
2929

3030
/**
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
3333
* {@link MockMvcResultMatchers#xpath}.
3434
*
3535
* @author Rossen Stoyanchev
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* 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}
44
* and {@link org.springframework.test.web.servlet.result.MockMvcResultHandlers}
5-
* to access to instances of those implementations.
5+
* to access instances of those implementations.
66
*/
77
package org.springframework.test.web.servlet.result;

0 commit comments

Comments
 (0)