Remove RegistryHook (#4568)

Remove RegistryHook which is not longer used. Remove related methods
from ItemRegistry and ItemUiRegistry.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2025-01-26 14:55:08 +01:00
committed by GitHub
parent ce374252fa
commit 7548f26db6
5 changed files with 1 additions and 109 deletions
@@ -96,8 +96,6 @@ public class GenericItemChannelLinkProviderJavaTest extends JavaOSGiTest {
@Test
public void testIntegrationWithGenericItemProvider() throws Exception {
Thread.sleep(2500); // Wait for the ChannelItemProvider to join the game
Collection<Thing> things = thingRegistry.getAll();
assertThat(things.size(), is(0));
@@ -133,7 +131,7 @@ public class GenericItemChannelLinkProviderJavaTest extends JavaOSGiTest {
// Now add the model again
modelRepository.addOrRefreshModel(ITEMS_TESTMODEL_NAME, new ByteArrayInputStream(itemsModel.getBytes()));
assertThat(itemRegistry.getItems().size(), is(2)); // -> ensure ChannelItemProvider cleans up properly
assertThat(itemRegistry.getItems().size(), is(2)); // -> ensure proper clean-up
assertThat(itemChannelLinkRegistry.getAll().size(), is(1));
}