test_class.file: shardingsphere-scaling/shardingsphere-scaling-core/src/test/java/org/apache/shardingsphere/scaling/core/datasource/DataSourceFactoryTest.java
test_class.identifier: DataSourceFactoryTest
test_case.body: @Test
      public void assertNewShardingSphereJDBCInstance() {
          ShardingSphereJDBCScalingDataSourceConfiguration config = new ShardingSphereJDBCScalingDataSourceConfiguration(
                  FixtureShardingSphereJDBCConfiguration.DATA_SOURCE, FixtureShardingSphereJDBCConfiguration.RULE);
          DataSourceWrapper actual = new DataSourceFactory().newInstance(config);
          assertNotNull(actual);
      }
test_case.class_method_signature: DataSourceFactoryTest.assertNewShardingSphereJDBCInstance()
test_case.full_signature: @Test public void assertNewShardingSphereJDBCInstance()
test_case.identifier: assertNewShardingSphereJDBCInstance
test_case.invocations: newInstance assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertNewShardingSphereJDBCInstance()
focal_class.file: shardingsphere-scaling/shardingsphere-scaling-core/src/main/java/org/apache/shardingsphere/scaling/core/datasource/DataSourceFactory.java
focal_class.identifier: DataSourceFactory
focal_class.class_method_signature: DataSourceFactory.newInstance(final ScalingDataSourceConfiguration dataSourceConfig)
focal_class.full_signature: public DataSourceWrapper newInstance(final ScalingDataSourceConfiguration dataSourceConfig)
focal_class.identifier: newInstance
focal_class.modifiers: public
focal_class.parameters: (final ScalingDataSourceConfiguration dataSourceConfig)
focal_class.return: DataSourceWrapper
focal_class.signature: DataSourceWrapper newInstance(final ScalingDataSourceConfiguration dataSourceConfig)
focal_class.class_method_signature: DataSourceFactory.newInstanceDataSourceByJDBC(final JDBCScalingDataSourceConfiguration dataSourceConfig)
focal_class.full_signature: private DataSourceWrapper newInstanceDataSourceByJDBC(final JDBCScalingDataSourceConfiguration dataSourceConfig)
focal_class.identifier: newInstanceDataSourceByJDBC
focal_class.modifiers: private
focal_class.parameters: (final JDBCScalingDataSourceConfiguration dataSourceConfig)
focal_class.return: DataSourceWrapper
focal_class.signature: DataSourceWrapper newInstanceDataSourceByJDBC(final JDBCScalingDataSourceConfiguration dataSourceConfig)
focal_class.class_method_signature: DataSourceFactory.newInstanceDataSourceByShardingSphereJDBC(final ShardingSphereJDBCScalingDataSourceConfiguration dataSourceConfig)
focal_class.full_signature: @SneakyThrows(SQLException.class) private DataSourceWrapper newInstanceDataSourceByShardingSphereJDBC(final ShardingSphereJDBCScalingDataSourceConfiguration dataSourceConfig)
focal_class.identifier: newInstanceDataSourceByShardingSphereJDBC
focal_class.modifiers: @SneakyThrows(SQLException.class) private
focal_class.parameters: (final ShardingSphereJDBCScalingDataSourceConfiguration dataSourceConfig)
focal_class.return: DataSourceWrapper
focal_class.signature: DataSourceWrapper newInstanceDataSourceByShardingSphereJDBC(final ShardingSphereJDBCScalingDataSourceConfiguration dataSourceConfig)
focal_method.body: public DataSourceWrapper newInstance(final ScalingDataSourceConfiguration dataSourceConfig) {
          if (dataSourceConfig instanceof JDBCScalingDataSourceConfiguration) {
              return newInstanceDataSourceByJDBC((JDBCScalingDataSourceConfiguration) dataSourceConfig);
          } else if (dataSourceConfig instanceof ShardingSphereJDBCScalingDataSourceConfiguration) {
              return newInstanceDataSourceByShardingSphereJDBC((ShardingSphereJDBCScalingDataSourceConfiguration) dataSourceConfig);
          }
          throw new UnsupportedOperationException("Unsupported data source configuration");
      }
focal_method.class_method_signature: DataSourceFactory.newInstance(final ScalingDataSourceConfiguration dataSourceConfig)
focal_method.full_signature: public DataSourceWrapper newInstance(final ScalingDataSourceConfiguration dataSourceConfig)
focal_method.identifier: newInstance
focal_method.invocations: newInstanceDataSourceByJDBC newInstanceDataSourceByShardingSphereJDBC
focal_method.modifiers: public
focal_method.parameters: (final ScalingDataSourceConfiguration dataSourceConfig)
focal_method.return: DataSourceWrapper
focal_method.signature: DataSourceWrapper newInstance(final ScalingDataSourceConfiguration dataSourceConfig)