Browse Source

Fix wrong reference in cast operation

Closes gh-13288
pull/13312/merge
nkjackzhang 8 years ago committed by Stephane Nicoll
parent
commit
17bcd1c359
  1. 2
      spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/reactive/server/WebTestClientContextCustomizer.java

2
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/reactive/server/WebTestClientContextCustomizer.java

@ -65,7 +65,7 @@ class WebTestClientContextCustomizer implements ContextCustomizer { @@ -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);
}
}

Loading…
Cancel
Save