test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/auth/yaml/swapper/ProxyUserYamlSwapperTest.java
test_class.identifier: ProxyUserYamlSwapperTest
test_case.body: @Test
      public void assertSwapToYaml() {
          YamlProxyUserConfiguration actual = new ProxyUserYamlSwapper().swapToYamlConfiguration(new ProxyUser("pwd", Collections.singleton("db1")));
          assertThat(actual.getAuthorizedSchemas(), is("db1"));
          assertThat(actual.getPassword(), is("pwd"));
      }
test_case.class_method_signature: ProxyUserYamlSwapperTest.assertSwapToYaml()
test_case.full_signature: @Test public void assertSwapToYaml()
test_case.identifier: assertSwapToYaml
test_case.invocations: swapToYamlConfiguration singleton assertThat getAuthorizedSchemas is assertThat getPassword is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToYaml()
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/auth/yaml/swapper/ProxyUserYamlSwapper.java
focal_class.identifier: ProxyUserYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlProxyUserConfiguration, ProxyUser>
focal_class.class_method_signature: ProxyUserYamlSwapper.swapToYamlConfiguration(final ProxyUser data)
focal_class.full_signature: @Override public YamlProxyUserConfiguration swapToYamlConfiguration(final ProxyUser data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final ProxyUser data)
focal_class.return: YamlProxyUserConfiguration
focal_class.signature: YamlProxyUserConfiguration swapToYamlConfiguration(final ProxyUser data)
focal_class.class_method_signature: ProxyUserYamlSwapper.swapToObject(final YamlProxyUserConfiguration yamlConfig)
focal_class.full_signature: @Override public ProxyUser swapToObject(final YamlProxyUserConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlProxyUserConfiguration yamlConfig)
focal_class.return: ProxyUser
focal_class.signature: ProxyUser swapToObject(final YamlProxyUserConfiguration yamlConfig)
focal_method.body: @Override
      public YamlProxyUserConfiguration swapToYamlConfiguration(final ProxyUser data) {
          YamlProxyUserConfiguration result = new YamlProxyUserConfiguration();
          result.setPassword(data.getPassword());
          String authorizedSchemas = null == data.getAuthorizedSchemas() ? "" : Joiner.on(',').join(data.getAuthorizedSchemas());
          result.setAuthorizedSchemas(authorizedSchemas);
          return result;
      }
focal_method.class_method_signature: ProxyUserYamlSwapper.swapToYamlConfiguration(final ProxyUser data)
focal_method.full_signature: @Override public YamlProxyUserConfiguration swapToYamlConfiguration(final ProxyUser data)
focal_method.identifier: swapToYamlConfiguration
focal_method.invocations: setPassword getPassword getAuthorizedSchemas join on getAuthorizedSchemas setAuthorizedSchemas
focal_method.modifiers: @Override public
focal_method.parameters: (final ProxyUser data)
focal_method.return: YamlProxyUserConfiguration
focal_method.signature: YamlProxyUserConfiguration swapToYamlConfiguration(final ProxyUser data)