Cleaned up warnings in FilterChainProxyTests
This commit is contained in:
parent
bb8f3bae7c
commit
c446697de3
|
@ -28,7 +28,6 @@ import java.util.*;
|
||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"unchecked"})
|
|
||||||
public class FilterChainProxyTests {
|
public class FilterChainProxyTests {
|
||||||
private FilterChainProxy fcp;
|
private FilterChainProxy fcp;
|
||||||
private RequestMatcher matcher;
|
private RequestMatcher matcher;
|
||||||
|
@ -41,7 +40,7 @@ public class FilterChainProxyTests {
|
||||||
public void setup() throws Exception {
|
public void setup() throws Exception {
|
||||||
matcher = mock(RequestMatcher.class);
|
matcher = mock(RequestMatcher.class);
|
||||||
filter = mock(Filter.class);
|
filter = mock(Filter.class);
|
||||||
doAnswer(new Answer() {
|
doAnswer(new Answer<Object>() {
|
||||||
public Object answer(InvocationOnMock inv) throws Throwable {
|
public Object answer(InvocationOnMock inv) throws Throwable {
|
||||||
Object[] args = inv.getArguments();
|
Object[] args = inv.getArguments();
|
||||||
FilterChain fc = (FilterChain) args[2];
|
FilterChain fc = (FilterChain) args[2];
|
||||||
|
|
Loading…
Reference in New Issue