Oops- fix one more test glitch

This commit is contained in:
James Agnew 2017-12-05 14:33:01 -05:00
parent d00c7dbea8
commit 0fb10b2636
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class TestDstu3Config extends BaseJavaConfigDstu3 {
@Override @Override
public void postProcessBeanFactory(final ConfigurableListableBeanFactory beanFactory) throws BeansException { public void postProcessBeanFactory(final ConfigurableListableBeanFactory beanFactory) throws BeansException {
String schedulingDisabled = myEnvironment.getProperty("scheduling_disabled"); String schedulingDisabled = myEnvironment.getProperty("scheduling_disabled");
if (schedulingDisabled.equals("true")) { if ("true".equals(schedulingDisabled)) {
for (String beanName : beanFactory.getBeanNamesForType(ScheduledAnnotationBeanPostProcessor.class)) { for (String beanName : beanFactory.getBeanNamesForType(ScheduledAnnotationBeanPostProcessor.class)) {
((DefaultListableBeanFactory) beanFactory).removeBeanDefinition(beanName); ((DefaultListableBeanFactory) beanFactory).removeBeanDefinition(beanName);
} }