mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-15 23:03:32 +00:00
SEC-1226: Renamed useRelativeContext to contextRelative to match corresponding flag name in Spring Framework.
This commit is contained in:
parent
593d2e227a
commit
23c8f479b8
@ -308,7 +308,7 @@ public class SwitchUserProcessingFilterTests {
|
|||||||
SimpleUrlAuthenticationSuccessHandler switchSuccessHandler =
|
SimpleUrlAuthenticationSuccessHandler switchSuccessHandler =
|
||||||
new SimpleUrlAuthenticationSuccessHandler("/someOtherUrl");
|
new SimpleUrlAuthenticationSuccessHandler("/someOtherUrl");
|
||||||
DefaultRedirectStrategy contextRelativeRedirector = new DefaultRedirectStrategy();
|
DefaultRedirectStrategy contextRelativeRedirector = new DefaultRedirectStrategy();
|
||||||
contextRelativeRedirector.setUseRelativeContext(true);
|
contextRelativeRedirector.setContextRelative(true);
|
||||||
switchSuccessHandler.setRedirectStrategy(contextRelativeRedirector);
|
switchSuccessHandler.setRedirectStrategy(contextRelativeRedirector);
|
||||||
filter.setSuccessHandler(switchSuccessHandler);
|
filter.setSuccessHandler(switchSuccessHandler);
|
||||||
filter.setUserDetailsService(new MockUserDetailsService());
|
filter.setUserDetailsService(new MockUserDetailsService());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user