test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/yaml/config/algorithm/YamlShardingSphereAlgorithmConfigurationTest.java
test_class.identifier: YamlShardingSphereAlgorithmConfigurationTest
test_case.body: @Test
      public void assertBuildByTypedSPI() {
          ShardingSphereServiceLoader.register(TypedSPIFixture.class);
          Collection<TypedSPIFixture> spiFixtures = ShardingSphereServiceLoader.newServiceInstances(TypedSPIFixture.class);
          Optional<TypedSPIFixture> spiOptional = spiFixtures.stream().filter(echo -> echo instanceof TypedSPIFixtureImpl).findFirst();
          assertTrue(spiOptional.isPresent());
          TypedSPIFixture typedSPIFixture = spiOptional.get();
          typedSPIFixture.setProps(createProps());
          YamlShardingSphereAlgorithmConfiguration actual = YamlShardingSphereAlgorithmConfiguration.buildByTypedSPI(typedSPIFixture);
          assertThat(actual.getType(), is("FIXTURE"));
          assertThat(actual.getProps().getProperty("key"), is("value"));
      }
test_case.class_method_signature: YamlShardingSphereAlgorithmConfigurationTest.assertBuildByTypedSPI()
test_case.full_signature: @Test public void assertBuildByTypedSPI()
test_case.identifier: assertBuildByTypedSPI
test_case.invocations: register newServiceInstances findFirst filter stream assertTrue isPresent get setProps createProps buildByTypedSPI assertThat getType is assertThat getProperty getProps is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertBuildByTypedSPI()
focal_class.declarator: type
focal_class.modifier: private
focal_class.original_string: private String type;
focal_class.type: String
focal_class.var_name: type
focal_class.declarator: props = new Properties()
focal_class.modifier: private
focal_class.original_string: private Properties props = new Properties();
focal_class.type: Properties
focal_class.var_name: props
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/yaml/config/algorithm/YamlShardingSphereAlgorithmConfiguration.java
focal_class.identifier: YamlShardingSphereAlgorithmConfiguration
focal_class.interfaces: implements YamlConfiguration
focal_class.class_method_signature: YamlShardingSphereAlgorithmConfiguration.buildByTypedSPI(final TypedSPI value)
focal_class.full_signature: public static YamlShardingSphereAlgorithmConfiguration buildByTypedSPI(final TypedSPI value)
focal_class.identifier: buildByTypedSPI
focal_class.modifiers: public static
focal_class.parameters: (final TypedSPI value)
focal_class.return: YamlShardingSphereAlgorithmConfiguration
focal_class.signature: YamlShardingSphereAlgorithmConfiguration buildByTypedSPI(final TypedSPI value)
focal_method.body: public static YamlShardingSphereAlgorithmConfiguration buildByTypedSPI(final TypedSPI value) {
          YamlShardingSphereAlgorithmConfiguration result = new YamlShardingSphereAlgorithmConfiguration();
          result.setType(value.getType());
          result.setProps(value.getProps());
          return result;
      }
focal_method.class_method_signature: YamlShardingSphereAlgorithmConfiguration.buildByTypedSPI(final TypedSPI value)
focal_method.full_signature: public static YamlShardingSphereAlgorithmConfiguration buildByTypedSPI(final TypedSPI value)
focal_method.identifier: buildByTypedSPI
focal_method.invocations: setType getType setProps getProps
focal_method.modifiers: public static
focal_method.parameters: (final TypedSPI value)
focal_method.return: YamlShardingSphereAlgorithmConfiguration
focal_method.signature: YamlShardingSphereAlgorithmConfiguration buildByTypedSPI(final TypedSPI value)