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 assertGetDataSourceParameterMapFromYamlConfiguration() {
          Map<String, YamlDataSourceParameter> yamlDataSourceParameterMap = new HashMap<>();
          YamlDataSourceParameter yamlDataSourceParameter0 = new YamlDataSourceParameter();
          yamlDataSourceParameter0.setUrl("jdbc:mysql://localhost:3306/t_order");
          setYamlDataSourceParameterPropertyWithoutUrl(yamlDataSourceParameter0);
          yamlDataSourceParameterMap.put("ds_0", yamlDataSourceParameter0);
          YamlDataSourceParameter yamlDataSourceParameter1 = new YamlDataSourceParameter();
          yamlDataSourceParameter1.setUrl("jdbc:mysql://localhost:3306/t_order_item");
          setYamlDataSourceParameterPropertyWithoutUrl(yamlDataSourceParameter1);
          yamlDataSourceParameterMap.put("ds_1", yamlDataSourceParameter1);
          Map<String, DataSourceParameter> actualDataSourceParameterMap = DataSourceParameterConverter.getDataSourceParameterMapFromYamlConfiguration(yamlDataSourceParameterMap);
          assertThat(actualDataSourceParameterMap.size(), is(2));
          assertThat(actualDataSourceParameterMap.get("ds_0").getUrl(), is("jdbc:mysql://localhost:3306/t_order"));
          assertThat(actualDataSourceParameterMap.get("ds_1").getUrl(), is("jdbc:mysql://localhost:3306/t_order_item"));
          assertDataSourceParameter(actualDataSourceParameterMap.get("ds_0"));
          assertDataSourceParameter(actualDataSourceParameterMap.get("ds_1"));
      }
test_case.class_method_signature: DataSourceParameterConverterTest.assertGetDataSourceParameterMapFromYamlConfiguration()
test_case.full_signature: @Test public void assertGetDataSourceParameterMapFromYamlConfiguration()
test_case.identifier: assertGetDataSourceParameterMapFromYamlConfiguration
test_case.invocations: setUrl setYamlDataSourceParameterPropertyWithoutUrl put setUrl setYamlDataSourceParameterPropertyWithoutUrl put getDataSourceParameterMapFromYamlConfiguration assertThat size is assertThat getUrl get is assertThat getUrl get is assertDataSourceParameter get assertDataSourceParameter get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetDataSourceParameterMapFromYamlConfiguration()
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, DataSourceParameter> getDataSourceParameterMapFromYamlConfiguration(final Map<String, YamlDataSourceParameter> dataSourceParameters) {
          return dataSourceParameters.entrySet().stream()
                  .collect(Collectors.toMap(Entry::getKey, entry -> createDataSourceParameter(entry.getValue()), (oldVal, currVal) -> oldVal, LinkedHashMap::new));
      }
focal_method.class_method_signature: DataSourceParameterConverter.getDataSourceParameterMapFromYamlConfiguration(final Map<String, YamlDataSourceParameter> dataSourceParameters)
focal_method.full_signature: public static Map<String, DataSourceParameter> getDataSourceParameterMapFromYamlConfiguration(final Map<String, YamlDataSourceParameter> dataSourceParameters)
focal_method.identifier: getDataSourceParameterMapFromYamlConfiguration
focal_method.invocations: collect stream entrySet toMap createDataSourceParameter getValue
focal_method.modifiers: public static
focal_method.parameters: (final Map<String, YamlDataSourceParameter> dataSourceParameters)
focal_method.return: Map<String, DataSourceParameter>
focal_method.signature: Map<String, DataSourceParameter> getDataSourceParameterMapFromYamlConfiguration(final Map<String, YamlDataSourceParameter> dataSourceParameters)