Forráskód Böngészése

SEC-1226: Renamed useRelativeContext to contextRelative to match corresponding flag name in Spring Framework.

Luke Taylor 16 éve
szülő
commit
23c8f479b8

+ 1 - 1
web/src/test/java/org/springframework/security/web/authentication/switchuser/SwitchUserProcessingFilterTests.java

@@ -308,7 +308,7 @@ public class SwitchUserProcessingFilterTests {
         SimpleUrlAuthenticationSuccessHandler switchSuccessHandler =
             new SimpleUrlAuthenticationSuccessHandler("/someOtherUrl");
         DefaultRedirectStrategy contextRelativeRedirector = new DefaultRedirectStrategy();
-        contextRelativeRedirector.setUseRelativeContext(true);
+        contextRelativeRedirector.setContextRelative(true);
         switchSuccessHandler.setRedirectStrategy(contextRelativeRedirector);
         filter.setSuccessHandler(switchSuccessHandler);
         filter.setUserDetailsService(new MockUserDetailsService());