Polish Javadoc in the Spring MVC Test Framework

This commit is contained in:
Sam Brannen 2015-07-20 22:41:14 +02:00
parent bf06bf33ab
commit 19fcb72d70
14 changed files with 41 additions and 30 deletions

View File

@ -34,8 +34,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for response content assertions. An instance of this class is * Factory for response content assertions.
* typically accessed via {@link MockMvcResultMatchers#content()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#content}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 3.2 * @since 3.2
@ -213,7 +214,7 @@ public class ContentResultMatchers {
/** /**
* Parse the response content and the given string as JSON and assert the two * Parse the response content and the given string as JSON and assert the two
* are "similar" - i.e. they contain the same attribute-value pairs * are "similar" &mdash; i.e. they contain the same attribute-value pairs
* regardless of order and formatting. * regardless of order and formatting.
* <p>Use of this matcher requires the <a * <p>Use of this matcher requires the <a
* href="http://jsonassert.skyscreamer.org/">JSONassert<a/> library. * href="http://jsonassert.skyscreamer.org/">JSONassert<a/> library.

View File

@ -27,8 +27,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for response cookie assertions. An instance of this class is * Factory for response cookie assertions.
* typically accessed via {@link MockMvcResultMatchers#cookie()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#cookie}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Thomas Bruyelle * @author Thomas Bruyelle

View File

@ -25,8 +25,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for "output" flash attribute assertions. An instance of this class is * Factory for "output" flash attribute assertions.
* typically accessed via {@link MockMvcResultMatchers#flash()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#flash}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 3.2 * @since 3.2

View File

@ -31,8 +31,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for assertions on the selected handler. An instance of this class is * Factory for assertions on the selected handler.
* typically accessed via {@link MockMvcResultMatchers#handler()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#handler}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 3.2 * @since 3.2

View File

@ -25,8 +25,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for response header assertions. An instance of this * Factory for response header assertions.
* class is usually accessed via {@link MockMvcResultMatchers#header()}. * <p>An instance of this class is usually accessed via
* {@link MockMvcResultMatchers#header}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Sam Brannen * @author Sam Brannen

View File

@ -25,7 +25,7 @@ import org.springframework.test.web.servlet.ResultMatcher;
/** /**
* Factory for assertions on the response content using * Factory for assertions on the response content using
* <a href="http://goessner.net/articles/JsonPath/">JSONPath</a> expressions. * <a href="http://goessner.net/articles/JsonPath/">JSONPath</a> expressions.
* An instance of this class is typically accessed via * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#jsonPath}. * {@link MockMvcResultMatchers#jsonPath}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -29,10 +29,11 @@ import org.springframework.test.web.servlet.ResultHandler;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
/** /**
* Static, factory methods for {@link ResultHandler}-based result actions. * Static factory methods for {@link ResultHandler}-based result actions.
* *
* <p><strong>Eclipse users:</strong> consider adding this class as a Java editor * <h3>Eclipse Users</h3>
* favorite. To navigate to this setting, open the Preferences and type "favorites". * <p>Consider adding this class as a Java editor favorite. To navigate to
* this setting, open the Preferences and type "favorites".
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Sam Brannen * @author Sam Brannen

View File

@ -28,10 +28,11 @@ import org.springframework.util.AntPathMatcher;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Static, factory methods for {@link ResultMatcher}-based result actions. * Static factory methods for {@link ResultMatcher}-based result actions.
* *
* <p><strong>Eclipse users:</strong> consider adding this class as a Java editor * <h3>Eclipse Users</h3>
* favorite. To navigate, open the Preferences and type "favorites". * <p>Consider adding this class as a Java editor favorite. To navigate to
* this setting, open the Preferences and type "favorites".
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Brian Clozel * @author Brian Clozel

View File

@ -29,8 +29,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for assertions on the model. An instance of this class is * Factory for assertions on the model.
* typically accessed via {@link MockMvcResultMatchers#model()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#model}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 3.2 * @since 3.2

View File

@ -31,8 +31,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for assertions on the request. An instance of this class is * Factory for assertions on the request.
* typically accessed via {@link MockMvcResultMatchers#request()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#request}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 3.2 * @since 3.2

View File

@ -26,8 +26,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for assertions on the response status. An instance of this class is * Factory for assertions on the response status.
* typically accessed via {@link MockMvcResultMatchers#status()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#status}.
* *
* @author Keesun Baik * @author Keesun Baik
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -26,8 +26,9 @@ import static org.hamcrest.MatcherAssert.*;
import static org.springframework.test.util.AssertionErrors.*; import static org.springframework.test.util.AssertionErrors.*;
/** /**
* Factory for assertions on the selected view. An instance of this class is * Factory for assertions on the selected view.
* typically accessed via {@link MockMvcResultMatchers#view()}. * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#view}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @since 3.2 * @since 3.2

View File

@ -28,8 +28,8 @@ import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.ResultMatcher; import org.springframework.test.web.servlet.ResultMatcher;
/** /**
* Factory for response content {@code ResultMatcher}'s using an XPath * Factory for assertions on the response content using XPath expressions.
* expression. An instance of this class is typically accessed via * <p>An instance of this class is typically accessed via
* {@link MockMvcResultMatchers#xpath}. * {@link MockMvcResultMatchers#xpath}.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -1,7 +1,7 @@
/** /**
* Contains built-in {@code ResultMatcher} and {@code ResultHandler} implementations. * Contains built-in {@code ResultMatcher} and {@code ResultHandler} implementations.
* Use {@link org.springframework.test.web.servlet.result.MockMvcResultMatchers} * <p>Use {@link org.springframework.test.web.servlet.result.MockMvcResultMatchers}
* and {@link org.springframework.test.web.servlet.result.MockMvcResultHandlers} * and {@link org.springframework.test.web.servlet.result.MockMvcResultHandlers}
* to access to instances of those implementations. * to access instances of those implementations.
*/ */
package org.springframework.test.web.servlet.result; package org.springframework.test.web.servlet.result;