test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/yaml/swapper/algorithm/ShardingSphereAlgorithmConfigurationYamlSwapperTest.java
test_class.identifier: ShardingSphereAlgorithmConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertSwapToObject() {
          YamlShardingSphereAlgorithmConfiguration yamlConfig = new YamlShardingSphereAlgorithmConfiguration();
          yamlConfig.setType("TEST");
          yamlConfig.setProps(createProps());
          ShardingSphereAlgorithmConfiguration actual = new ShardingSphereAlgorithmConfigurationYamlSwapper().swapToObject(yamlConfig);
          assertThat(actual.getType(), is("TEST"));
          assertThat(actual.getProps().getProperty("key"), is("value"));
      }
test_case.class_method_signature: ShardingSphereAlgorithmConfigurationYamlSwapperTest.assertSwapToObject()
test_case.full_signature: @Test public void assertSwapToObject()
test_case.identifier: assertSwapToObject
test_case.invocations: setType setProps createProps swapToObject assertThat getType is assertThat getProperty getProps 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/yaml/swapper/algorithm/ShardingSphereAlgorithmConfigurationYamlSwapper.java
focal_class.identifier: ShardingSphereAlgorithmConfigurationYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlShardingSphereAlgorithmConfiguration, ShardingSphereAlgorithmConfiguration>
focal_class.class_method_signature: ShardingSphereAlgorithmConfigurationYamlSwapper.swapToYamlConfiguration(final ShardingSphereAlgorithmConfiguration data)
focal_class.full_signature: @Override public YamlShardingSphereAlgorithmConfiguration swapToYamlConfiguration(final ShardingSphereAlgorithmConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final ShardingSphereAlgorithmConfiguration data)
focal_class.return: YamlShardingSphereAlgorithmConfiguration
focal_class.signature: YamlShardingSphereAlgorithmConfiguration swapToYamlConfiguration(final ShardingSphereAlgorithmConfiguration data)
focal_class.class_method_signature: ShardingSphereAlgorithmConfigurationYamlSwapper.swapToObject(final YamlShardingSphereAlgorithmConfiguration yamlConfig)
focal_class.full_signature: @Override public ShardingSphereAlgorithmConfiguration swapToObject(final YamlShardingSphereAlgorithmConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlShardingSphereAlgorithmConfiguration yamlConfig)
focal_class.return: ShardingSphereAlgorithmConfiguration
focal_class.signature: ShardingSphereAlgorithmConfiguration swapToObject(final YamlShardingSphereAlgorithmConfiguration yamlConfig)
focal_method.body: @Override
      public ShardingSphereAlgorithmConfiguration swapToObject(final YamlShardingSphereAlgorithmConfiguration yamlConfig) {
          return new ShardingSphereAlgorithmConfiguration(yamlConfig.getType(), yamlConfig.getProps());
      }
focal_method.class_method_signature: ShardingSphereAlgorithmConfigurationYamlSwapper.swapToObject(final YamlShardingSphereAlgorithmConfiguration yamlConfig)
focal_method.full_signature: @Override public ShardingSphereAlgorithmConfiguration swapToObject(final YamlShardingSphereAlgorithmConfiguration yamlConfig)
focal_method.identifier: swapToObject
focal_method.invocations: getType getProps
focal_method.modifiers: @Override public
focal_method.parameters: (final YamlShardingSphereAlgorithmConfiguration yamlConfig)
focal_method.return: ShardingSphereAlgorithmConfiguration
focal_method.signature: ShardingSphereAlgorithmConfiguration swapToObject(final YamlShardingSphereAlgorithmConfiguration yamlConfig)