Browse Source

Polish

Add back explicit casting to ensure compatibility if
overloaded methods are added.

Issue: gh-4632
pull/4637/merge
Rob Winch 8 years ago
parent
commit
983d019ee8
  1. 4
      webflux/src/test/java/org/springframework/security/web/server/DefaultServerRedirectStrategyTests.java
  2. 2
      webflux/src/test/java/org/springframework/security/web/server/authentication/RedirectServerAuthenticationEntryPointTests.java

4
webflux/src/test/java/org/springframework/security/web/server/DefaultServerRedirectStrategyTests.java

@ -47,12 +47,12 @@ public class DefaultServerRedirectStrategyTests { @@ -47,12 +47,12 @@ public class DefaultServerRedirectStrategyTests {
@Test(expected = IllegalArgumentException.class)
public void sendRedirectWhenLocationNullThenException() {
this.strategy.sendRedirect(this.exchange, null);
this.strategy.sendRedirect(this.exchange, (URI) null);
}
@Test(expected = IllegalArgumentException.class)
public void sendRedirectWhenExchangeNullThenException() {
this.strategy.sendRedirect(null, this.location);
this.strategy.sendRedirect((ServerWebExchange) null, this.location);
}
@Test

2
webflux/src/test/java/org/springframework/security/web/server/authentication/RedirectServerAuthenticationEntryPointTests.java

@ -57,7 +57,7 @@ public class RedirectServerAuthenticationEntryPointTests { @@ -57,7 +57,7 @@ public class RedirectServerAuthenticationEntryPointTests {
@Test(expected = IllegalArgumentException.class)
public void constructorStringWhenNullLocationThenException() {
new RedirectServerAuthenticationEntryPoint(null);
new RedirectServerAuthenticationEntryPoint((String) null);
}
@Test

Loading…
Cancel
Save