Add @Override annotations to test sources
Issue: SPR-10129
This commit is contained in:
@@ -120,10 +120,12 @@ public class DefaultMvcResultTests {
|
||||
this.asyncStarted = asyncStarted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAsyncStarted() {
|
||||
return this.asyncStarted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AsyncContext getAsyncContext() {
|
||||
return asyncContext;
|
||||
}
|
||||
|
||||
@@ -60,30 +60,37 @@ public class StubMvcResult implements MvcResult {
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MockHttpServletRequest getRequest() {
|
||||
return request;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getHandler() {
|
||||
return handler;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerInterceptor[] getInterceptors() {
|
||||
return interceptors;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Exception getResolvedException() {
|
||||
return resolvedException;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModelAndView getModelAndView() {
|
||||
return mav;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FlashMap getFlashMap() {
|
||||
return flashMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MockHttpServletResponse getResponse() {
|
||||
return response;
|
||||
}
|
||||
@@ -120,10 +127,12 @@ public class StubMvcResult implements MvcResult {
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getAsyncResult() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getAsyncResult(long timeout) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -392,6 +392,7 @@ public class MockHttpServletRequestBuilderTests {
|
||||
|
||||
private final class User implements Principal {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Foo";
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ public class PrintingResultHandlerTests {
|
||||
public void setup() {
|
||||
this.handler = new TestPrintingResultHandler();
|
||||
this.request = new MockHttpServletRequest("GET", "/") {
|
||||
@Override
|
||||
public boolean isAsyncStarted() {
|
||||
return false;
|
||||
}
|
||||
@@ -228,11 +229,13 @@ public class PrintingResultHandlerTests {
|
||||
|
||||
private Map<String, Map<String, Object>> printedValues = new HashMap<String, Map<String, Object>>();
|
||||
|
||||
@Override
|
||||
public void printHeading(String heading) {
|
||||
this.printedHeading = heading;
|
||||
this.printedValues.put(heading, new HashMap<String, Object>());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void printValue(String label, Object value) {
|
||||
Assert.notNull(this.printedHeading,
|
||||
"Heading not printed before label " + label + " with value " + value);
|
||||
|
||||
@@ -97,6 +97,7 @@ public class AsyncTests {
|
||||
@ResponseBody
|
||||
public Callable<Person> getCallable(final Model model) {
|
||||
return new Callable<Person>() {
|
||||
@Override
|
||||
public Person call() throws Exception {
|
||||
return new Person("Joe");
|
||||
}
|
||||
|
||||
@@ -151,6 +151,7 @@ public class FilterTests {
|
||||
@Override
|
||||
public Principal getUserPrincipal() {
|
||||
return new Principal() {
|
||||
@Override
|
||||
public String getName() {
|
||||
return PRINCIPAL_NAME;
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@ public class RequestBuilderTests {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MockHttpServletRequest postProcessRequest(MockHttpServletRequest request) {
|
||||
for (String headerName : this.headers.keySet()) {
|
||||
request.addHeader(headerName, this.headers.get(headerName));
|
||||
|
||||
@@ -253,10 +253,12 @@ public class ConditionalDelegatingFilterProxyTests {
|
||||
private FilterChain chain;
|
||||
private boolean destroy;
|
||||
|
||||
@Override
|
||||
public void init(FilterConfig filterConfig) throws ServletException {
|
||||
this.filterConfig = filterConfig;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
|
||||
ServletException {
|
||||
this.request = request;
|
||||
@@ -264,6 +266,7 @@ public class ConditionalDelegatingFilterProxyTests {
|
||||
this.chain = chain;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
this.destroy = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user