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 assertSwapToObject() {
          YamlProxyUserConfiguration yamlProxyUserConfig = new YamlProxyUserConfiguration();
          yamlProxyUserConfig.setAuthorizedSchemas("db1");
          yamlProxyUserConfig.setPassword("pwd");
          ProxyUser actual = new ProxyUserYamlSwapper().swapToObject(yamlProxyUserConfig);
          assertThat(actual.getAuthorizedSchemas().iterator().next(), is("db1"));
          assertThat(actual.getPassword(), is("pwd"));
      }
test_case.class_method_signature: ProxyUserYamlSwapperTest.assertSwapToObject()
test_case.full_signature: @Test public void assertSwapToObject()
test_case.identifier: assertSwapToObject
test_case.invocations: setAuthorizedSchemas setPassword swapToObject assertThat next iterator getAuthorizedSchemas is assertThat getPassword is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToObject()
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 ProxyUser swapToObject(final YamlProxyUserConfiguration yamlConfig) {
          if (Strings.isNullOrEmpty(yamlConfig.getAuthorizedSchemas())) {
              return new ProxyUser(yamlConfig.getPassword(), Collections.emptyList());
          }
          return new ProxyUser(yamlConfig.getPassword(), Splitter.on(',').trimResults().splitToList(yamlConfig.getAuthorizedSchemas()));
      }
focal_method.class_method_signature: ProxyUserYamlSwapper.swapToObject(final YamlProxyUserConfiguration yamlConfig)
focal_method.full_signature: @Override public ProxyUser swapToObject(final YamlProxyUserConfiguration yamlConfig)
focal_method.identifier: swapToObject
focal_method.invocations: isNullOrEmpty getAuthorizedSchemas getPassword emptyList getPassword splitToList trimResults on getAuthorizedSchemas
focal_method.modifiers: @Override public
focal_method.parameters: (final YamlProxyUserConfiguration yamlConfig)
focal_method.return: ProxyUser
focal_method.signature: ProxyUser swapToObject(final YamlProxyUserConfiguration yamlConfig)