ShardingDbInit { public void init(BeanDefinitionRegistry registry, List<DataSourceCfg> dataSourceCfgList, Map<String, ZebraShardingDataSourceCfg> zebraShardingDataSourceConfigurationMap) { if (MapUtils.isEmpty(zebraShardingDataSourceConfigurationMap)) { LOGGER.info("There is no sharding configuration."); return; } String dataSourceNames = String.join(",", zebraShardingDataSourceConfigurationMap.keySet()); LOGGER.info("Sharding data source name is/are [{}].", dataSourceNames); LOGGER.info("Begin to create and register related bean definitions of sharding data sources."); initDataSources(registry, dataSourceCfgList, zebraShardingDataSourceConfigurationMap); ShardingTracer.init(ZebraOpenTracingTracer.getInstance()); LOGGER.info("Finish to create and register related bean definitions of sharding data sources."); }  void init(BeanDefinitionRegistry registry, List<DataSourceCfg> dataSourceCfgList,
              Map<String, ZebraShardingDataSourceCfg> zebraShardingDataSourceConfigurationMap);  }
@Test public void testNoShardingCfg() { shardingDbInit.init(registry, null, null); new Verifications() { { ShardingTracer.init((Tracer)any); times = 0; } }; }