test_class.declarator: registryRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RegistryRepository registryRepository;
test_class.type: RegistryRepository
test_class.var_name: registryRepository
test_class.declarator: instanceStateChangedListener
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private InstanceStateChangedListener instanceStateChangedListener;
test_class.type: InstanceStateChangedListener
test_class.var_name: instanceStateChangedListener
test_class.declarator: dataSourceStateChangedListener
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataSourceStateChangedListener dataSourceStateChangedListener;
test_class.type: DataSourceStateChangedListener
test_class.var_name: dataSourceStateChangedListener
test_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-registry/src/test/java/org/apache/shardingsphere/governance/core/registry/listener/RegistryListenerManagerTest.java
test_class.identifier: RegistryListenerManagerTest
test_case.body: @Test
      public void assertInitListeners() {
          RegistryListenerManager actual = new RegistryListenerManager(registryRepository, Arrays.asList("sharding_db", "primary_replica_replication_db", "encrypt_db"));
          FieldUtil.setField(actual, "instanceStateChangedListener", instanceStateChangedListener);
          FieldUtil.setField(actual, "dataSourceStateChangedListener", dataSourceStateChangedListener);
          actual.initListeners();
          verify(instanceStateChangedListener).watch(ChangedType.UPDATED);
          verify(dataSourceStateChangedListener).watch(ChangedType.UPDATED, ChangedType.DELETED, ChangedType.ADDED);
      }
test_case.class_method_signature: RegistryListenerManagerTest.assertInitListeners()
test_case.full_signature: @Test public void assertInitListeners()
test_case.identifier: assertInitListeners
test_case.invocations: asList setField setField initListeners watch verify watch verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertInitListeners()
focal_class.declarator: instanceStateChangedListener
focal_class.modifier: private final
focal_class.original_string: private final InstanceStateChangedListener instanceStateChangedListener;
focal_class.type: InstanceStateChangedListener
focal_class.var_name: instanceStateChangedListener
focal_class.declarator: dataSourceStateChangedListener
focal_class.modifier: private final
focal_class.original_string: private final DataSourceStateChangedListener dataSourceStateChangedListener;
focal_class.type: DataSourceStateChangedListener
focal_class.var_name: dataSourceStateChangedListener
focal_class.file: shardingsphere-governance/shardingsphere-governance-core/shardingsphere-governance-core-registry/src/main/java/org/apache/shardingsphere/governance/core/registry/listener/RegistryListenerManager.java
focal_class.identifier: RegistryListenerManager
focal_class.class_method_signature: RegistryListenerManager.RegistryListenerManager(final RegistryRepository registryRepository, final Collection<String> schemaNames)
focal_class.full_signature: public  RegistryListenerManager(final RegistryRepository registryRepository, final Collection<String> schemaNames)
focal_class.identifier: RegistryListenerManager
focal_class.modifiers: public
focal_class.parameters: (final RegistryRepository registryRepository, final Collection<String> schemaNames)
focal_class.signature:  RegistryListenerManager(final RegistryRepository registryRepository, final Collection<String> schemaNames)
focal_class.class_method_signature: RegistryListenerManager.initListeners()
focal_class.full_signature: public void initListeners()
focal_class.identifier: initListeners
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initListeners()
focal_method.body: public void initListeners() {
          instanceStateChangedListener.watch(ChangedType.UPDATED);
          dataSourceStateChangedListener.watch(ChangedType.UPDATED, ChangedType.DELETED, ChangedType.ADDED);
      }
focal_method.class_method_signature: RegistryListenerManager.initListeners()
focal_method.full_signature: public void initListeners()
focal_method.identifier: initListeners
focal_method.invocations: watch watch
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void initListeners()