Commit 17bcd1c3 authored by nkjackzhang's avatar nkjackzhang Committed by Stephane Nicoll

Fix wrong reference in cast operation

Closes gh-13288
parent c2315f2e
...@@ -65,7 +65,7 @@ class WebTestClientContextCustomizer implements ContextCustomizer { ...@@ -65,7 +65,7 @@ class WebTestClientContextCustomizer implements ContextCustomizer {
private void registerWebTestClient(ConfigurableApplicationContext context) { private void registerWebTestClient(ConfigurableApplicationContext context) {
ConfigurableListableBeanFactory beanFactory = context.getBeanFactory(); ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
if (beanFactory instanceof BeanDefinitionRegistry) { if (beanFactory instanceof BeanDefinitionRegistry) {
registerWebTestClient((BeanDefinitionRegistry) context); registerWebTestClient((BeanDefinitionRegistry) beanFactory);
} }
} }
......
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