parent
8bca7cd8e7
commit
92f54da628
|
|
@ -175,7 +175,7 @@ public class RouterFunctionMockMvcBuilder extends AbstractMockMvcBuilder<RouterF
|
||||||
* Atom).
|
* Atom).
|
||||||
*/
|
*/
|
||||||
public RouterFunctionMockMvcBuilder setSingleView(View view) {
|
public RouterFunctionMockMvcBuilder setSingleView(View view) {
|
||||||
this.viewResolvers = Collections.<ViewResolver>singletonList(new StaticViewResolver(view));
|
this.viewResolvers = Collections.singletonList(new StaticViewResolver(view));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -226,7 +226,7 @@ public class RouterFunctionMockMvcBuilder extends AbstractMockMvcBuilder<RouterF
|
||||||
ContentNegotiationManager mvcContentNegotiationManager = config.mvcContentNegotiationManager();
|
ContentNegotiationManager mvcContentNegotiationManager = config.mvcContentNegotiationManager();
|
||||||
wac.addBean("mvcContentNegotiationManager", mvcContentNegotiationManager);
|
wac.addBean("mvcContentNegotiationManager", mvcContentNegotiationManager);
|
||||||
|
|
||||||
RouterFunctionMapping hm = config.routerFunctionMapping(mvcConversionService, resourceUrlProvider);
|
RouterFunctionMapping hm = config.getHandlerMapping(mvcConversionService, resourceUrlProvider);
|
||||||
if (sc != null) {
|
if (sc != null) {
|
||||||
hm.setServletContext(sc);
|
hm.setServletContext(sc);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue