@Test public void testNoDataSourceCfg(@Mocked DataSourceCfgUtil dataSourceCfgUtil, @Mocked ZebraShardingConfigurationUtil zebraShardingConfigurationUtil) { new Expectations() { { DataSourceCfgUtil.getDataSourceCfgList(); result = Collections.emptyList(); } }; databaseInit.postProcessBeanDefinitionRegistry(registry); new Verifications() { { ZebraShardingConfigurationUtil.getZebraShardingConfiguration(); times = 0; } }; }
@Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) { createRegisterDbRelatedBdf(registry); }
DatabaseInit implements BeanDefinitionRegistryPostProcessor { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) { createRegisterDbRelatedBdf(registry); } }
DatabaseInit implements BeanDefinitionRegistryPostProcessor { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) { createRegisterDbRelatedBdf(registry); }  }
DatabaseInit implements BeanDefinitionRegistryPostProcessor { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) { createRegisterDbRelatedBdf(registry); }  @Override void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory); @Override void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry); }
DatabaseInit implements BeanDefinitionRegistryPostProcessor { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) { createRegisterDbRelatedBdf(registry); }  @Override void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory); @Override void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry);  }