Merge pull request #17648 from izeye

* pr/17648:
  Add missing assertion in dispatcherServletCustomConfig()

Closes gh-17648
pull/17660/head
Stephane Nicoll 5 years ago
commit 2c3d4501ed

@ -166,6 +166,7 @@ class DispatcherServletAutoConfigurationTests {
assertThat(dispatcherServlet).extracting("throwExceptionIfNoHandlerFound").containsExactly(true);
assertThat(dispatcherServlet).extracting("dispatchOptionsRequest").containsExactly(false);
assertThat(dispatcherServlet).extracting("dispatchTraceRequest").containsExactly(true);
assertThat(dispatcherServlet).extracting("publishEvents").containsExactly(false);
assertThat(context.getBean("dispatcherServletRegistration"))
.hasFieldOrPropertyWithValue("loadOnStartup", 5);
});

Loading…
Cancel
Save