Skip to content

Commit

Permalink
Fix ModelInitializerKotlinTests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Sep 13, 2023
1 parent bb85d9b commit 68ba55b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -53,7 +53,7 @@ class ModelInitializerKotlinTests {
val resolverConfigurer = ArgumentResolverConfigurer()
resolverConfigurer.addCustomResolver(ModelMethodArgumentResolver(adapterRegistry))
val methodResolver = ControllerMethodResolver(resolverConfigurer, adapterRegistry, StaticApplicationContext(),
emptyList())
emptyList(), null)
modelInitializer = ModelInitializer(methodResolver, adapterRegistry)
}

Expand All @@ -64,7 +64,8 @@ class ModelInitializerKotlinTests {
val method = ResolvableMethod.on(TestController::class.java).annotPresent(GetMapping::class.java)
.resolveMethod()
val handlerMethod = HandlerMethod(controller, method)
val context = InitBinderBindingContext(ConfigurableWebBindingInitializer(), emptyList())
val context = InitBinderBindingContext(ConfigurableWebBindingInitializer(), emptyList(),
false, ReactiveAdapterRegistry.getSharedInstance())
this.modelInitializer.initModel(handlerMethod, context, this.exchange).block(timeout)
val model = context.model.asMap()
Assertions.assertThat(model).hasSize(2)
Expand Down

0 comments on commit 68ba55b

Please sign in to comment.