test_class.file: shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-common/src/test/java/org/apache/shardingsphere/shadow/yaml/swapper/ShadowRuleConfigurationYamlSwapperTest.java
test_class.identifier: ShadowRuleConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertSwapToYamlConfiguration() {
          ShadowRuleConfiguration shadowRuleConfig = new ShadowRuleConfiguration("shadow", Arrays.asList("ds", "ds1"), Arrays.asList("shadow_ds", "shadow_ds1"));
          YamlShadowRuleConfiguration actual = new ShadowRuleConfigurationYamlSwapper().swapToYamlConfiguration(shadowRuleConfig);
          assertThat(actual.getColumn(), is("shadow"));
          assertThat(actual.getSourceDataSourceNames().size(), is(actual.getShadowDataSourceNames().size()));
          assertThat(actual.getSourceDataSourceNames(), is(Arrays.asList("ds", "ds1")));
          assertThat(actual.getShadowDataSourceNames(), is(Arrays.asList("shadow_ds", "shadow_ds1")));
      }
test_case.class_method_signature: ShadowRuleConfigurationYamlSwapperTest.assertSwapToYamlConfiguration()
test_case.full_signature: @Test public void assertSwapToYamlConfiguration()
test_case.identifier: assertSwapToYamlConfiguration
test_case.invocations: asList asList swapToYamlConfiguration assertThat getColumn is assertThat size getSourceDataSourceNames is size getShadowDataSourceNames assertThat getSourceDataSourceNames is asList assertThat getShadowDataSourceNames is asList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToYamlConfiguration()
focal_class.file: shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-common/src/main/java/org/apache/shardingsphere/shadow/yaml/swapper/ShadowRuleConfigurationYamlSwapper.java
focal_class.identifier: ShadowRuleConfigurationYamlSwapper
focal_class.interfaces: implements YamlRuleConfigurationSwapper<YamlShadowRuleConfiguration, ShadowRuleConfiguration>
focal_class.class_method_signature: ShadowRuleConfigurationYamlSwapper.swapToYamlConfiguration(final ShadowRuleConfiguration data)
focal_class.full_signature: @Override public YamlShadowRuleConfiguration swapToYamlConfiguration(final ShadowRuleConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final ShadowRuleConfiguration data)
focal_class.return: YamlShadowRuleConfiguration
focal_class.signature: YamlShadowRuleConfiguration swapToYamlConfiguration(final ShadowRuleConfiguration data)
focal_class.class_method_signature: ShadowRuleConfigurationYamlSwapper.swapToObject(final YamlShadowRuleConfiguration yamlConfig)
focal_class.full_signature: @Override public ShadowRuleConfiguration swapToObject(final YamlShadowRuleConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlShadowRuleConfiguration yamlConfig)
focal_class.return: ShadowRuleConfiguration
focal_class.signature: ShadowRuleConfiguration swapToObject(final YamlShadowRuleConfiguration yamlConfig)
focal_class.class_method_signature: ShadowRuleConfigurationYamlSwapper.getTypeClass()
focal_class.full_signature: @Override public Class<ShadowRuleConfiguration> getTypeClass()
focal_class.identifier: getTypeClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<ShadowRuleConfiguration>
focal_class.signature: Class<ShadowRuleConfiguration> getTypeClass()
focal_class.class_method_signature: ShadowRuleConfigurationYamlSwapper.getRuleTagName()
focal_class.full_signature: @Override public String getRuleTagName()
focal_class.identifier: getRuleTagName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRuleTagName()
focal_class.class_method_signature: ShadowRuleConfigurationYamlSwapper.getOrder()
focal_class.full_signature: @Override public int getOrder()
focal_class.identifier: getOrder
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getOrder()
focal_method.body: @Override
      public YamlShadowRuleConfiguration swapToYamlConfiguration(final ShadowRuleConfiguration data) {
          YamlShadowRuleConfiguration result = new YamlShadowRuleConfiguration();
          result.setColumn(data.getColumn());
          result.setSourceDataSourceNames(data.getSourceDataSourceNames());
          result.setShadowDataSourceNames(data.getShadowDataSourceNames());
          return result;
      }
focal_method.class_method_signature: ShadowRuleConfigurationYamlSwapper.swapToYamlConfiguration(final ShadowRuleConfiguration data)
focal_method.full_signature: @Override public YamlShadowRuleConfiguration swapToYamlConfiguration(final ShadowRuleConfiguration data)
focal_method.identifier: swapToYamlConfiguration
focal_method.invocations: setColumn getColumn setSourceDataSourceNames getSourceDataSourceNames setShadowDataSourceNames getShadowDataSourceNames
focal_method.modifiers: @Override public
focal_method.parameters: (final ShadowRuleConfiguration data)
focal_method.return: YamlShadowRuleConfiguration
focal_method.signature: YamlShadowRuleConfiguration swapToYamlConfiguration(final ShadowRuleConfiguration data)