diff --git a/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java b/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java
index 4c1771de2cb..37cf2cfd3c1 100644
--- a/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/json/AbstractJsonContentAssert.java
@@ -44,17 +44,17 @@ import org.springframework.util.Assert;
import org.springframework.util.function.ThrowingBiFunction;
/**
- * Base AssertJ {@link org.assertj.core.api.Assert assertions} that can be
+ * Base AssertJ {@linkplain org.assertj.core.api.Assert assertions} that can be
* applied to a JSON document.
*
- *
Support evaluating {@linkplain JsonPath JSON path} expressions and
+ *
Supports evaluating {@linkplain JsonPath JSON path} expressions and
* extracting a part of the document for further {@linkplain JsonPathValueAssert
* assertions} on the value.
*
- *
Also support comparing the JSON document against a target, using
+ *
Also supports comparing the JSON document against a target, using
* {@linkplain JSONCompare JSON Assert}. Resources that are loaded from
* the classpath can be relative if a {@linkplain #withResourceLoadClass(Class)
- * class} is provided. By default, {@code UTF-8} is used to load resources
+ * class} is provided. By default, {@code UTF-8} is used to load resources,
* but this can be overridden using {@link #withCharset(Charset)}.
*
* @author Stephane Nicoll
@@ -85,7 +85,7 @@ public abstract class AbstractJsonContentAssertPath can be converted to a value object using the given
- * {@linkplain GenericHttpMessageConverter json message converter}.
+ * {@linkplain GenericHttpMessageConverter JSON message converter}.
* @param json the JSON document to assert
* @param jsonMessageConverter the converter to use
* @param selfType the implementation type of this assert
@@ -379,12 +379,13 @@ public abstract class AbstractJsonContentAssertResources can be loaded from an absolute location or relative to the
+ * specified class. For instance, specifying {@code com.example.MyClass} as
+ * the resource class allows you to use "my-file.json" to load
+ * {@code /com/example/my-file.json}.
+ * @param resourceLoadClass the class used to load resources, or {@code null}
+ * to only use absolute paths
*/
public SELF withResourceLoadClass(@Nullable Class> resourceLoadClass) {
this.resourceLoadClass = resourceLoadClass;
@@ -393,8 +394,8 @@ public abstract class AbstractJsonContentAssertBy default, resources are loaded using {@code UTF-8}.
* @param charset the charset to use, or {@code null} to use the default
*/
public SELF withCharset(@Nullable Charset charset) {
diff --git a/spring-test/src/main/java/org/springframework/test/json/AbstractJsonValueAssert.java b/spring-test/src/main/java/org/springframework/test/json/AbstractJsonValueAssert.java
index 8a11e46e771..d066a12cd26 100644
--- a/spring-test/src/main/java/org/springframework/test/json/AbstractJsonValueAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/json/AbstractJsonValueAssert.java
@@ -41,7 +41,7 @@ import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
/**
- * Base AssertJ {@link org.assertj.core.api.Assert assertions} that can be
+ * Base AssertJ {@linkplain org.assertj.core.api.Assert assertions} that can be
* applied to a JSON value.
*
*
In JSON, values must be one of the following data types:
diff --git a/spring-test/src/main/java/org/springframework/test/json/JsonContentAssert.java b/spring-test/src/main/java/org/springframework/test/json/JsonContentAssert.java
index db0212feeb1..de4a35f80f9 100644
--- a/spring-test/src/main/java/org/springframework/test/json/JsonContentAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/json/JsonContentAssert.java
@@ -30,7 +30,7 @@ public class JsonContentAssert extends AbstractJsonContentAssertPath can be converted to a value object using the given
- * {@linkplain GenericHttpMessageConverter json message converter}.
+ * {@linkplain GenericHttpMessageConverter JSON message converter}.
* @param json the JSON document to assert
* @param jsonMessageConverter the converter to use
*/
diff --git a/spring-test/src/main/java/org/springframework/test/json/JsonPathValueAssert.java b/spring-test/src/main/java/org/springframework/test/json/JsonPathValueAssert.java
index 131ab830f86..f598e93ea5e 100644
--- a/spring-test/src/main/java/org/springframework/test/json/JsonPathValueAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/json/JsonPathValueAssert.java
@@ -22,7 +22,7 @@ import org.springframework.http.converter.GenericHttpMessageConverter;
import org.springframework.lang.Nullable;
/**
- * AssertJ {@link org.assertj.core.api.Assert assertions} that can be applied
+ * AssertJ {@linkplain org.assertj.core.api.Assert assertions} that can be applied
* to a JSON value produced by evaluating a {@linkplain JsonPath JSON path}
* expression.
*
diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletRequestAssert.java b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletRequestAssert.java
index 98650cb5979..396e0cb21e1 100644
--- a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletRequestAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletRequestAssert.java
@@ -34,7 +34,7 @@ import org.springframework.util.function.SingletonSupplier;
import org.springframework.web.context.request.async.DeferredResult;
/**
- * Base AssertJ {@link org.assertj.core.api.Assert assertions} that can be
+ * Base AssertJ {@linkplain org.assertj.core.api.Assert assertions} that can be
* applied to an {@link HttpServletRequest}.
*
* @author Stephane Nicoll
diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletResponseAssert.java b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletResponseAssert.java
index fe079f7a9d8..9b7f42946e5 100644
--- a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletResponseAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractHttpServletResponseAssert.java
@@ -36,7 +36,7 @@ import org.springframework.util.MultiValueMap;
import org.springframework.util.function.SingletonSupplier;
/**
- * Base AssertJ {@link org.assertj.core.api.Assert assertions} that can be
+ * Base AssertJ {@linkplain org.assertj.core.api.Assert assertions} that can be
* applied to any object that provides an {@link HttpServletResponse}. This
* provides direct access to response assertions while also providing access to
* a different top-level object.
@@ -91,7 +91,7 @@ public abstract class AbstractHttpServletResponseAssert
+ * Examples:
* // Check for the presence of the Accept header:
* assertThat(response).headers().containsHeader(HttpHeaders.ACCEPT);
*
diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletRequestAssert.java b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletRequestAssert.java
index 085ef98d9d3..b8c98ad7d53 100644
--- a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletRequestAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletRequestAssert.java
@@ -19,8 +19,8 @@ package org.springframework.test.web.servlet.assertj;
import org.springframework.mock.web.MockHttpServletRequest;
/**
- * AssertJ {@link org.assertj.core.api.Assert assertions} that can be applied to
- * {@link MockHttpServletRequest}.
+ * AssertJ {@linkplain org.assertj.core.api.Assert assertions} that can be applied
+ * to {@link MockHttpServletRequest}.
*
* @author Stephane Nicoll
* @since 6.2
diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletResponseAssert.java b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletResponseAssert.java
index c320bea1012..9800b2865db 100644
--- a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletResponseAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/AbstractMockHttpServletResponseAssert.java
@@ -56,7 +56,7 @@ public abstract class AbstractMockHttpServletResponseAssertExamples:
+ *
Examples:
* // Check that the response body is equal to "Hello World":
* assertThat(response).bodyText().isEqualTo("Hello World");
*
@@ -70,7 +70,7 @@ public abstract class AbstractMockHttpServletResponseAssertExamples:
+ *
Examples:
* // Check that the response body is strictly equal to the content of
* // "/com/acme/sample/person-created.json":
* assertThat(response).bodyJson()
@@ -82,7 +82,7 @@ public abstract class AbstractMockHttpServletResponseAssert
* The returned assert object also supports JSON path expressions.
- *
Examples:
+ *
Examples:
* // Check that the JSON document does not have an "error" element
* assertThat(response).bodyJson().doesNotHavePath("$.error");
*
@@ -114,7 +114,7 @@ public abstract class AbstractMockHttpServletResponseAssertExample:
+ *
Example:
* // Check that the forwarded URL starts with "/orders/":
* assertThat(response).forwardedUrl().matchPattern("/orders/*);
*
@@ -127,7 +127,7 @@ public abstract class AbstractMockHttpServletResponseAssertExample:
+ *
Example:
* // Check that the redirected URL starts with "/orders/":
* assertThat(response).redirectedUrl().matchPattern("/orders/*);
*
diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/CookieMapAssert.java b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/CookieMapAssert.java
index 681e1e21c92..fd287fadc74 100644
--- a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/CookieMapAssert.java
+++ b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/CookieMapAssert.java
@@ -26,8 +26,8 @@ import org.assertj.core.api.AbstractMapAssert;
import org.assertj.core.api.Assertions;
/**
- * AssertJ {@link org.assertj.core.api.Assert assertions} that can be applied to
- * {@link Cookie cookies}.
+ * AssertJ {@linkplain org.assertj.core.api.Assert assertions} that can be applied
+ * to {@link Cookie cookies}.
*
* @author Brian Clozel
* @author Stephane Nicoll
diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/DefaultMvcTestResult.java b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/DefaultMvcTestResult.java
index 8c718080692..7513a74b35f 100644
--- a/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/DefaultMvcTestResult.java
+++ b/spring-test/src/main/java/org/springframework/test/web/servlet/assertj/DefaultMvcTestResult.java
@@ -39,20 +39,26 @@ final class DefaultMvcTestResult implements MvcTestResult {
@Nullable
private final GenericHttpMessageConverter