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 assertSwapToYaml() {
          YamlShardingSphereAlgorithmConfiguration actual = new ShardingSphereAlgorithmConfigurationYamlSwapper().swapToYamlConfiguration(
                  new ShardingSphereAlgorithmConfiguration("TEST", createProps()));
          assertThat(actual.getType(), is("TEST"));
          assertThat(actual.getProps().getProperty("key"), is("value"));
      }
test_case.class_method_signature: ShardingSphereAlgorithmConfigurationYamlSwapperTest.assertSwapToYaml()
test_case.full_signature: @Test public void assertSwapToYaml()
test_case.identifier: assertSwapToYaml
test_case.invocations: swapToYamlConfiguration createProps assertThat getType is assertThat getProperty getProps 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/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 YamlShardingSphereAlgorithmConfiguration swapToYamlConfiguration(final ShardingSphereAlgorithmConfiguration data) {
          YamlShardingSphereAlgorithmConfiguration result = new YamlShardingSphereAlgorithmConfiguration();
          result.setType(data.getType());
          result.setProps(data.getProps());
          return result;
      }
focal_method.class_method_signature: ShardingSphereAlgorithmConfigurationYamlSwapper.swapToYamlConfiguration(final ShardingSphereAlgorithmConfiguration data)
focal_method.full_signature: @Override public YamlShardingSphereAlgorithmConfiguration swapToYamlConfiguration(final ShardingSphereAlgorithmConfiguration data)
focal_method.identifier: swapToYamlConfiguration
focal_method.invocations: setType getType setProps getProps
focal_method.modifiers: @Override public
focal_method.parameters: (final ShardingSphereAlgorithmConfiguration data)
focal_method.return: YamlShardingSphereAlgorithmConfiguration
focal_method.signature: YamlShardingSphereAlgorithmConfiguration swapToYamlConfiguration(final ShardingSphereAlgorithmConfiguration data)