test_class.file: shardingsphere-proxy/shardingsphere-proxy-common/src/test/java/org/apache/shardingsphere/proxy/config/yaml/swapper/YamlProxyConfigurationSwapperTest.java
test_class.identifier: YamlProxyConfigurationSwapperTest
test_case.body: @Test
      public void assertSwap() {
          YamlProxyConfiguration yamlProxyConfig = getYamlProxyConfiguration();
          ProxyConfiguration proxyConfig = new YamlProxyConfigurationSwapper().swap(yamlProxyConfig);
          assertAuthentication(proxyConfig);
          assertProxyConfigurationProps(proxyConfig);
          assertSchemaDataSources(proxyConfig);
          assertSchemaRules(proxyConfig);
      }
test_case.class_method_signature: YamlProxyConfigurationSwapperTest.assertSwap()
test_case.full_signature: @Test public void assertSwap()
test_case.identifier: assertSwap
test_case.invocations: getYamlProxyConfiguration swap assertAuthentication assertProxyConfigurationProps assertSchemaDataSources assertSchemaRules
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwap()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-common/src/main/java/org/apache/shardingsphere/proxy/config/yaml/swapper/YamlProxyConfigurationSwapper.java
focal_class.identifier: YamlProxyConfigurationSwapper
focal_class.class_method_signature: YamlProxyConfigurationSwapper.swap(final YamlProxyConfiguration yamlConfig)
focal_class.full_signature: public ProxyConfiguration swap(final YamlProxyConfiguration yamlConfig)
focal_class.identifier: swap
focal_class.modifiers: public
focal_class.parameters: (final YamlProxyConfiguration yamlConfig)
focal_class.return: ProxyConfiguration
focal_class.signature: ProxyConfiguration swap(final YamlProxyConfiguration yamlConfig)
focal_class.class_method_signature: YamlProxyConfigurationSwapper.getRuleConfigurations(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.full_signature: private Map<String, Collection<RuleConfiguration>> getRuleConfigurations(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.identifier: getRuleConfigurations
focal_class.modifiers: private
focal_class.parameters: (final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.return: Map<String, Collection<RuleConfiguration>>
focal_class.signature: Map<String, Collection<RuleConfiguration>> getRuleConfigurations(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.class_method_signature: YamlProxyConfigurationSwapper.getDataSourceParametersMap(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.full_signature: private Map<String, Map<String, DataSourceParameter>> getDataSourceParametersMap(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.identifier: getDataSourceParametersMap
focal_class.modifiers: private
focal_class.parameters: (final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.return: Map<String, Map<String, DataSourceParameter>>
focal_class.signature: Map<String, Map<String, DataSourceParameter>> getDataSourceParametersMap(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_method.body: public ProxyConfiguration swap(final YamlProxyConfiguration yamlConfig) {
          Map<String, Map<String, DataSourceParameter>> schemaDataSources = getDataSourceParametersMap(yamlConfig.getRuleConfigurations());
          Map<String, Collection<RuleConfiguration>> schemaRules = getRuleConfigurations(yamlConfig.getRuleConfigurations());
          Authentication authentication = new AuthenticationYamlSwapper().swapToObject(yamlConfig.getServerConfiguration().getAuthentication());
          Properties props = yamlConfig.getServerConfiguration().getProps();
          return new ProxyConfiguration(schemaDataSources, schemaRules, authentication, props);
      }
focal_method.class_method_signature: YamlProxyConfigurationSwapper.swap(final YamlProxyConfiguration yamlConfig)
focal_method.full_signature: public ProxyConfiguration swap(final YamlProxyConfiguration yamlConfig)
focal_method.identifier: swap
focal_method.invocations: getDataSourceParametersMap getRuleConfigurations getRuleConfigurations getRuleConfigurations swapToObject getAuthentication getServerConfiguration getProps getServerConfiguration
focal_method.modifiers: public
focal_method.parameters: (final YamlProxyConfiguration yamlConfig)
focal_method.return: ProxyConfiguration
focal_method.signature: ProxyConfiguration swap(final YamlProxyConfiguration yamlConfig)