From 1da9c06f3b2c07e4dc6afbb2caa49a3ac36762be Mon Sep 17 00:00:00 2001 From: Paul Samsotha Date: Wed, 5 Oct 2016 19:36:33 +0700 Subject: [PATCH] Fix Reference (test.adoc) Typo @SpringExecutionListeners -> @SpringTestExecutionListeners --- docs/manual/src/docs/asciidoc/_includes/test.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/manual/src/docs/asciidoc/_includes/test.adoc b/docs/manual/src/docs/asciidoc/_includes/test.adoc index f407fafd83..e87e2ea166 100644 --- a/docs/manual/src/docs/asciidoc/_includes/test.adoc +++ b/docs/manual/src/docs/asciidoc/_includes/test.adoc @@ -55,7 +55,7 @@ This is a basic example of how to setup Spring Security Test. The highlights are NOTE: Spring Security hooks into Spring Test support using the `WithSecurityContextTestExecutionListener` which will ensure our tests are ran with the correct user. It does this by populating the `SecurityContextHolder` prior to running our tests. After the test is done, it will clear out the `SecurityContextHolder`. -If you only need Spring Security related support, you can replace `@ContextConfiguration` with `@SecurityExecutionListeners`. +If you only need Spring Security related support, you can replace `@ContextConfiguration` with `@SecurityTestExecutionListeners`. Remember we added the `@PreAuthorize` annotation to our `HelloMessageService` and so it requires an authenticated user to invoke it. If we ran the following test, we would expect the following test will pass: