test_class.declarator: tableRuleConfigYamlSwapper = new EncryptTableRuleConfigurationYamlSwapper()
test_class.modifier: private final
test_class.original_string: private final EncryptTableRuleConfigurationYamlSwapper tableRuleConfigYamlSwapper = new EncryptTableRuleConfigurationYamlSwapper();
test_class.type: EncryptTableRuleConfigurationYamlSwapper
test_class.var_name: tableRuleConfigYamlSwapper
test_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/test/java/org/apache/shardingsphere/encrypt/yaml/swapper/rule/EncryptTableRuleConfigurationYamlSwapperTest.java
test_class.identifier: EncryptTableRuleConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertSwapToYamlConfiguration() {
          Collection<EncryptColumnRuleConfiguration> encryptColumnRuleConfigCollection =
              Lists.newArrayList(
                  new EncryptColumnRuleConfiguration("encrypt_column_1", "encrypt_cipher_1", "", "", "test_encryptor_1"),
                  new EncryptColumnRuleConfiguration("encrypt_column_2", "encrypt_cipher_2", "", "", "test_encryptor_2"),
                  new EncryptColumnRuleConfiguration("encrypt_column_3", "encrypt_cipher_3", "", "", "test_encryptor_3")
                );
          EncryptTableRuleConfiguration encryptTableRuleConfig = new EncryptTableRuleConfiguration("test_table", encryptColumnRuleConfigCollection);
          YamlEncryptTableRuleConfiguration actualYamlEncryptTableRuleConfig = tableRuleConfigYamlSwapper.swapToYamlConfiguration(encryptTableRuleConfig);
          assertNotNull(actualYamlEncryptTableRuleConfig);
          Map<String, YamlEncryptColumnRuleConfiguration> actualColumns = actualYamlEncryptTableRuleConfig.getColumns();
          assertFalse(actualColumns.isEmpty());
          assertThat(actualColumns.size(), is(3));
          YamlEncryptColumnRuleConfiguration actualYamlEncryptColumnRuleConfigFirst = actualColumns.get("encrypt_column_1");
          assertThat(actualYamlEncryptColumnRuleConfigFirst.getCipherColumn(), is("encrypt_cipher_1"));
          assertThat(actualYamlEncryptColumnRuleConfigFirst.getEncryptorName(), is("test_encryptor_1"));
          YamlEncryptColumnRuleConfiguration actualYamlEncryptColumnRuleConfigSecond = actualColumns.get("encrypt_column_2");
          assertThat(actualYamlEncryptColumnRuleConfigSecond.getCipherColumn(), is("encrypt_cipher_2"));
          assertThat(actualYamlEncryptColumnRuleConfigSecond.getEncryptorName(), is("test_encryptor_2"));
          YamlEncryptColumnRuleConfiguration actualYamlEncryptColumnRuleConfigThird = actualColumns.get("encrypt_column_3");
          assertThat(actualYamlEncryptColumnRuleConfigThird.getCipherColumn(), is("encrypt_cipher_3"));
          assertThat(actualYamlEncryptColumnRuleConfigThird.getEncryptorName(), is("test_encryptor_3"));
      }
test_case.class_method_signature: EncryptTableRuleConfigurationYamlSwapperTest.assertSwapToYamlConfiguration()
test_case.full_signature: @Test public void assertSwapToYamlConfiguration()
test_case.identifier: assertSwapToYamlConfiguration
test_case.invocations: newArrayList swapToYamlConfiguration assertNotNull getColumns assertFalse isEmpty assertThat size is get assertThat getCipherColumn is assertThat getEncryptorName is get assertThat getCipherColumn is assertThat getEncryptorName is get assertThat getCipherColumn is assertThat getEncryptorName is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToYamlConfiguration()
focal_class.declarator: columnYamlSwapper = new EncryptColumnRuleConfigurationYamlSwapper()
focal_class.modifier: private final
focal_class.original_string: private final EncryptColumnRuleConfigurationYamlSwapper columnYamlSwapper = new EncryptColumnRuleConfigurationYamlSwapper();
focal_class.type: EncryptColumnRuleConfigurationYamlSwapper
focal_class.var_name: columnYamlSwapper
focal_class.file: shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/main/java/org/apache/shardingsphere/encrypt/yaml/swapper/rule/EncryptTableRuleConfigurationYamlSwapper.java
focal_class.identifier: EncryptTableRuleConfigurationYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlEncryptTableRuleConfiguration, EncryptTableRuleConfiguration>
focal_class.class_method_signature: EncryptTableRuleConfigurationYamlSwapper.swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_class.full_signature: @Override public YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final EncryptTableRuleConfiguration data)
focal_class.return: YamlEncryptTableRuleConfiguration
focal_class.signature: YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_class.class_method_signature: EncryptTableRuleConfigurationYamlSwapper.swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_class.full_signature: @Override public EncryptTableRuleConfiguration swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlEncryptTableRuleConfiguration yamlConfig)
focal_class.return: EncryptTableRuleConfiguration
focal_class.signature: EncryptTableRuleConfiguration swapToObject(final YamlEncryptTableRuleConfiguration yamlConfig)
focal_method.body: @Override
      public YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final EncryptTableRuleConfiguration data) {
          YamlEncryptTableRuleConfiguration result = new YamlEncryptTableRuleConfiguration();
          for (EncryptColumnRuleConfiguration each : data.getColumns()) {
              result.getColumns().put(each.getLogicColumn(), columnYamlSwapper.swapToYamlConfiguration(each));
          }
          return result;
      }
focal_method.class_method_signature: EncryptTableRuleConfigurationYamlSwapper.swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_method.full_signature: @Override public YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final EncryptTableRuleConfiguration data)
focal_method.identifier: swapToYamlConfiguration
focal_method.invocations: getColumns put getColumns getLogicColumn swapToYamlConfiguration
focal_method.modifiers: @Override public
focal_method.parameters: (final EncryptTableRuleConfiguration data)
focal_method.return: YamlEncryptTableRuleConfiguration
focal_method.signature: YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final EncryptTableRuleConfiguration data)