test_class.declarator: shardingStrategyYamlSwapper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ShardingStrategyConfigurationYamlSwapper shardingStrategyYamlSwapper;
test_class.type: ShardingStrategyConfigurationYamlSwapper
test_class.var_name: shardingStrategyYamlSwapper
test_class.declarator: keyGenerateStrategyYamlSwapper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private KeyGenerateStrategyConfigurationYamlSwapper keyGenerateStrategyYamlSwapper;
test_class.type: KeyGenerateStrategyConfigurationYamlSwapper
test_class.var_name: keyGenerateStrategyYamlSwapper
test_class.declarator: tableYamlSwapper = new ShardingAutoTableRuleConfigurationYamlSwapper()
test_class.modifier: private final
test_class.original_string: private final ShardingAutoTableRuleConfigurationYamlSwapper tableYamlSwapper = new ShardingAutoTableRuleConfigurationYamlSwapper();
test_class.type: ShardingAutoTableRuleConfigurationYamlSwapper
test_class.var_name: tableYamlSwapper
test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/test/java/org/apache/shardingsphere/sharding/yaml/swapper/rule/ShardingAutoTableRuleConfigurationYamlSwapperTest.java
test_class.identifier: ShardingAutoTableRuleConfigurationYamlSwapperTest
test_case.body: @Test(expected = NullPointerException.class)
      public void assertSwapToObjectWithoutLogicTable() {
          new ShardingAutoTableRuleConfigurationYamlSwapper().swapToObject(new YamlShardingAutoTableRuleConfiguration());
      }
test_case.class_method_signature: ShardingAutoTableRuleConfigurationYamlSwapperTest.assertSwapToObjectWithoutLogicTable()
test_case.full_signature: @Test(expected = NullPointerException.class) public void assertSwapToObjectWithoutLogicTable()
test_case.identifier: assertSwapToObjectWithoutLogicTable
test_case.invocations: swapToObject
test_case.modifiers: @Test(expected = NullPointerException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToObjectWithoutLogicTable()
focal_class.declarator: shardingStrategyYamlSwapper = new ShardingStrategyConfigurationYamlSwapper()
focal_class.modifier: private final
focal_class.original_string: private final ShardingStrategyConfigurationYamlSwapper shardingStrategyYamlSwapper = new ShardingStrategyConfigurationYamlSwapper();
focal_class.type: ShardingStrategyConfigurationYamlSwapper
focal_class.var_name: shardingStrategyYamlSwapper
focal_class.declarator: keyGenerateStrategyYamlSwapper = new KeyGenerateStrategyConfigurationYamlSwapper()
focal_class.modifier: private final
focal_class.original_string: private final KeyGenerateStrategyConfigurationYamlSwapper keyGenerateStrategyYamlSwapper = new KeyGenerateStrategyConfigurationYamlSwapper();
focal_class.type: KeyGenerateStrategyConfigurationYamlSwapper
focal_class.var_name: keyGenerateStrategyYamlSwapper
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/yaml/swapper/rule/ShardingAutoTableRuleConfigurationYamlSwapper.java
focal_class.identifier: ShardingAutoTableRuleConfigurationYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlShardingAutoTableRuleConfiguration, ShardingAutoTableRuleConfiguration>
focal_class.class_method_signature: ShardingAutoTableRuleConfigurationYamlSwapper.swapToYamlConfiguration(final ShardingAutoTableRuleConfiguration data)
focal_class.full_signature: @Override public YamlShardingAutoTableRuleConfiguration swapToYamlConfiguration(final ShardingAutoTableRuleConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final ShardingAutoTableRuleConfiguration data)
focal_class.return: YamlShardingAutoTableRuleConfiguration
focal_class.signature: YamlShardingAutoTableRuleConfiguration swapToYamlConfiguration(final ShardingAutoTableRuleConfiguration data)
focal_class.class_method_signature: ShardingAutoTableRuleConfigurationYamlSwapper.swapToObject(final YamlShardingAutoTableRuleConfiguration yamlConfig)
focal_class.full_signature: @Override public ShardingAutoTableRuleConfiguration swapToObject(final YamlShardingAutoTableRuleConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlShardingAutoTableRuleConfiguration yamlConfig)
focal_class.return: ShardingAutoTableRuleConfiguration
focal_class.signature: ShardingAutoTableRuleConfiguration swapToObject(final YamlShardingAutoTableRuleConfiguration yamlConfig)
focal_method.body: @Override
      public ShardingAutoTableRuleConfiguration swapToObject(final YamlShardingAutoTableRuleConfiguration yamlConfig) {
          Preconditions.checkNotNull(yamlConfig.getLogicTable(), "Logic table cannot be null.");
          ShardingAutoTableRuleConfiguration result = new ShardingAutoTableRuleConfiguration(yamlConfig.getLogicTable(), yamlConfig.getActualDataSources());
          if (null != yamlConfig.getShardingStrategy()) {
              result.setShardingStrategy(shardingStrategyYamlSwapper.swapToObject(yamlConfig.getShardingStrategy()));
          }
          if (null != yamlConfig.getKeyGenerateStrategy()) {
              result.setKeyGenerateStrategy(keyGenerateStrategyYamlSwapper.swapToObject(yamlConfig.getKeyGenerateStrategy()));
          }
          return result;
      }
focal_method.class_method_signature: ShardingAutoTableRuleConfigurationYamlSwapper.swapToObject(final YamlShardingAutoTableRuleConfiguration yamlConfig)
focal_method.full_signature: @Override public ShardingAutoTableRuleConfiguration swapToObject(final YamlShardingAutoTableRuleConfiguration yamlConfig)
focal_method.identifier: swapToObject
focal_method.invocations: checkNotNull getLogicTable getLogicTable getActualDataSources getShardingStrategy setShardingStrategy swapToObject getShardingStrategy getKeyGenerateStrategy setKeyGenerateStrategy swapToObject getKeyGenerateStrategy
focal_method.modifiers: @Override public
focal_method.parameters: (final YamlShardingAutoTableRuleConfiguration yamlConfig)
focal_method.return: ShardingAutoTableRuleConfiguration
focal_method.signature: ShardingAutoTableRuleConfiguration swapToObject(final YamlShardingAutoTableRuleConfiguration yamlConfig)