test_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-core/src/test/java/org/apache/shardingsphere/transaction/xa/jta/datasource/swapper/DataSourcePropertyProviderLoaderTest.java
test_class.identifier: DataSourcePropertyProviderLoaderTest
test_case.body: @Test
      public void assertGetProviderBySPI() {
          assertThat(DataSourcePropertyProviderLoader.getProvider(new HikariDataSource()), instanceOf(HikariCPPropertyProvider.class));
      }
test_case.class_method_signature: DataSourcePropertyProviderLoaderTest.assertGetProviderBySPI()
test_case.full_signature: @Test public void assertGetProviderBySPI()
test_case.identifier: assertGetProviderBySPI
test_case.invocations: assertThat getProvider instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetProviderBySPI()
focal_class.declarator: DATA_SOURCE_PROPERTY_PROVIDERS = new HashMap<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, DataSourcePropertyProvider> DATA_SOURCE_PROPERTY_PROVIDERS = new HashMap<>();
focal_class.type: Map<String, DataSourcePropertyProvider>
focal_class.var_name: DATA_SOURCE_PROPERTY_PROVIDERS
focal_class.file: shardingsphere-transaction/shardingsphere-transaction-2pc/shardingsphere-transaction-xa/shardingsphere-transaction-xa-core/src/main/java/org/apache/shardingsphere/transaction/xa/jta/datasource/swapper/DataSourcePropertyProviderLoader.java
focal_class.identifier: DataSourcePropertyProviderLoader
focal_class.class_method_signature: DataSourcePropertyProviderLoader.getProvider(final DataSource dataSource)
focal_class.full_signature: public static DataSourcePropertyProvider getProvider(final DataSource dataSource)
focal_class.identifier: getProvider
focal_class.modifiers: public static
focal_class.parameters: (final DataSource dataSource)
focal_class.return: DataSourcePropertyProvider
focal_class.signature: DataSourcePropertyProvider getProvider(final DataSource dataSource)
focal_method.body: public static DataSourcePropertyProvider getProvider(final DataSource dataSource) {
          String dataSourceClassName = dataSource.getClass().getName();
          return DATA_SOURCE_PROPERTY_PROVIDERS.containsKey(dataSourceClassName) ? DATA_SOURCE_PROPERTY_PROVIDERS.get(dataSourceClassName) : new DefaultDataSourcePropertyProvider();
      }
focal_method.class_method_signature: DataSourcePropertyProviderLoader.getProvider(final DataSource dataSource)
focal_method.full_signature: public static DataSourcePropertyProvider getProvider(final DataSource dataSource)
focal_method.identifier: getProvider
focal_method.invocations: getName getClass containsKey get
focal_method.modifiers: public static
focal_method.parameters: (final DataSource dataSource)
focal_method.return: DataSourcePropertyProvider
focal_method.signature: DataSourcePropertyProvider getProvider(final DataSource dataSource)