test_class.declarator: registryFactory = ExtensionLoader.getExtensionLoader(RegistryFactory.class).getAdaptiveExtension()
test_class.modifier: private
test_class.original_string: private RegistryFactory registryFactory = ExtensionLoader.getExtensionLoader(RegistryFactory.class).getAdaptiveExtension();
test_class.type: RegistryFactory
test_class.var_name: registryFactory
test_class.file: dubbo-registry/dubbo-registry-api/src/test/java/org/apache/dubbo/registry/RegistryFactoryWrapperTest.java
test_class.identifier: RegistryFactoryWrapperTest
test_case.body: @Test
      public void test() throws Exception {
          RegistryServiceListener listener1 = Mockito.mock(RegistryServiceListener.class);
          RegistryServiceListener1.delegate = listener1;
          RegistryServiceListener listener2 = Mockito.mock(RegistryServiceListener.class);
          RegistryServiceListener2.delegate = listener2;
  
          Registry registry = registryFactory.getRegistry(URL.valueOf("simple://localhost:8080/registry-service"));
          URL url = URL.valueOf("dubbo://localhost:8081/simple.service");
          registry.register(url);
  
          Mockito.verify(listener1, Mockito.times(1)).onRegister(url);
          Mockito.verify(listener2, Mockito.times(1)).onRegister(url);
  
          registry.unregister(url);
          Mockito.verify(listener1, Mockito.times(1)).onUnregister(url);
          Mockito.verify(listener2, Mockito.times(1)).onUnregister(url);
  
          registry.subscribe(url, Mockito.mock(NotifyListener.class));
          Mockito.verify(listener1, Mockito.times(1)).onSubscribe(url);
          Mockito.verify(listener2, Mockito.times(1)).onSubscribe(url);
  
          registry.unsubscribe(url, Mockito.mock(NotifyListener.class));
          Mockito.verify(listener1, Mockito.times(1)).onUnsubscribe(url);
          Mockito.verify(listener2, Mockito.times(1)).onUnsubscribe(url);
      }
test_case.class_method_signature: RegistryFactoryWrapperTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: mock mock getRegistry valueOf valueOf register onRegister verify times onRegister verify times unregister onUnregister verify times onUnregister verify times subscribe mock onSubscribe verify times onSubscribe verify times unsubscribe mock onUnsubscribe verify times onUnsubscribe verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: registryFactory
focal_class.modifier: private
focal_class.original_string: private RegistryFactory registryFactory;
focal_class.type: RegistryFactory
focal_class.var_name: registryFactory
focal_class.file: dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/RegistryFactoryWrapper.java
focal_class.identifier: RegistryFactoryWrapper
focal_class.interfaces: implements RegistryFactory
focal_class.class_method_signature: RegistryFactoryWrapper.RegistryFactoryWrapper(RegistryFactory registryFactory)
focal_class.full_signature: public  RegistryFactoryWrapper(RegistryFactory registryFactory)
focal_class.identifier: RegistryFactoryWrapper
focal_class.modifiers: public
focal_class.parameters: (RegistryFactory registryFactory)
focal_class.signature:  RegistryFactoryWrapper(RegistryFactory registryFactory)
focal_class.class_method_signature: RegistryFactoryWrapper.getRegistry(URL url)
focal_class.full_signature: @Override public Registry getRegistry(URL url)
focal_class.identifier: getRegistry
focal_class.modifiers: @Override public
focal_class.parameters: (URL url)
focal_class.return: Registry
focal_class.signature: Registry getRegistry(URL url)
focal_method.body: @Override
      public Registry getRegistry(URL url) {
          return new ListenerRegistryWrapper(registryFactory.getRegistry(url),
                  Collections.unmodifiableList(ExtensionLoader.getExtensionLoader(RegistryServiceListener.class)
                          .getActivateExtension(url, "registry.listeners")));
      }
focal_method.class_method_signature: RegistryFactoryWrapper.getRegistry(URL url)
focal_method.full_signature: @Override public Registry getRegistry(URL url)
focal_method.identifier: getRegistry
focal_method.invocations: getRegistry unmodifiableList getActivateExtension getExtensionLoader
focal_method.modifiers: @Override public
focal_method.parameters: (URL url)
focal_method.return: Registry
focal_method.signature: Registry getRegistry(URL url)