test_class.declarator: swapper = new ConsensusReplicationActualTableRuleConfigurationYamlSwapper()
test_class.modifier: private final
test_class.original_string: private final ConsensusReplicationActualTableRuleConfigurationYamlSwapper swapper = new ConsensusReplicationActualTableRuleConfigurationYamlSwapper();
test_class.type: ConsensusReplicationActualTableRuleConfigurationYamlSwapper
test_class.var_name: swapper
test_class.declarator: dataSourceName = "demo_ds_0"
test_class.modifier: private final
test_class.original_string: private final String dataSourceName = "demo_ds_0";
test_class.type: String
test_class.var_name: dataSourceName
test_class.declarator: physicsTable = "t_order_1"
test_class.modifier: private final
test_class.original_string: private final String physicsTable = "t_order_1";
test_class.type: String
test_class.var_name: physicsTable
test_class.declarator: replicaGroupId = "raftGroupTest1"
test_class.modifier: private final
test_class.original_string: private final String replicaGroupId = "raftGroupTest1";
test_class.type: String
test_class.var_name: replicaGroupId
test_class.declarator: replicaPeers = "127.0.0.1:9090"
test_class.modifier: private final
test_class.original_string: private final String replicaPeers = "127.0.0.1:9090";
test_class.type: String
test_class.var_name: replicaPeers
test_class.file: shardingsphere-features/shardingsphere-consensus-replication/shardingsphere-consensus-replication-common/src/test/java/org/apache/shardingsphere/replication/consensus/yaml/swapper/ConsensusReplicationActualTableRuleConfigurationYamlSwapperTest.java
test_class.identifier: ConsensusReplicationActualTableRuleConfigurationYamlSwapperTest
test_case.body: @Test
      public void assertSwapToObjectWithMaxProperties() {
          YamlConsensusReplicationActualTableRuleConfiguration yamlConfig = new YamlConsensusReplicationActualTableRuleConfiguration();
          yamlConfig.setPhysicsTable(physicsTable);
          yamlConfig.setReplicaGroupId(replicaGroupId);
          yamlConfig.setReplicaPeers(replicaPeers);
          yamlConfig.setDataSourceName(dataSourceName);
          ConsensusReplicationActualTableRuleConfiguration config = swapper.swapToObject(yamlConfig);
          assertThat(config.getDataSourceName(), is(dataSourceName));
          assertThat(config.getPhysicsTable(), is(physicsTable));
          assertThat(config.getReplicaGroupId(), is(replicaGroupId));
          assertThat(config.getReplicaPeers(), is(replicaPeers));
      }
test_case.class_method_signature: ConsensusReplicationActualTableRuleConfigurationYamlSwapperTest.assertSwapToObjectWithMaxProperties()
test_case.full_signature: @Test public void assertSwapToObjectWithMaxProperties()
test_case.identifier: assertSwapToObjectWithMaxProperties
test_case.invocations: setPhysicsTable setReplicaGroupId setReplicaPeers setDataSourceName swapToObject assertThat getDataSourceName is assertThat getPhysicsTable is assertThat getReplicaGroupId is assertThat getReplicaPeers is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertSwapToObjectWithMaxProperties()
focal_class.file: shardingsphere-features/shardingsphere-consensus-replication/shardingsphere-consensus-replication-common/src/main/java/org/apache/shardingsphere/replication/consensus/yaml/swapper/ConsensusReplicationActualTableRuleConfigurationYamlSwapper.java
focal_class.identifier: ConsensusReplicationActualTableRuleConfigurationYamlSwapper
focal_class.interfaces: implements YamlSwapper<YamlConsensusReplicationActualTableRuleConfiguration, ConsensusReplicationActualTableRuleConfiguration>
focal_class.class_method_signature: ConsensusReplicationActualTableRuleConfigurationYamlSwapper.swapToYamlConfiguration(final ConsensusReplicationActualTableRuleConfiguration data)
focal_class.full_signature: @Override public YamlConsensusReplicationActualTableRuleConfiguration swapToYamlConfiguration(final ConsensusReplicationActualTableRuleConfiguration data)
focal_class.identifier: swapToYamlConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (final ConsensusReplicationActualTableRuleConfiguration data)
focal_class.return: YamlConsensusReplicationActualTableRuleConfiguration
focal_class.signature: YamlConsensusReplicationActualTableRuleConfiguration swapToYamlConfiguration(final ConsensusReplicationActualTableRuleConfiguration data)
focal_class.class_method_signature: ConsensusReplicationActualTableRuleConfigurationYamlSwapper.swapToObject(final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)
focal_class.full_signature: @Override public ConsensusReplicationActualTableRuleConfiguration swapToObject(final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)
focal_class.identifier: swapToObject
focal_class.modifiers: @Override public
focal_class.parameters: (final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)
focal_class.return: ConsensusReplicationActualTableRuleConfiguration
focal_class.signature: ConsensusReplicationActualTableRuleConfiguration swapToObject(final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)
focal_method.body: @Override
      public ConsensusReplicationActualTableRuleConfiguration swapToObject(final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig) {
          return new ConsensusReplicationActualTableRuleConfiguration(yamlConfig.getPhysicsTable(), yamlConfig.getReplicaGroupId(),
                  yamlConfig.getReplicaPeers(), yamlConfig.getDataSourceName());
      }
focal_method.class_method_signature: ConsensusReplicationActualTableRuleConfigurationYamlSwapper.swapToObject(final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)
focal_method.full_signature: @Override public ConsensusReplicationActualTableRuleConfiguration swapToObject(final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)
focal_method.identifier: swapToObject
focal_method.invocations: getPhysicsTable getReplicaGroupId getReplicaPeers getDataSourceName
focal_method.modifiers: @Override public
focal_method.parameters: (final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)
focal_method.return: ConsensusReplicationActualTableRuleConfiguration
focal_method.signature: ConsensusReplicationActualTableRuleConfiguration swapToObject(final YamlConsensusReplicationActualTableRuleConfiguration yamlConfig)