Align test with Spring MVC's internals once again

The internals have been updated so that the field that was originally
used, interceptors, can be used again.

This reverts commit 2a1bca6806.
This commit is contained in:
Andy Wilkinson 2015-05-20 10:47:56 +01:00
parent b26a650f5b
commit 3eb5c348fb
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public class EndpointWebMvcAutoConfigurationTests {
assertContent("/endpoint", ports.get().management, "endpointoutput"); assertContent("/endpoint", ports.get().management, "endpointoutput");
List<?> interceptors = (List<?>) ReflectionTestUtils.getField( List<?> interceptors = (List<?>) ReflectionTestUtils.getField(
this.applicationContext.getBean(EndpointHandlerMapping.class), this.applicationContext.getBean(EndpointHandlerMapping.class),
"handlerInterceptors"); "interceptors");
assertEquals(1, interceptors.size()); assertEquals(1, interceptors.size());
this.applicationContext.close(); this.applicationContext.close();
assertAllClosed(); assertAllClosed();