test_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/test/java/org/apache/shardingsphere/driver/api/ShardingSphereDataSourceFactoryTest.java
test_class.identifier: ShardingSphereDataSourceFactoryTest
test_case.body: @Test
      public void assertCreateDataSourceWithShardingRuleAndProperties() throws SQLException {
          Properties props = new Properties();
          ShardingSphereDataSource dataSource = (ShardingSphereDataSource) ShardingSphereDataSourceFactory.createDataSource(
                  getDataSourceMap(), Collections.singleton(createShardingRuleConfiguration()), props);
          assertThat(dataSource.getSchemaContexts().getProps().getProps(), is(props));
      }
test_case.class_method_signature: ShardingSphereDataSourceFactoryTest.assertCreateDataSourceWithShardingRuleAndProperties()
test_case.full_signature: @Test public void assertCreateDataSourceWithShardingRuleAndProperties()
test_case.identifier: assertCreateDataSourceWithShardingRuleAndProperties
test_case.invocations: createDataSource getDataSourceMap singleton createShardingRuleConfiguration assertThat getProps getProps getSchemaContexts is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCreateDataSourceWithShardingRuleAndProperties()
focal_class.file: shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/api/ShardingSphereDataSourceFactory.java
focal_class.identifier: ShardingSphereDataSourceFactory
focal_class.class_method_signature: ShardingSphereDataSourceFactory.createDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.full_signature: public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.identifier: createDataSource
focal_class.modifiers: public static
focal_class.parameters: (final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.return: DataSource
focal_class.signature: DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.class_method_signature: ShardingSphereDataSourceFactory.createDataSource(final DataSource dataSource, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.full_signature: public static DataSource createDataSource(final DataSource dataSource, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.identifier: createDataSource
focal_class.modifiers: public static
focal_class.parameters: (final DataSource dataSource, final Collection<RuleConfiguration> configurations, final Properties props)
focal_class.return: DataSource
focal_class.signature: DataSource createDataSource(final DataSource dataSource, final Collection<RuleConfiguration> configurations, final Properties props)
focal_method.body: public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props) throws SQLException {
          return new ShardingSphereDataSource(dataSourceMap, configurations, props);
      }
focal_method.class_method_signature: ShardingSphereDataSourceFactory.createDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_method.full_signature: public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_method.identifier: createDataSource
focal_method.modifiers: public static
focal_method.parameters: (final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)
focal_method.return: DataSource
focal_method.signature: DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final Collection<RuleConfiguration> configurations, final Properties props)