File tree 1 file changed +2
-2
lines changed
spring-test/src/main/java/org/springframework/test/web/servlet/setup
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ public RouterFunctionMockMvcBuilder setViewResolvers(ViewResolver...resolvers) {
175
175
* Atom).
176
176
*/
177
177
public RouterFunctionMockMvcBuilder setSingleView (View view ) {
178
- this .viewResolvers = Collections .< ViewResolver > singletonList (new StaticViewResolver (view ));
178
+ this .viewResolvers = Collections .singletonList (new StaticViewResolver (view ));
179
179
return this ;
180
180
}
181
181
@@ -226,7 +226,7 @@ private void registerRouterFunction(StubWebApplicationContext wac) {
226
226
ContentNegotiationManager mvcContentNegotiationManager = config .mvcContentNegotiationManager ();
227
227
wac .addBean ("mvcContentNegotiationManager" , mvcContentNegotiationManager );
228
228
229
- RouterFunctionMapping hm = config .routerFunctionMapping (mvcConversionService , resourceUrlProvider );
229
+ RouterFunctionMapping hm = config .getHandlerMapping (mvcConversionService , resourceUrlProvider );
230
230
if (sc != null ) {
231
231
hm .setServletContext (sc );
232
232
}
You can’t perform that action at this time.
0 commit comments