test_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-common/src/test/java/org/apache/shardingsphere/governance/core/yaml/swapper/GovernanceCenterConfigurationYamlSwapperTest.java
test_class.identifier: GovernanceCenterConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertToYamlConfiguration() {
          GovernanceCenterConfiguration expected = new GovernanceCenterConfiguration("TEST", "127.0.0.1:2181", new Properties());
          YamlGovernanceCenterConfiguration actual = new GovernanceCenterConfigurationYamlSwapper().swapToYamlConfiguration(expected);
          assertThat(actual.getType(), is(expected.getType()));
          assertThat(actual.getServerLists(), is(expected.getServerLists()));
          assertThat(actual.getProps(), is(expected.getProps()));
      }
test_case.class_method_signature: GovernanceCenterConfigurationYamlSwapperTest.assertToYamlConfiguration()
test_case.full_signature: @Test public void assertToYamlConfiguration()
test_case.identifier: assertToYamlConfiguration
test_case.invocations: swapToYamlConfiguration assertThat getType is getType assertThat getServerLists is getServerLists assertThat getProps is getProps
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertToYamlConfiguration()
focal_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-common/src/main/java/org/apache/shardingsphere/governance/core/yaml/swapper/GovernanceCenterConfigurationYamlSwapper.java
focal_class.identifier: GovernanceCenterConfigurationYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlGovernanceCenterConfiguration, GovernanceCenterConfiguration>
focal_class.class_method_signature: GovernanceCenterConfigurationYamlSwapper.swapToYamlConfiguration(final GovernanceCenterConfiguration config)
focal_class.full_signature: @Override public YamlGovernanceCenterConfiguration swapToYamlConfiguration(final GovernanceCenterConfiguration config)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final GovernanceCenterConfiguration config)
focal_class.return: YamlGovernanceCenterConfiguration
focal_class.signature: YamlGovernanceCenterConfiguration swapToYamlConfiguration(final GovernanceCenterConfiguration config)
focal_class.class_method_signature: GovernanceCenterConfigurationYamlSwapper.swapToObject(final YamlGovernanceCenterConfiguration yamlConfig)
focal_class.full_signature: @Override public GovernanceCenterConfiguration swapToObject(final YamlGovernanceCenterConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlGovernanceCenterConfiguration yamlConfig)
focal_class.return: GovernanceCenterConfiguration
focal_class.signature: GovernanceCenterConfiguration swapToObject(final YamlGovernanceCenterConfiguration yamlConfig)
focal_method.body: @Override
      public YamlGovernanceCenterConfiguration swapToYamlConfiguration(final GovernanceCenterConfiguration config) {
          YamlGovernanceCenterConfiguration result = new YamlGovernanceCenterConfiguration();
          result.setType(config.getType());
          result.setServerLists(config.getServerLists());
          result.setProps(config.getProps());
          return result;
      }
focal_method.class_method_signature: GovernanceCenterConfigurationYamlSwapper.swapToYamlConfiguration(final GovernanceCenterConfiguration config)
focal_method.full_signature: @Override public YamlGovernanceCenterConfiguration swapToYamlConfiguration(final GovernanceCenterConfiguration config)
focal_method.identifier: swapToYamlConfiguration
focal_method.invocations: setType getType setServerLists getServerLists setProps getProps
focal_method.modifiers: @Override public
focal_method.parameters: (final GovernanceCenterConfiguration config)
focal_method.return: YamlGovernanceCenterConfiguration
focal_method.signature: YamlGovernanceCenterConfiguration swapToYamlConfiguration(final GovernanceCenterConfiguration config)