Fix wrong reference in cast operation

Closes gh-13288
This commit is contained in:
nkjackzhang 2018-05-29 16:21:01 +08:00 committed by Stephane Nicoll
parent c2315f2e8c
commit 17bcd1c359
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class WebTestClientContextCustomizer implements ContextCustomizer {
private void registerWebTestClient(ConfigurableApplicationContext context) {
ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
if (beanFactory instanceof BeanDefinitionRegistry) {
registerWebTestClient((BeanDefinitionRegistry) context);
registerWebTestClient((BeanDefinitionRegistry) beanFactory);
}
}