mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
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:
+1
-3
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user