From 96bf048dd24c7531a96e2f3e69354d020fe7825f Mon Sep 17 00:00:00 2001 From: skfkgla Date: Wed, 4 Mar 2026 12:50:33 +0900 Subject: [PATCH] Improve MockMvc testing documentation navigation Closes gh-18844 Signed-off-by: skfkgla --- docs/modules/ROOT/pages/servlet/test/mockmvc/index.adoc | 6 ++++++ docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/modules/ROOT/pages/servlet/test/mockmvc/index.adoc b/docs/modules/ROOT/pages/servlet/test/mockmvc/index.adoc index 67450d9b5d..a4e69e5d67 100644 --- a/docs/modules/ROOT/pages/servlet/test/mockmvc/index.adoc +++ b/docs/modules/ROOT/pages/servlet/test/mockmvc/index.adoc @@ -3,3 +3,9 @@ :page-section-summary-toc: 1 Spring Security provides comprehensive integration with {spring-framework-reference-url}testing/mockmvc.html[Spring MVC Test] + +To begin using Spring Security's MockMvc integration, you'll first need to +xref:servlet/test/mockmvc/setup.adoc#test-mockmvc-setup[configure MockMvc], +and then you'll be able to use Security's +xref:servlet/test/mockmvc/request-post-processors.adoc[RequestPostProcessors] +and other MockMvc test support. diff --git a/docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc b/docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc index c77a95cf92..bfd7f520d8 100644 --- a/docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc +++ b/docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc @@ -67,3 +67,4 @@ class CsrfShowcaseTests { ====== <1> `SecurityMockMvcConfigurers.springSecurity()` will perform all of the initial setup we need to integrate Spring Security with Spring MVC Test +Now that you have configured MockMvc with `springSecurity()`, you can use Security's xref:servlet/test/mockmvc/request-post-processors.adoc[RequestPostProcessors] and other MockMvc test support.