test_class.file: shardingsphere-features/shardingsphere-consensus-replication/shardingsphere-consensus-replication-common/src/test/java/org/apache/shardingsphere/replication/consensus/rule/builder/ConsensusReplicationRuleBuilderTest.java
test_class.identifier: ConsensusReplicationRuleBuilderTest
test_case.body: @Test
      public void assertBuild() {
          ConsensusReplicationRuleConfiguration ruleConfig = mock(ConsensusReplicationRuleConfiguration.class);
          ShardingSphereRuleBuilder builder = OrderedSPIRegistry.getRegisteredServices(Collections.singletonList(ruleConfig), ShardingSphereRuleBuilder.class).get(ruleConfig);
          assertThat(builder.build(ruleConfig, Collections.emptyList()), instanceOf(ConsensusReplicationRule.class));
      }
test_case.class_method_signature: ConsensusReplicationRuleBuilderTest.assertBuild()
test_case.full_signature: @Test public void assertBuild()
test_case.identifier: assertBuild
test_case.invocations: mock get getRegisteredServices singletonList assertThat build emptyList instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertBuild()
focal_class.file: shardingsphere-features/shardingsphere-consensus-replication/shardingsphere-consensus-replication-common/src/main/java/org/apache/shardingsphere/replication/consensus/rule/builder/ConsensusReplicationRuleBuilder.java
focal_class.identifier: ConsensusReplicationRuleBuilder
focal_class.interfaces: implements ShardingSphereRuleBuilder<ConsensusReplicationRule, ConsensusReplicationRuleConfiguration>
focal_class.class_method_signature: ConsensusReplicationRuleBuilder.build(final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)
focal_class.full_signature: @Override public ConsensusReplicationRule build(final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: (final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)
focal_class.return: ConsensusReplicationRule
focal_class.signature: ConsensusReplicationRule build(final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)
focal_class.class_method_signature: ConsensusReplicationRuleBuilder.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_class.class_method_signature: ConsensusReplicationRuleBuilder.getTypeClass()
focal_class.full_signature: @Override public Class<ConsensusReplicationRuleConfiguration> getTypeClass()
focal_class.identifier: getTypeClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<ConsensusReplicationRuleConfiguration>
focal_class.signature: Class<ConsensusReplicationRuleConfiguration> getTypeClass()
focal_method.body: @Override
      public ConsensusReplicationRule build(final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames) {
          return new ConsensusReplicationRule(ruleConfig);
      }
focal_method.class_method_signature: ConsensusReplicationRuleBuilder.build(final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)
focal_method.full_signature: @Override public ConsensusReplicationRule build(final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)
focal_method.identifier: build
focal_method.modifiers: @Override public
focal_method.parameters: (final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)
focal_method.return: ConsensusReplicationRule
focal_method.signature: ConsensusReplicationRule build(final ConsensusReplicationRuleConfiguration ruleConfig, final Collection<String> dataSourceNames)