Commit 2a1bca68 authored by Andy Wilkinson's avatar Andy Wilkinson

Update field that’s checked reflectively to match Spring MVC’s internals

parent 9be1d158
...@@ -148,7 +148,7 @@ public class EndpointWebMvcAutoConfigurationTests { ...@@ -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),
"interceptors"); "handlerInterceptors");
assertEquals(1, interceptors.size()); assertEquals(1, interceptors.size());
this.applicationContext.close(); this.applicationContext.close();
assertAllClosed(); assertAllClosed();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment