test_class.declarator: dubboConfigBinder
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private DubboConfigBinder dubboConfigBinder;
test_class.type: DubboConfigBinder
test_class.var_name: dubboConfigBinder
test_class.declarator: isDefault
test_class.modifier: @Value("${dubbo.consumer.default}")
      private
test_class.original_string: @Value("${dubbo.consumer.default}")
      private Boolean isDefault;
test_class.type: Boolean
test_class.var_name: isDefault
test_class.declarator: client
test_class.modifier: @Value("${dubbo.consumer.client}")
      private
test_class.original_string: @Value("${dubbo.consumer.client}")
      private String client;
test_class.type: String
test_class.var_name: client
test_class.declarator: threadPool
test_class.modifier: @Value("${dubbo.consumer.threadpool}")
      private
test_class.original_string: @Value("${dubbo.consumer.threadpool}")
      private String threadPool;
test_class.type: String
test_class.var_name: threadPool
test_class.declarator: coreThreads
test_class.modifier: @Value("${dubbo.consumer.corethreads}")
      private
test_class.original_string: @Value("${dubbo.consumer.corethreads}")
      private Integer coreThreads;
test_class.type: Integer
test_class.var_name: coreThreads
test_class.declarator: threads
test_class.modifier: @Value("${dubbo.consumer.threads}")
      private
test_class.original_string: @Value("${dubbo.consumer.threads}")
      private Integer threads;
test_class.type: Integer
test_class.var_name: threads
test_class.declarator: queues
test_class.modifier: @Value("${dubbo.consumer.queues}")
      private
test_class.original_string: @Value("${dubbo.consumer.queues}")
      private Integer queues;
test_class.type: Integer
test_class.var_name: queues
test_class.file: dubbo-config/dubbo-config-spring/src/test/java/com/alibaba/dubbo/config/spring/context/properties/DefaultDubboConfigBinderTest.java
test_class.identifier: DefaultDubboConfigBinderTest
test_case.body: @Test
      public void testBinder() {
  
          ApplicationConfig applicationConfig = new ApplicationConfig();
          dubboConfigBinder.bind("dubbo.application", applicationConfig);
          Assert.assertEquals("hello", applicationConfig.getName());
          Assert.assertEquals("world", applicationConfig.getOwner());
  
          RegistryConfig registryConfig = new RegistryConfig();
          dubboConfigBinder.bind("dubbo.registry", registryConfig);
          Assert.assertEquals("10.20.153.17", registryConfig.getAddress());
  
          ProtocolConfig protocolConfig = new ProtocolConfig();
          dubboConfigBinder.bind("dubbo.protocol", protocolConfig);
          Assert.assertEquals(Integer.valueOf(20881), protocolConfig.getPort());
  
          ConsumerConfig consumerConfig = new ConsumerConfig();
          dubboConfigBinder.bind("dubbo.consumer", consumerConfig);
  
          Assert.assertEquals(isDefault, consumerConfig.isDefault());
          Assert.assertEquals(client, consumerConfig.getClient());
          Assert.assertEquals(threadPool, consumerConfig.getThreadpool());
          Assert.assertEquals(coreThreads, consumerConfig.getCorethreads());
          Assert.assertEquals(threads, consumerConfig.getThreads());
          Assert.assertEquals(queues, consumerConfig.getQueues());
      }
test_case.class_method_signature: DefaultDubboConfigBinderTest.testBinder()
test_case.full_signature: @Test public void testBinder()
test_case.identifier: testBinder
test_case.invocations: bind assertEquals getName assertEquals getOwner bind assertEquals getAddress bind assertEquals valueOf getPort bind assertEquals isDefault assertEquals getClient assertEquals getThreadpool assertEquals getCorethreads assertEquals getThreads assertEquals getQueues
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBinder()
focal_class.file: dubbo-config/dubbo-config-spring/src/main/java/com/alibaba/dubbo/config/spring/context/properties/DefaultDubboConfigBinder.java
focal_class.identifier: DefaultDubboConfigBinder
focal_class.class_method_signature: DefaultDubboConfigBinder.bind(String prefix, C dubboConfig)
focal_class.full_signature: @Override public void bind(String prefix, C dubboConfig)
focal_class.identifier: bind
focal_class.modifiers: @Override public
focal_class.parameters: (String prefix, C dubboConfig)
focal_class.return: void
focal_class.signature: void bind(String prefix, C dubboConfig)
focal_class.superclass: extends AbstractDubboConfigBinder
focal_method.body: @Override
      public <C extends AbstractConfig> void bind(String prefix, C dubboConfig) {
          DataBinder dataBinder = new DataBinder(dubboConfig);
          // Set ignored*
          dataBinder.setIgnoreInvalidFields(isIgnoreInvalidFields());
          dataBinder.setIgnoreUnknownFields(isIgnoreUnknownFields());
          // Get properties under specified prefix from PropertySources
          Map<String, Object> properties = getSubProperties(getPropertySources(), prefix);
          // Convert Map to MutablePropertyValues
          MutablePropertyValues propertyValues = new MutablePropertyValues(properties);
          // Bind
          dataBinder.bind(propertyValues);
      }
focal_method.class_method_signature: DefaultDubboConfigBinder.bind(String prefix, C dubboConfig)
focal_method.full_signature: @Override public void bind(String prefix, C dubboConfig)
focal_method.identifier: bind
focal_method.invocations: setIgnoreInvalidFields isIgnoreInvalidFields setIgnoreUnknownFields isIgnoreUnknownFields getSubProperties getPropertySources bind
focal_method.modifiers: @Override public
focal_method.parameters: (String prefix, C dubboConfig)
focal_method.return: void
focal_method.signature: void bind(String prefix, C dubboConfig)