test_class.file: shardingsphere-proxy/shardingsphere-proxy-common/src/test/java/org/apache/shardingsphere/proxy/config/util/DataSourceParameterConverterTest.java
test_class.identifier: DataSourceParameterConverterTest
test_case.body: @Test
      public void assertGetDataSourceConfigurationMap() {
          Map<String, DataSourceParameter> dataSourceParameterMap = new HashMap<>(2, 1);
          dataSourceParameterMap.put("ds_0", crateDataSourceParameter());
          dataSourceParameterMap.put("ds_1", crateDataSourceParameter());
          Map<String, DataSourceConfiguration> actual = DataSourceParameterConverter.getDataSourceConfigurationMap(dataSourceParameterMap);
          assertThat(actual.size(), is(2));
          assertParameter(actual.get("ds_0"));
          assertParameter(actual.get("ds_1"));
      }
test_case.class_method_signature: DataSourceParameterConverterTest.assertGetDataSourceConfigurationMap()
test_case.full_signature: @Test public void assertGetDataSourceConfigurationMap()
test_case.identifier: assertGetDataSourceConfigurationMap
test_case.invocations: put crateDataSourceParameter put crateDataSourceParameter getDataSourceConfigurationMap assertThat size is assertParameter get assertParameter get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetDataSourceConfigurationMap()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-common/src/main/java/org/apache/shardingsphere/proxy/config/util/DataSourceParameterConverter.java
focal_class.identifier: DataSourceParameterConverter
focal_class.class_method_signature: DataSourceParameterConverter.getDataSourceParameterMap(final Map<String, DataSourceConfiguration> dataSourceConfigurationMap)
focal_class.full_signature: public static Map<String, DataSourceParameter> getDataSourceParameterMap(final Map<String, DataSourceConfiguration> dataSourceConfigurationMap)
focal_class.identifier: getDataSourceParameterMap
focal_class.modifiers: public static
focal_class.parameters: (final Map<String, DataSourceConfiguration> dataSourceConfigurationMap)
focal_class.return: Map<String, DataSourceParameter>
focal_class.signature: Map<String, DataSourceParameter> getDataSourceParameterMap(final Map<String, DataSourceConfiguration> dataSourceConfigurationMap)
focal_class.class_method_signature: DataSourceParameterConverter.getDataSourceParameterMapFromYamlConfiguration(final Map<String, YamlDataSourceParameter> dataSourceParameters)
focal_class.full_signature: public static Map<String, DataSourceParameter> getDataSourceParameterMapFromYamlConfiguration(final Map<String, YamlDataSourceParameter> dataSourceParameters)
focal_class.identifier: getDataSourceParameterMapFromYamlConfiguration
focal_class.modifiers: public static
focal_class.parameters: (final Map<String, YamlDataSourceParameter> dataSourceParameters)
focal_class.return: Map<String, DataSourceParameter>
focal_class.signature: Map<String, DataSourceParameter> getDataSourceParameterMapFromYamlConfiguration(final Map<String, YamlDataSourceParameter> dataSourceParameters)
focal_class.class_method_signature: DataSourceParameterConverter.createDataSourceParameter(final DataSourceConfiguration dataSourceConfig)
focal_class.full_signature: private static DataSourceParameter createDataSourceParameter(final DataSourceConfiguration dataSourceConfig)
focal_class.identifier: createDataSourceParameter
focal_class.modifiers: private static
focal_class.parameters: (final DataSourceConfiguration dataSourceConfig)
focal_class.return: DataSourceParameter
focal_class.signature: DataSourceParameter createDataSourceParameter(final DataSourceConfiguration dataSourceConfig)
focal_class.class_method_signature: DataSourceParameterConverter.createDataSourceParameter(final YamlDataSourceParameter yamlDataSourceParameter)
focal_class.full_signature: private static DataSourceParameter createDataSourceParameter(final YamlDataSourceParameter yamlDataSourceParameter)
focal_class.identifier: createDataSourceParameter
focal_class.modifiers: private static
focal_class.parameters: (final YamlDataSourceParameter yamlDataSourceParameter)
focal_class.return: DataSourceParameter
focal_class.signature: DataSourceParameter createDataSourceParameter(final YamlDataSourceParameter yamlDataSourceParameter)
focal_class.class_method_signature: DataSourceParameterConverter.bindSynonym(final DataSourceConfiguration dataSourceConfig)
focal_class.full_signature: private static void bindSynonym(final DataSourceConfiguration dataSourceConfig)
focal_class.identifier: bindSynonym
focal_class.modifiers: private static
focal_class.parameters: (final DataSourceConfiguration dataSourceConfig)
focal_class.return: void
focal_class.signature: void bindSynonym(final DataSourceConfiguration dataSourceConfig)
focal_class.class_method_signature: DataSourceParameterConverter.getDataSourceConfigurationMap(final Map<String, DataSourceParameter> dataSourceParameterMap)
focal_class.full_signature: public static Map<String, DataSourceConfiguration> getDataSourceConfigurationMap(final Map<String, DataSourceParameter> dataSourceParameterMap)
focal_class.identifier: getDataSourceConfigurationMap
focal_class.modifiers: public static
focal_class.parameters: (final Map<String, DataSourceParameter> dataSourceParameterMap)
focal_class.return: Map<String, DataSourceConfiguration>
focal_class.signature: Map<String, DataSourceConfiguration> getDataSourceConfigurationMap(final Map<String, DataSourceParameter> dataSourceParameterMap)
focal_class.class_method_signature: DataSourceParameterConverter.createDataSourceConfiguration(final DataSourceParameter dataSourceParameter)
focal_class.full_signature: private static DataSourceConfiguration createDataSourceConfiguration(final DataSourceParameter dataSourceParameter)
focal_class.identifier: createDataSourceConfiguration
focal_class.modifiers: private static
focal_class.parameters: (final DataSourceParameter dataSourceParameter)
focal_class.return: DataSourceConfiguration
focal_class.signature: DataSourceConfiguration createDataSourceConfiguration(final DataSourceParameter dataSourceParameter)
focal_method.body: public static Map<String, DataSourceConfiguration> getDataSourceConfigurationMap(final Map<String, DataSourceParameter> dataSourceParameterMap) {
          return dataSourceParameterMap.entrySet().stream()
                  .collect(Collectors.toMap(Entry::getKey, entry -> createDataSourceConfiguration(entry.getValue()), (oldVal, currVal) -> oldVal, LinkedHashMap::new));
      }
focal_method.class_method_signature: DataSourceParameterConverter.getDataSourceConfigurationMap(final Map<String, DataSourceParameter> dataSourceParameterMap)
focal_method.full_signature: public static Map<String, DataSourceConfiguration> getDataSourceConfigurationMap(final Map<String, DataSourceParameter> dataSourceParameterMap)
focal_method.identifier: getDataSourceConfigurationMap
focal_method.invocations: collect stream entrySet toMap createDataSourceConfiguration getValue
focal_method.modifiers: public static
focal_method.parameters: (final Map<String, DataSourceParameter> dataSourceParameterMap)
focal_method.return: Map<String, DataSourceConfiguration>
focal_method.signature: Map<String, DataSourceConfiguration> getDataSourceConfigurationMap(final Map<String, DataSourceParameter> dataSourceParameterMap)