mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
Polish
Add back explicit casting to ensure compatibility if overloaded methods are added. Issue: gh-4632
This commit is contained in:
parent
25052214ae
commit
983d019ee8
@ -47,12 +47,12 @@ public class DefaultServerRedirectStrategyTests {
|
|||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
public void sendRedirectWhenLocationNullThenException() {
|
public void sendRedirectWhenLocationNullThenException() {
|
||||||
this.strategy.sendRedirect(this.exchange, null);
|
this.strategy.sendRedirect(this.exchange, (URI) null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
public void sendRedirectWhenExchangeNullThenException() {
|
public void sendRedirectWhenExchangeNullThenException() {
|
||||||
this.strategy.sendRedirect(null, this.location);
|
this.strategy.sendRedirect((ServerWebExchange) null, this.location);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -57,7 +57,7 @@ public class RedirectServerAuthenticationEntryPointTests {
|
|||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
public void constructorStringWhenNullLocationThenException() {
|
public void constructorStringWhenNullLocationThenException() {
|
||||||
new RedirectServerAuthenticationEntryPoint(null);
|
new RedirectServerAuthenticationEntryPoint((String) null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user