test_class.file: dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/builders/ModuleBuilderTest.java
test_class.identifier: ModuleBuilderTest
test_case.body: @Test
      void build() {
          RegistryConfig registry = new RegistryConfig();
          MonitorConfig monitor = new MonitorConfig();
  
          ModuleBuilder builder = new ModuleBuilder();
          builder.name("name").version("version").owner("owner").organization("organization").addRegistry(registry)
                  .monitor(monitor).isDefault(false);
  
          ModuleConfig config = builder.build();
          ModuleConfig config2 = builder.build();
  
          Assertions.assertEquals("name", config.getName());
          Assertions.assertEquals("version", config.getVersion());
          Assertions.assertEquals("owner", config.getOwner());
          Assertions.assertEquals("organization", config.getOrganization());
          Assertions.assertTrue(builder.build().getRegistries().contains(registry));
          Assertions.assertSame(monitor, builder.build().getMonitor());
          Assertions.assertFalse(config.isDefault());
          Assertions.assertNotSame(config, config2);
      }
test_case.class_method_signature: ModuleBuilderTest.build()
test_case.full_signature: @Test void build()
test_case.identifier: build
test_case.invocations: isDefault monitor addRegistry organization owner version name build build assertEquals getName assertEquals getVersion assertEquals getOwner assertEquals getOrganization assertTrue contains getRegistries build assertSame getMonitor build assertFalse isDefault assertNotSame
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void build()
focal_class.declarator: name
focal_class.modifier: private
focal_class.original_string: private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: version
focal_class.modifier: private
focal_class.original_string: private String version;
focal_class.type: String
focal_class.var_name: version
focal_class.declarator: owner
focal_class.modifier: private
focal_class.original_string: private String owner;
focal_class.type: String
focal_class.var_name: owner
focal_class.declarator: organization
focal_class.modifier: private
focal_class.original_string: private String organization;
focal_class.type: String
focal_class.var_name: organization
focal_class.declarator: registries
focal_class.modifier: private
focal_class.original_string: private List<RegistryConfig> registries;
focal_class.type: List<RegistryConfig>
focal_class.var_name: registries
focal_class.declarator: monitor
focal_class.modifier: private
focal_class.original_string: private MonitorConfig monitor;
focal_class.type: MonitorConfig
focal_class.var_name: monitor
focal_class.declarator: isDefault
focal_class.modifier: private
focal_class.original_string: private Boolean isDefault;
focal_class.type: Boolean
focal_class.var_name: isDefault
focal_class.file: dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/builders/ModuleBuilder.java
focal_class.identifier: ModuleBuilder
focal_class.class_method_signature: ModuleBuilder.name(String name)
focal_class.full_signature: public ModuleBuilder name(String name)
focal_class.identifier: name
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder name(String name)
focal_class.class_method_signature: ModuleBuilder.version(String version)
focal_class.full_signature: public ModuleBuilder version(String version)
focal_class.identifier: version
focal_class.modifiers: public
focal_class.parameters: (String version)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder version(String version)
focal_class.class_method_signature: ModuleBuilder.owner(String owner)
focal_class.full_signature: public ModuleBuilder owner(String owner)
focal_class.identifier: owner
focal_class.modifiers: public
focal_class.parameters: (String owner)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder owner(String owner)
focal_class.class_method_signature: ModuleBuilder.organization(String organization)
focal_class.full_signature: public ModuleBuilder organization(String organization)
focal_class.identifier: organization
focal_class.modifiers: public
focal_class.parameters: (String organization)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder organization(String organization)
focal_class.class_method_signature: ModuleBuilder.addRegistries(List<? extends RegistryConfig> registries)
focal_class.full_signature: public ModuleBuilder addRegistries(List<? extends RegistryConfig> registries)
focal_class.identifier: addRegistries
focal_class.modifiers: public
focal_class.parameters: (List<? extends RegistryConfig> registries)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder addRegistries(List<? extends RegistryConfig> registries)
focal_class.class_method_signature: ModuleBuilder.addRegistry(RegistryConfig registry)
focal_class.full_signature: public ModuleBuilder addRegistry(RegistryConfig registry)
focal_class.identifier: addRegistry
focal_class.modifiers: public
focal_class.parameters: (RegistryConfig registry)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder addRegistry(RegistryConfig registry)
focal_class.class_method_signature: ModuleBuilder.monitor(MonitorConfig monitor)
focal_class.full_signature: public ModuleBuilder monitor(MonitorConfig monitor)
focal_class.identifier: monitor
focal_class.modifiers: public
focal_class.parameters: (MonitorConfig monitor)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder monitor(MonitorConfig monitor)
focal_class.class_method_signature: ModuleBuilder.isDefault(Boolean isDefault)
focal_class.full_signature: public ModuleBuilder isDefault(Boolean isDefault)
focal_class.identifier: isDefault
focal_class.modifiers: public
focal_class.parameters: (Boolean isDefault)
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder isDefault(Boolean isDefault)
focal_class.class_method_signature: ModuleBuilder.build()
focal_class.full_signature: public ModuleConfig build()
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ModuleConfig
focal_class.signature: ModuleConfig build()
focal_class.class_method_signature: ModuleBuilder.getThis()
focal_class.full_signature: @Override protected ModuleBuilder getThis()
focal_class.identifier: getThis
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: ModuleBuilder
focal_class.signature: ModuleBuilder getThis()
focal_class.superclass: extends AbstractBuilder<ModuleConfig, ModuleBuilder>
focal_method.body: public ModuleConfig build() {
          ModuleConfig moduleConfig = new ModuleConfig();
          super.build(moduleConfig);
  
          moduleConfig.setDefault(isDefault);
          moduleConfig.setMonitor(monitor);
          moduleConfig.setName(name);
          moduleConfig.setOrganization(organization);
          moduleConfig.setOwner(owner);
          moduleConfig.setRegistries(registries);
          moduleConfig.setVersion(version);
  
          return moduleConfig;
      }
focal_method.class_method_signature: ModuleBuilder.build()
focal_method.full_signature: public ModuleConfig build()
focal_method.identifier: build
focal_method.invocations: build setDefault setMonitor setName setOrganization setOwner setRegistries setVersion
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: ModuleConfig
focal_method.signature: ModuleConfig build()