Skip to content

Commit 38006fe

Browse files
ngocnhan-tran1996jzheaux
authored andcommitted
Fix broken link
Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent ed3f3d1 commit 38006fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/modules/ROOT/pages/servlet/test/mockmvc/authentication.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ It is often desirable to run tests as a specific user.
55
There are two simple ways to populate the user:
66

77
* <<test-mockmvc-securitycontextholder-rpp,Running as a User in Spring MVC Test with RequestPostProcessor>>
8-
* <<running-as-a-user-in-spring-mvc-test-with-annotations,Running as a User in Spring MVC Test with Annotations>>
8+
* <<test-mockmvc-withmockuser,Running as a User in Spring MVC Test with Annotations>>
99

1010
[[test-mockmvc-securitycontextholder-rpp]]
1111
== Running as a User in Spring MVC Test with RequestPostProcessor

docs/modules/ROOT/pages/servlet/test/mockmvc/setup.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Spring Security's testing support requires spring-test-4.1.3.RELEASE or greater.
77
====
88

99
To use Spring Security with Spring MVC Test, add the Spring Security `FilterChainProxy` as a `Filter`.
10-
You also need to add Spring Security's `TestSecurityContextHolderPostProcessor` to support xref:servlet/test/mockmvc/setup.adoc#test-mockmvc-withmockuser[Running as a User in Spring MVC Test with Annotations].
10+
You also need to add Spring Security's `TestSecurityContextHolderPostProcessor` to support xref:servlet/test/mockmvc/authentication.adoc#test-mockmvc-withmockuser[Running as a User in Spring MVC Test with Annotations].
1111
To do so, use Spring Security's `SecurityMockMvcConfigurers.springSecurity()`:
1212

1313
[tabs]

0 commit comments

Comments
 (0)