瀏覽代碼

SEC-2700: Register WithSecurityContextTestExecutionListener by default

Rob Winch 11 年之前
父節點
當前提交
3187ee8bf3
共有 65 個文件被更改,包括 233 次插入287 次删除
  1. 8 8
      acl/pom.xml
  2. 5 5
      aspects/pom.xml
  3. 1 1
      build.gradle
  4. 5 5
      cas/pom.xml
  5. 25 11
      config/pom.xml
  6. 8 8
      core/pom.xml
  7. 1 1
      core/src/main/java/org/springframework/security/core/SpringSecurityCoreVersion.java
  8. 2 2
      crypto/pom.xml
  9. 2 2
      data/pom.xml
  10. 7 7
      itest/context/pom.xml
  11. 6 6
      itest/web/pom.xml
  12. 5 5
      ldap/pom.xml
  13. 6 6
      openid/pom.xml
  14. 5 5
      remoting/pom.xml
  15. 2 2
      samples/aspectj-jc/pom.xml
  16. 2 2
      samples/aspectj-xml/pom.xml
  17. 3 3
      samples/cas/sample-xml/pom.xml
  18. 2 2
      samples/cas/server/pom.xml
  19. 4 4
      samples/concurrency-jc/pom.xml
  20. 10 10
      samples/contacts-xml/pom.xml
  21. 2 2
      samples/data-jc/pom.xml
  22. 7 7
      samples/dms-xml/pom.xml
  23. 4 4
      samples/form-jc/pom.xml
  24. 7 7
      samples/gae-xml/pom.xml
  25. 4 4
      samples/hellojs-jc/pom.xml
  26. 4 4
      samples/hellomvc-jc/pom.xml
  27. 2 2
      samples/helloworld-jc/pom.xml
  28. 4 4
      samples/inmemory-jc/pom.xml
  29. 0 2
      samples/inmemory-jc/src/test/java/org/springframework/security/samples/config/SecurityConfigTests.java
  30. 2 2
      samples/insecure/pom.xml
  31. 4 4
      samples/insecuremvc/pom.xml
  32. 6 6
      samples/jaas-xml/pom.xml
  33. 4 4
      samples/jdbc-jc/pom.xml
  34. 4 4
      samples/ldap-jc/pom.xml
  35. 2 2
      samples/ldap-xml/pom.xml
  36. 11 11
      samples/messages-jc/pom.xml
  37. 4 4
      samples/openid-jc/pom.xml
  38. 2 2
      samples/openid-xml/pom.xml
  39. 4 4
      samples/preauth-jc/pom.xml
  40. 2 2
      samples/preauth-xml/pom.xml
  41. 4 4
      samples/rememberme-jc/pom.xml
  42. 7 7
      samples/servletapi-xml/pom.xml
  43. 5 5
      samples/tutorial-xml/pom.xml
  44. 4 4
      samples/x509-jc/pom.xml
  45. 7 7
      taglibs/pom.xml
  46. 3 3
      test/pom.xml
  47. 0 42
      test/src/main/java/org/springframework/security/test/context/DefaultSecurityTestExecutionListeners.java
  48. 5 0
      test/src/main/java/org/springframework/security/test/context/support/WithSecurityContextTestExecutionListener.java
  49. 1 0
      test/src/main/resources/META-INF/spring.factories
  50. 0 2
      test/src/test/java/org/springframework/security/test/context/showcase/WithMockUserTests.java
  51. 0 2
      test/src/test/java/org/springframework/security/test/context/showcase/WithUserDetailsTests.java
  52. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessorsTestSecurityContextStatelessTests.java
  53. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/csrf/CsrfShowcaseTests.java
  54. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/csrf/CustomCsrfShowcaseTests.java
  55. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/csrf/DefaultCsrfShowcaseTests.java
  56. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/login/AuthenticationTests.java
  57. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/login/CustomConfigAuthenticationTests.java
  58. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/login/CustomLoginRequestBuilderAuthenticationTests.java
  59. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/DefaultfSecurityRequestsTests.java
  60. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/SecurityRequestsTests.java
  61. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserAuthenticationTests.java
  62. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserClassLevelAuthenticationTests.java
  63. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserDetailsAuthenticationTests.java
  64. 0 2
      test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserDetailsClassLevelAuthenticationTests.java
  65. 9 9
      web/pom.xml

+ 8 - 8
acl/pom.xml

@@ -64,19 +64,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -88,13 +88,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -150,19 +150,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 5 - 5
aspects/pom.xml

@@ -58,19 +58,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -132,13 +132,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 1 - 1
build.gradle

@@ -25,7 +25,7 @@ allprojects {
 
     ext.releaseBuild = version.endsWith('RELEASE')
     ext.snapshotBuild = version.endsWith('SNAPSHOT')
-    ext.springVersion = '4.1.0.BUILD-SNAPSHOT'
+    ext.springVersion = '4.1.0.RC2'
     ext.springLdapVersion = '2.0.1.RELEASE'
 
     group = 'org.springframework.security'

+ 5 - 5
cas/pom.xml

@@ -70,19 +70,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -94,7 +94,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -150,7 +150,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 25 - 11
config/pom.xml

@@ -64,25 +64,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -112,6 +112,13 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>org.springframework.security</groupId>
+      <artifactId>spring-security-messaging</artifactId>
+      <version>4.0.0.CI-SNAPSHOT</version>
+      <scope>compile</scope>
+      <optional>true</optional>
+    </dependency>
     <dependency>
       <groupId>org.springframework.security</groupId>
       <artifactId>spring-security-openid</artifactId>
@@ -129,28 +136,35 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
+      <scope>compile</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-websocket</artifactId>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
@@ -385,19 +399,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-expression</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-orm</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 8 - 8
core/pom.xml

@@ -58,25 +58,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -88,7 +88,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-expression</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -122,14 +122,14 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
@@ -280,7 +280,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
       <exclusions>
         <exclusion>

+ 1 - 1
core/src/main/java/org/springframework/security/core/SpringSecurityCoreVersion.java

@@ -23,7 +23,7 @@ public class SpringSecurityCoreVersion {
      */
     public static final long SERIAL_VERSION_UID = 400L;
 
-    static final String MIN_SPRING_VERSION = "4.1.0.BUILD-SNAPSHOT";
+    static final String MIN_SPRING_VERSION = "4.1.0.RC2";
 
     static {
         performVersionChecks();

+ 2 - 2
crypto/pom.xml

@@ -52,7 +52,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -101,7 +101,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
data/pom.xml

@@ -64,7 +64,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -113,7 +113,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 7 - 7
itest/context/pom.xml

@@ -70,25 +70,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -100,7 +100,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -167,13 +167,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 6 - 6
itest/web/pom.xml

@@ -52,13 +52,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -70,7 +70,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -201,19 +201,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>

+ 5 - 5
ldap/pom.xml

@@ -86,19 +86,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -110,7 +110,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -208,7 +208,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 6 - 6
openid/pom.xml

@@ -82,25 +82,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -112,7 +112,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -173,7 +173,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 5 - 5
remoting/pom.xml

@@ -64,19 +64,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -88,7 +88,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -131,7 +131,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/aspectj-jc/pom.xml

@@ -64,7 +64,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/aspectj-xml/pom.xml

@@ -58,7 +58,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 3 - 3
samples/cas/sample-xml/pom.xml

@@ -78,7 +78,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -133,7 +133,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>runtime</scope>
     </dependency>
     <dependency>
@@ -217,7 +217,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/cas/server/pom.xml

@@ -60,7 +60,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -109,7 +109,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/concurrency-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -211,7 +211,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 10 - 10
samples/contacts-xml/pom.xml

@@ -72,25 +72,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -102,25 +102,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -193,7 +193,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>runtime</scope>
     </dependency>
     <dependency>
@@ -265,7 +265,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/data-jc/pom.xml

@@ -100,7 +100,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -149,7 +149,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 7 - 7
samples/dms-xml/pom.xml

@@ -64,13 +64,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -82,13 +82,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -120,7 +120,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>runtime</scope>
     </dependency>
     <dependency>
@@ -156,13 +156,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/form-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -259,7 +259,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 7 - 7
samples/gae-xml/pom.xml

@@ -96,25 +96,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -126,13 +126,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -217,7 +217,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/hellojs-jc/pom.xml

@@ -132,7 +132,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -144,13 +144,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -217,7 +217,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/hellomvc-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -217,7 +217,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/helloworld-jc/pom.xml

@@ -90,7 +90,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -193,7 +193,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/inmemory-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -217,7 +217,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 0 - 2
samples/inmemory-jc/src/test/java/org/springframework/security/samples/config/SecurityConfigTests.java

@@ -28,7 +28,6 @@ import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.samples.mvc.config.WebMvcConfiguration;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.support.WithMockUser;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -44,7 +43,6 @@ import org.springframework.web.context.WebApplicationContext;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes={RootConfiguration.class, WebMvcConfiguration.class})
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class SecurityConfigTests {
     private MockMvc mvc;
 

+ 2 - 2
samples/insecure/pom.xml

@@ -78,7 +78,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -181,7 +181,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/insecuremvc/pom.xml

@@ -108,7 +108,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -120,13 +120,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -193,7 +193,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 6 - 6
samples/jaas-xml/pom.xml

@@ -66,19 +66,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -90,7 +90,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -151,7 +151,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>runtime</scope>
     </dependency>
     <dependency>
@@ -223,7 +223,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/jdbc-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -259,7 +259,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/ldap-jc/pom.xml

@@ -168,7 +168,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -180,13 +180,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -301,7 +301,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/ldap-xml/pom.xml

@@ -78,7 +78,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -229,7 +229,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 11 - 11
samples/messages-jc/pom.xml

@@ -112,31 +112,31 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aspects</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -148,31 +148,31 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-instrument</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-orm</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -233,7 +233,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/openid-jc/pom.xml

@@ -132,7 +132,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -144,13 +144,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -223,7 +223,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/openid-xml/pom.xml

@@ -72,7 +72,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -151,7 +151,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/preauth-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -211,7 +211,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 2 - 2
samples/preauth-xml/pom.xml

@@ -60,7 +60,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -121,7 +121,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/rememberme-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -211,7 +211,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 7 - 7
samples/servletapi-xml/pom.xml

@@ -78,19 +78,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -102,13 +102,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -157,7 +157,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>runtime</scope>
     </dependency>
     <dependency>
@@ -181,7 +181,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 5 - 5
samples/tutorial-xml/pom.xml

@@ -72,13 +72,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -90,13 +90,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -181,7 +181,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 4 - 4
samples/x509-jc/pom.xml

@@ -126,7 +126,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -138,13 +138,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -211,7 +211,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 7 - 7
taglibs/pom.xml

@@ -70,25 +70,25 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aop</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -100,13 +100,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-expression</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -197,7 +197,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 3 - 3
test/pom.xml

@@ -64,7 +64,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -76,7 +76,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -174,7 +174,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

+ 0 - 42
test/src/main/java/org/springframework/security/test/context/DefaultSecurityTestExecutionListeners.java

@@ -1,42 +0,0 @@
-/*
- * Copyright 2002-2014 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springframework.security.test.context;
-
-import org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener;
-import org.springframework.test.context.TestExecutionListeners;
-import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
-import org.springframework.test.context.support.DirtiesContextTestExecutionListener;
-import org.springframework.test.context.transaction.TransactionalTestExecutionListener;
-import org.springframework.test.context.web.ServletTestExecutionListener;
-
-import java.lang.annotation.*;
-
-/**
- * A meta annotation that adds WithSecurityContextTestExcecutionListener to the default Spring TestExecutionListeners.
- *
- * @author Rob Winch
- * @since 4.0
- */
-@Documented
-@Inherited
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.TYPE)
-@TestExecutionListeners(listeners={ServletTestExecutionListener.class,
-        DependencyInjectionTestExecutionListener.class,
-        DirtiesContextTestExecutionListener.class,
-        TransactionalTestExecutionListener.class,
-        WithSecurityContextTestExecutionListener.class})
-public @interface DefaultSecurityTestExecutionListeners {}

+ 5 - 0
test/src/main/java/org/springframework/security/test/context/support/WithSecurityContextTestExecutionListener.java

@@ -19,6 +19,7 @@ import java.lang.annotation.Annotation;
 
 import org.springframework.context.ApplicationContext;
 import org.springframework.core.annotation.AnnotationUtils;
+import org.springframework.core.annotation.Order;
 import org.springframework.security.core.context.SecurityContext;
 import org.springframework.security.core.context.SecurityContextHolder;
 import org.springframework.security.test.context.TestSecurityContextHolder;
@@ -26,6 +27,7 @@ import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequ
 import org.springframework.test.context.TestContext;
 import org.springframework.test.context.TestExecutionListener;
 import org.springframework.test.context.support.AbstractTestExecutionListener;
+import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
 import org.springframework.test.web.servlet.MockMvc;
 
 /**
@@ -39,9 +41,12 @@ import org.springframework.test.web.servlet.MockMvc;
  * @author Rob Winch
  * @since 4.0
  */
+@Order(WithSecurityContextTestExecutionListener.ORDER)
 public class WithSecurityContextTestExecutionListener extends
         AbstractTestExecutionListener {
 
+    public static final int ORDER = 1000;
+
     /**
      * Sets up the {@link SecurityContext} for each test method. First the
      * specific method is inspected for a {@link WithSecurityContext} or {@link Annotation}

+ 1 - 0
test/src/main/resources/META-INF/spring.factories

@@ -0,0 +1 @@
+org.springframework.test.context.TestExecutionListener = org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener

+ 0 - 2
test/src/test/java/org/springframework/security/test/context/showcase/WithMockUserTests.java

@@ -23,7 +23,6 @@ import org.springframework.context.annotation.Configuration;
 import org.springframework.security.authentication.AuthenticationCredentialsNotFoundException;
 import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
 import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.showcase.service.HelloMessageService;
 import org.springframework.security.test.context.showcase.service.MessageService;
 import org.springframework.security.test.context.support.WithMockUser;
@@ -38,7 +37,6 @@ import static org.fest.assertions.Assertions.assertThat;
 
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes = WithMockUserTests.Config.class)
-@DefaultSecurityTestExecutionListeners
 public class WithMockUserTests {
 	@Autowired
 	private MessageService messageService;

+ 0 - 2
test/src/test/java/org/springframework/security/test/context/showcase/WithUserDetailsTests.java

@@ -28,7 +28,6 @@ import org.springframework.security.core.context.SecurityContextHolder;
 import org.springframework.security.core.userdetails.UserDetails;
 import org.springframework.security.core.userdetails.UserDetailsService;
 import org.springframework.security.core.userdetails.UsernameNotFoundException;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.showcase.service.HelloMessageService;
 import org.springframework.security.test.context.showcase.service.MessageService;
 import org.springframework.security.test.context.support.WithUserDetails;
@@ -43,7 +42,6 @@ import static org.fest.assertions.Assertions.assertThat;
 
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes = WithUserDetailsTests.Config.class)
-@DefaultSecurityTestExecutionListeners
 public class WithUserDetailsTests {
 	@Autowired
 	private MessageService messageService;

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessorsTestSecurityContextStatelessTests.java

@@ -25,7 +25,6 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
 import org.springframework.security.config.http.SessionCreationPolicy;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.support.WithMockUser;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -47,7 +46,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class SecurityMockMvcRequestPostProcessorsTestSecurityContextStatelessTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/csrf/CsrfShowcaseTests.java

@@ -24,7 +24,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 import org.springframework.test.context.web.WebAppConfiguration;
@@ -42,7 +41,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=CsrfShowcaseTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class CsrfShowcaseTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/csrf/CustomCsrfShowcaseTests.java

@@ -29,7 +29,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.web.csrf.CsrfTokenRepository;
 import org.springframework.security.web.csrf.HttpSessionCsrfTokenRepository;
 import org.springframework.test.context.ContextConfiguration;
@@ -43,7 +42,6 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=CustomCsrfShowcaseTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class CustomCsrfShowcaseTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/csrf/DefaultCsrfShowcaseTests.java

@@ -28,7 +28,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 import org.springframework.test.context.web.WebAppConfiguration;
@@ -40,7 +39,6 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=DefaultCsrfShowcaseTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class DefaultCsrfShowcaseTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/login/AuthenticationTests.java

@@ -30,7 +30,6 @@ import org.springframework.context.annotation.Configuration;
 import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 import org.springframework.test.context.web.WebAppConfiguration;
@@ -42,7 +41,6 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=AuthenticationTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class AuthenticationTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/login/CustomConfigAuthenticationTests.java

@@ -32,7 +32,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.web.context.HttpSessionSecurityContextRepository;
 import org.springframework.security.web.context.SecurityContextRepository;
 import org.springframework.test.context.ContextConfiguration;
@@ -46,7 +45,6 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=CustomConfigAuthenticationTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class CustomConfigAuthenticationTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/login/CustomLoginRequestBuilderAuthenticationTests.java

@@ -28,7 +28,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestBuilders;
 import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestBuilders.FormLoginRequestBuilder;
 import org.springframework.test.context.ContextConfiguration;
@@ -42,7 +41,6 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=CustomLoginRequestBuilderAuthenticationTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class CustomLoginRequestBuilderAuthenticationTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/DefaultfSecurityRequestsTests.java

@@ -32,7 +32,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 import org.springframework.test.context.web.WebAppConfiguration;
@@ -44,7 +43,6 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=DefaultfSecurityRequestsTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class DefaultfSecurityRequestsTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/SecurityRequestsTests.java

@@ -35,7 +35,6 @@ import org.springframework.security.config.annotation.web.servlet.configuration.
 import org.springframework.security.core.Authentication;
 import org.springframework.security.core.userdetails.UserDetails;
 import org.springframework.security.core.userdetails.UserDetailsService;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 import org.springframework.test.context.web.WebAppConfiguration;
@@ -47,7 +46,6 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=SecurityRequestsTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class SecurityRequestsTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserAuthenticationTests.java

@@ -24,7 +24,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.support.WithMockUser;
 import org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers;
 import org.springframework.test.context.ContextConfiguration;
@@ -42,7 +41,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=WithUserAuthenticationTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class WithUserAuthenticationTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserClassLevelAuthenticationTests.java

@@ -24,7 +24,6 @@ import org.springframework.security.config.annotation.authentication.builders.Au
 import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.support.WithMockUser;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -42,7 +41,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=WithUserClassLevelAuthenticationTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 @WithMockUser(roles="ADMIN")
 public class WithUserClassLevelAuthenticationTests {
 

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserDetailsAuthenticationTests.java

@@ -26,7 +26,6 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
 import org.springframework.security.core.userdetails.UserDetailsService;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.support.WithUserDetails;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -44,7 +43,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=WithUserDetailsAuthenticationTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 public class WithUserDetailsAuthenticationTests {
 
     @Autowired

+ 0 - 2
test/src/test/java/org/springframework/security/test/web/servlet/showcase/secured/WithUserDetailsClassLevelAuthenticationTests.java

@@ -26,7 +26,6 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
 import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;
 import org.springframework.security.core.userdetails.UserDetailsService;
-import org.springframework.security.test.context.DefaultSecurityTestExecutionListeners;
 import org.springframework.security.test.context.support.WithUserDetails;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -44,7 +43,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(classes=WithUserDetailsClassLevelAuthenticationTests.Config.class)
 @WebAppConfiguration
-@DefaultSecurityTestExecutionListeners
 @WithUserDetails("admin")
 public class WithUserDetailsClassLevelAuthenticationTests {
 

+ 9 - 9
web/pom.xml

@@ -64,19 +64,19 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-core</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <exclusions>
         <exclusion>
@@ -88,13 +88,13 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-expression</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
@@ -107,21 +107,21 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-tx</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
@@ -248,7 +248,7 @@
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-test</artifactId>
-      <version>4.1.0.BUILD-SNAPSHOT</version>
+      <version>4.1.0.RC2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>