test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/rule/ShardingSphereRulesBuilderTest.java
test_class.identifier: ShardingSphereRulesBuilderTest
test_case.body: @Test
      public void assertBuild() {
          RuleConfiguration ruleConfig = new TestRuleConfiguration();
          Collection<ShardingSphereRule> shardingSphereRules = ShardingSphereRulesBuilder.build(Collections.singletonList(ruleConfig), Collections.singletonList(""));
          assertThat(shardingSphereRules, is(Collections.singletonList(TestShardingSphereRuleBuilder.getShardingSphereRule())));
      }
test_case.class_method_signature: ShardingSphereRulesBuilderTest.assertBuild()
test_case.full_signature: @Test public void assertBuild()
test_case.identifier: assertBuild
test_case.invocations: build singletonList singletonList assertThat is singletonList getShardingSphereRule
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertBuild()
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/rule/ShardingSphereRulesBuilder.java
focal_class.identifier: ShardingSphereRulesBuilder
focal_class.class_method_signature: ShardingSphereRulesBuilder.build(final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)
focal_class.full_signature: @SuppressWarnings("unchecked") public static Collection<ShardingSphereRule> build(final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)
focal_class.identifier: build
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)
focal_class.return: Collection<ShardingSphereRule>
focal_class.signature: Collection<ShardingSphereRule> build(final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)
focal_method.body: @SuppressWarnings("unchecked")
      public static Collection<ShardingSphereRule> build(final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames) {
          return OrderedSPIRegistry.getRegisteredServices(
                  ruleConfigurations, ShardingSphereRuleBuilder.class).entrySet().stream().map(entry -> entry.getValue().build(entry.getKey(), dataSourceNames)).collect(Collectors.toList());
      }
focal_method.class_method_signature: ShardingSphereRulesBuilder.build(final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)
focal_method.full_signature: @SuppressWarnings("unchecked") public static Collection<ShardingSphereRule> build(final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)
focal_method.identifier: build
focal_method.invocations: collect map stream entrySet getRegisteredServices build getValue getKey toList
focal_method.modifiers: @SuppressWarnings("unchecked") public static
focal_method.parameters: (final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)
focal_method.return: Collection<ShardingSphereRule>
focal_method.signature: Collection<ShardingSphereRule> build(final Collection<RuleConfiguration> ruleConfigurations, final Collection<String> dataSourceNames)