test_class.declarator: ITEM_NAME = "itemName"
test_class.modifier: private static final
test_class.original_string: private static final String ITEM_NAME = "itemName";
test_class.type: String
test_class.var_name: ITEM_NAME
test_class.declarator: managedProviderRef
test_class.modifier: @SuppressWarnings("rawtypes")
      private @Mock
test_class.original_string: @SuppressWarnings("rawtypes")
      private @Mock ServiceReference managedProviderRef;
test_class.type: ServiceReference
test_class.var_name: managedProviderRef
test_class.declarator: bundleContext
test_class.modifier: private @Mock
test_class.original_string: private @Mock BundleContext bundleContext;
test_class.type: BundleContext
test_class.var_name: bundleContext
test_class.declarator: managedProvider
test_class.modifier: private @Mock
test_class.original_string: private @Mock ManagedMetadataProvider managedProvider;
test_class.type: ManagedMetadataProvider
test_class.var_name: managedProvider
test_class.declarator: registry
test_class.modifier: private
test_class.original_string: private MetadataRegistryImpl registry;
test_class.type: MetadataRegistryImpl
test_class.var_name: registry
test_class.declarator: providerTracker
test_class.modifier: private
test_class.original_string: private ServiceListener providerTracker;
test_class.type: ServiceListener
test_class.var_name: providerTracker
test_class.file: bundles/org.openhab.core/src/test/java/org/openhab/core/internal/items/MetadataRegistryImplTest.java
test_class.identifier: MetadataRegistryImplTest
test_case.body: @Test
      public void testRemoveItemMetadata() {
          ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);
  
          registry.removeItemMetadata("itemName");
  
          verify(managedProvider).removeItemMetadata(captor.capture());
          assertEquals("itemName", captor.getValue());
      }
test_case.class_method_signature: MetadataRegistryImplTest.testRemoveItemMetadata()
test_case.full_signature: @Test public void testRemoveItemMetadata()
test_case.identifier: testRemoveItemMetadata
test_case.invocations: forClass removeItemMetadata removeItemMetadata verify capture assertEquals getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRemoveItemMetadata()
focal_class.file: bundles/org.openhab.core/src/main/java/org/openhab/core/internal/items/MetadataRegistryImpl.java
focal_class.identifier: MetadataRegistryImpl
focal_class.interfaces: implements MetadataRegistry
focal_class.class_method_signature: MetadataRegistryImpl.MetadataRegistryImpl()
focal_class.full_signature: public  MetadataRegistryImpl()
focal_class.identifier: MetadataRegistryImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  MetadataRegistryImpl()
focal_class.class_method_signature: MetadataRegistryImpl.activate(BundleContext context)
focal_class.full_signature: @Override @Activate protected void activate(BundleContext context)
focal_class.identifier: activate
focal_class.modifiers: @Override @Activate protected
focal_class.parameters: (BundleContext context)
focal_class.return: void
focal_class.signature: void activate(BundleContext context)
focal_class.class_method_signature: MetadataRegistryImpl.deactivate()
focal_class.full_signature: @Override @Deactivate protected void deactivate()
focal_class.identifier: deactivate
focal_class.modifiers: @Override @Deactivate protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deactivate()
focal_class.class_method_signature: MetadataRegistryImpl.isInternalNamespace(String namespace)
focal_class.full_signature: @Override public boolean isInternalNamespace(String namespace)
focal_class.identifier: isInternalNamespace
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace)
focal_class.return: boolean
focal_class.signature: boolean isInternalNamespace(String namespace)
focal_class.class_method_signature: MetadataRegistryImpl.setEventPublisher(EventPublisher eventPublisher)
focal_class.full_signature: @Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC) @Override protected void setEventPublisher(EventPublisher eventPublisher)
focal_class.identifier: setEventPublisher
focal_class.modifiers: @Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC) @Override protected
focal_class.parameters: (EventPublisher eventPublisher)
focal_class.return: void
focal_class.signature: void setEventPublisher(EventPublisher eventPublisher)
focal_class.class_method_signature: MetadataRegistryImpl.unsetEventPublisher(EventPublisher eventPublisher)
focal_class.full_signature: @Override protected void unsetEventPublisher(EventPublisher eventPublisher)
focal_class.identifier: unsetEventPublisher
focal_class.modifiers: @Override protected
focal_class.parameters: (EventPublisher eventPublisher)
focal_class.return: void
focal_class.signature: void unsetEventPublisher(EventPublisher eventPublisher)
focal_class.class_method_signature: MetadataRegistryImpl.setManagedProvider(ManagedMetadataProvider provider)
focal_class.full_signature: @Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC) protected void setManagedProvider(ManagedMetadataProvider provider)
focal_class.identifier: setManagedProvider
focal_class.modifiers: @Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC) protected
focal_class.parameters: (ManagedMetadataProvider provider)
focal_class.return: void
focal_class.signature: void setManagedProvider(ManagedMetadataProvider provider)
focal_class.class_method_signature: MetadataRegistryImpl.unsetManagedProvider(ManagedMetadataProvider managedProvider)
focal_class.full_signature: protected void unsetManagedProvider(ManagedMetadataProvider managedProvider)
focal_class.identifier: unsetManagedProvider
focal_class.modifiers: protected
focal_class.parameters: (ManagedMetadataProvider managedProvider)
focal_class.return: void
focal_class.signature: void unsetManagedProvider(ManagedMetadataProvider managedProvider)
focal_class.class_method_signature: MetadataRegistryImpl.removeItemMetadata(String itemName)
focal_class.full_signature: @Override public void removeItemMetadata(String itemName)
focal_class.identifier: removeItemMetadata
focal_class.modifiers: @Override public
focal_class.parameters: (String itemName)
focal_class.return: void
focal_class.signature: void removeItemMetadata(String itemName)
focal_class.superclass: extends AbstractRegistry<Metadata, MetadataKey, MetadataProvider>
focal_method.body: @Override
      public void removeItemMetadata(String itemName) {
          // remove our metadata for that item
          getManagedProvider()
                  .ifPresent(managedProvider -> ((ManagedMetadataProvider) managedProvider).removeItemMetadata(itemName));
      }
focal_method.class_method_signature: MetadataRegistryImpl.removeItemMetadata(String itemName)
focal_method.full_signature: @Override public void removeItemMetadata(String itemName)
focal_method.identifier: removeItemMetadata
focal_method.invocations: ifPresent getManagedProvider removeItemMetadata
focal_method.modifiers: @Override public
focal_method.parameters: (String itemName)
focal_method.return: void
focal_method.signature: void removeItemMetadata(String itemName)