test_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-facade/src/test/java/org/apache/shardingsphere/governance/core/facade/repository/GovernanceRepositoryFacadeTest.java
test_class.identifier: GovernanceRepositoryFacadeTest
test_case.body: @Test
      public void assertCloseWithAdditionalConfigurationRepository() {
          GovernanceRepositoryFacade actual = new GovernanceRepositoryFacade(new GovernanceConfiguration("test",
                  new GovernanceCenterConfiguration("ALL", "127.0.0.1:8888", new Properties()), new GovernanceCenterConfiguration("CONFIG", "127.0.0.1:9999", new Properties()), true));
          RegistryRepository registryRepository = mock(RegistryRepository.class);
          ConfigurationRepository configurationRepository = mock(ConfigurationRepository.class);
          FieldUtil.setField(actual, "registryRepository", registryRepository);
          FieldUtil.setField(actual, "configurationRepository", configurationRepository);
          actual.close();
          verify(registryRepository).close();
          verify(configurationRepository).close();
      }
test_case.class_method_signature: GovernanceRepositoryFacadeTest.assertCloseWithAdditionalConfigurationRepository()
test_case.full_signature: @Test public void assertCloseWithAdditionalConfigurationRepository()
test_case.identifier: assertCloseWithAdditionalConfigurationRepository
test_case.invocations: mock mock setField setField close close verify close verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertCloseWithAdditionalConfigurationRepository()
focal_class.declarator: registryRepository
focal_class.modifier: private final
focal_class.original_string: private final RegistryRepository registryRepository;
focal_class.type: RegistryRepository
focal_class.var_name: registryRepository
focal_class.declarator: configurationRepository
focal_class.modifier: private final
focal_class.original_string: private final ConfigurationRepository configurationRepository;
focal_class.type: ConfigurationRepository
focal_class.var_name: configurationRepository
focal_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-facade/src/main/java/org/apache/shardingsphere/governance/core/facade/repository/GovernanceRepositoryFacade.java
focal_class.identifier: GovernanceRepositoryFacade
focal_class.interfaces: implements AutoCloseable
focal_class.class_method_signature: GovernanceRepositoryFacade.GovernanceRepositoryFacade(final GovernanceConfiguration config)
focal_class.full_signature: public  GovernanceRepositoryFacade(final GovernanceConfiguration config)
focal_class.identifier: GovernanceRepositoryFacade
focal_class.modifiers: public
focal_class.parameters: (final GovernanceConfiguration config)
focal_class.signature:  GovernanceRepositoryFacade(final GovernanceConfiguration config)
focal_class.class_method_signature: GovernanceRepositoryFacade.createRegistryRepository(final GovernanceConfiguration config)
focal_class.full_signature: private RegistryRepository createRegistryRepository(final GovernanceConfiguration config)
focal_class.identifier: createRegistryRepository
focal_class.modifiers: private
focal_class.parameters: (final GovernanceConfiguration config)
focal_class.return: RegistryRepository
focal_class.signature: RegistryRepository createRegistryRepository(final GovernanceConfiguration config)
focal_class.class_method_signature: GovernanceRepositoryFacade.createConfigurationRepository(final GovernanceConfiguration config)
focal_class.full_signature: private ConfigurationRepository createConfigurationRepository(final GovernanceConfiguration config)
focal_class.identifier: createConfigurationRepository
focal_class.modifiers: private
focal_class.parameters: (final GovernanceConfiguration config)
focal_class.return: ConfigurationRepository
focal_class.signature: ConfigurationRepository createConfigurationRepository(final GovernanceConfiguration config)
focal_class.class_method_signature: GovernanceRepositoryFacade.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: @Override
      public void close() {
          registryRepository.close();
          if (registryRepository != configurationRepository) {
              configurationRepository.close();
          }
      }
focal_method.class_method_signature: GovernanceRepositoryFacade.close()
focal_method.full_signature: @Override public void close()
focal_method.identifier: close
focal_method.invocations: close close
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void close()