test_class.file: dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/AbstractMethodBuilderTest.java
test_class.identifier: AbstractMethodBuilderTest
test_case.body: @Test
      void build() {
          MethodBuilder builder = new MethodBuilder();
          builder.id("id").prefix("prefix").timeout(1).retries(2).actives(3).loadbalance("mockloadbalance").async(true)
                  .sent(false).mock("mock").merger("merger").cache("cache").validation("validation")
                  .appendParameter("default.num", "one");
  
          MethodConfig config = builder.build();
          MethodConfig config2 = builder.build();
  
          Assertions.assertEquals("id", config.getId());
          Assertions.assertEquals("prefix", config.getPrefix());
          Assertions.assertEquals(1, config.getTimeout());
          Assertions.assertEquals(2, config.getRetries());
          Assertions.assertEquals(3, config.getActives());
          Assertions.assertEquals("mockloadbalance", config.getLoadbalance());
          Assertions.assertTrue(config.isAsync());
          Assertions.assertFalse(config.getSent());
          Assertions.assertEquals("mock", config.getMock());
          Assertions.assertEquals("merger", config.getMerger());
          Assertions.assertEquals("cache", config.getCache());
          Assertions.assertEquals("validation", config.getValidation());
          Assertions.assertTrue(config.getParameters().containsKey("default.num"));
          Assertions.assertEquals("one", config.getParameters().get("default.num"));
  
          Assertions.assertNotSame(config, config2);
  
      }
test_case.class_method_signature: AbstractMethodBuilderTest.build()
test_case.full_signature: @Test void build()
test_case.identifier: build
test_case.invocations: appendParameter validation cache merger mock sent async loadbalance actives retries timeout prefix id build build assertEquals getId assertEquals getPrefix assertEquals getTimeout assertEquals getRetries assertEquals getActives assertEquals getLoadbalance assertTrue isAsync assertFalse getSent assertEquals getMock assertEquals getMerger assertEquals getCache assertEquals getValidation assertTrue containsKey getParameters assertEquals get getParameters assertNotSame
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void build()
focal_class.declarator: timeout
focal_class.modifier: protected
focal_class.original_string: protected Integer timeout;
focal_class.type: Integer
focal_class.var_name: timeout
focal_class.declarator: retries
focal_class.modifier: protected
focal_class.original_string: protected Integer retries;
focal_class.type: Integer
focal_class.var_name: retries
focal_class.declarator: actives
focal_class.modifier: protected
focal_class.original_string: protected Integer actives;
focal_class.type: Integer
focal_class.var_name: actives
focal_class.declarator: loadbalance
focal_class.modifier: protected
focal_class.original_string: protected String loadbalance;
focal_class.type: String
focal_class.var_name: loadbalance
focal_class.declarator: async
focal_class.modifier: protected
focal_class.original_string: protected Boolean async;
focal_class.type: Boolean
focal_class.var_name: async
focal_class.declarator: sent
focal_class.modifier: protected
focal_class.original_string: protected Boolean sent;
focal_class.type: Boolean
focal_class.var_name: sent
focal_class.declarator: mock
focal_class.modifier: protected
focal_class.original_string: protected String mock;
focal_class.type: String
focal_class.var_name: mock
focal_class.declarator: merger
focal_class.modifier: protected
focal_class.original_string: protected String merger;
focal_class.type: String
focal_class.var_name: merger
focal_class.declarator: cache
focal_class.modifier: protected
focal_class.original_string: protected String cache;
focal_class.type: String
focal_class.var_name: cache
focal_class.declarator: validation
focal_class.modifier: protected
focal_class.original_string: protected String validation;
focal_class.type: String
focal_class.var_name: validation
focal_class.declarator: parameters
focal_class.modifier: protected
focal_class.original_string: protected Map<String, String> parameters;
focal_class.type: Map<String, String>
focal_class.var_name: parameters
focal_class.declarator: forks
focal_class.modifier: protected
focal_class.original_string: protected Integer forks;
focal_class.type: Integer
focal_class.var_name: forks
focal_class.file: dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/builders/AbstractMethodBuilder.java
focal_class.identifier: AbstractMethodBuilder
focal_class.class_method_signature: AbstractMethodBuilder.timeout(Integer timeout)
focal_class.full_signature: public B timeout(Integer timeout)
focal_class.identifier: timeout
focal_class.modifiers: public
focal_class.parameters: (Integer timeout)
focal_class.return: B
focal_class.signature: B timeout(Integer timeout)
focal_class.class_method_signature: AbstractMethodBuilder.retries(Integer retries)
focal_class.full_signature: public B retries(Integer retries)
focal_class.identifier: retries
focal_class.modifiers: public
focal_class.parameters: (Integer retries)
focal_class.return: B
focal_class.signature: B retries(Integer retries)
focal_class.class_method_signature: AbstractMethodBuilder.actives(Integer actives)
focal_class.full_signature: public B actives(Integer actives)
focal_class.identifier: actives
focal_class.modifiers: public
focal_class.parameters: (Integer actives)
focal_class.return: B
focal_class.signature: B actives(Integer actives)
focal_class.class_method_signature: AbstractMethodBuilder.loadbalance(String loadbalance)
focal_class.full_signature: public B loadbalance(String loadbalance)
focal_class.identifier: loadbalance
focal_class.modifiers: public
focal_class.parameters: (String loadbalance)
focal_class.return: B
focal_class.signature: B loadbalance(String loadbalance)
focal_class.class_method_signature: AbstractMethodBuilder.async(Boolean async)
focal_class.full_signature: public B async(Boolean async)
focal_class.identifier: async
focal_class.modifiers: public
focal_class.parameters: (Boolean async)
focal_class.return: B
focal_class.signature: B async(Boolean async)
focal_class.class_method_signature: AbstractMethodBuilder.sent(Boolean sent)
focal_class.full_signature: public B sent(Boolean sent)
focal_class.identifier: sent
focal_class.modifiers: public
focal_class.parameters: (Boolean sent)
focal_class.return: B
focal_class.signature: B sent(Boolean sent)
focal_class.class_method_signature: AbstractMethodBuilder.mock(String mock)
focal_class.full_signature: public B mock(String mock)
focal_class.identifier: mock
focal_class.modifiers: public
focal_class.parameters: (String mock)
focal_class.return: B
focal_class.signature: B mock(String mock)
focal_class.class_method_signature: AbstractMethodBuilder.mock(Boolean mock)
focal_class.full_signature: public B mock(Boolean mock)
focal_class.identifier: mock
focal_class.modifiers: public
focal_class.parameters: (Boolean mock)
focal_class.return: B
focal_class.signature: B mock(Boolean mock)
focal_class.class_method_signature: AbstractMethodBuilder.merger(String merger)
focal_class.full_signature: public B merger(String merger)
focal_class.identifier: merger
focal_class.modifiers: public
focal_class.parameters: (String merger)
focal_class.return: B
focal_class.signature: B merger(String merger)
focal_class.class_method_signature: AbstractMethodBuilder.cache(String cache)
focal_class.full_signature: public B cache(String cache)
focal_class.identifier: cache
focal_class.modifiers: public
focal_class.parameters: (String cache)
focal_class.return: B
focal_class.signature: B cache(String cache)
focal_class.class_method_signature: AbstractMethodBuilder.validation(String validation)
focal_class.full_signature: public B validation(String validation)
focal_class.identifier: validation
focal_class.modifiers: public
focal_class.parameters: (String validation)
focal_class.return: B
focal_class.signature: B validation(String validation)
focal_class.class_method_signature: AbstractMethodBuilder.appendParameters(Map<String, String> appendParameters)
focal_class.full_signature: public B appendParameters(Map<String, String> appendParameters)
focal_class.identifier: appendParameters
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> appendParameters)
focal_class.return: B
focal_class.signature: B appendParameters(Map<String, String> appendParameters)
focal_class.class_method_signature: AbstractMethodBuilder.appendParameter(String key, String value)
focal_class.full_signature: public B appendParameter(String key, String value)
focal_class.identifier: appendParameter
focal_class.modifiers: public
focal_class.parameters: (String key, String value)
focal_class.return: B
focal_class.signature: B appendParameter(String key, String value)
focal_class.class_method_signature: AbstractMethodBuilder.forks(Integer forks)
focal_class.full_signature: public B forks(Integer forks)
focal_class.identifier: forks
focal_class.modifiers: public
focal_class.parameters: (Integer forks)
focal_class.return: B
focal_class.signature: B forks(Integer forks)
focal_class.class_method_signature: AbstractMethodBuilder.build(T instance)
focal_class.full_signature: @Override @SuppressWarnings("unchecked") public void build(T instance)
focal_class.identifier: build
focal_class.modifiers: @Override @SuppressWarnings("unchecked") public
focal_class.parameters: (T instance)
focal_class.return: void
focal_class.signature: void build(T instance)
focal_class.superclass: extends AbstractBuilder<T, B>
focal_method.body: @Override
      @SuppressWarnings("unchecked")
      public void build(T instance) {
          super.build(instance);
  
          if (actives != null) {
              instance.setActives(actives);
          }
          if (async != null) {
              instance.setAsync(async);
          }
          if (!StringUtils.isEmpty(cache)) {
              instance.setCache(cache);
          }
          if (forks != null) {
              instance.setForks(forks);
          }
          if (!StringUtils.isEmpty(loadbalance)) {
              instance.setLoadbalance(loadbalance);
          }
          if (!StringUtils.isEmpty(merger)) {
              instance.setMerger(merger);
          }
          if(!StringUtils.isEmpty(mock)) {
              instance.setMock(mock);
          }
          if (retries != null) {
              instance.setRetries(retries);
          }
          if (sent != null) {
              instance.setSent(sent);
          }
          if (timeout != null) {
              instance.setTimeout(timeout);
          }
          if (!StringUtils.isEmpty(validation)) {
              instance.setValidation(validation);
          }
          if (parameters != null) {
              instance.setParameters(parameters);
          }
      }
focal_method.class_method_signature: AbstractMethodBuilder.build(T instance)
focal_method.full_signature: @Override @SuppressWarnings("unchecked") public void build(T instance)
focal_method.identifier: build
focal_method.invocations: build setActives setAsync isEmpty setCache setForks isEmpty setLoadbalance isEmpty setMerger isEmpty setMock setRetries setSent setTimeout isEmpty setValidation setParameters
focal_method.modifiers: @Override @SuppressWarnings("unchecked") public
focal_method.parameters: (T instance)
focal_method.return: void
focal_method.signature: void build(T instance)