mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[hueemulation] Fix tests after core change (#14161)
Fixes #14153. This fixes the Hue Emulation tests (and in consequence the full addons build) after core change https://github.com/openhab/openhab-core/pull/3298. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
parent
9c5ea29ae0
commit
1548f16f5e
@ -17,6 +17,7 @@ import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@ -95,6 +96,12 @@ public class DummyMetadataRegistry implements MetadataRegistry {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<String> getAllNamespaces(String itemname) {
|
||||
return stream().map(Metadata::getUID).filter(key -> key.getItemName().equals(itemname))
|
||||
.map(MetadataKey::getNamespace).collect(Collectors.toSet());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeItemMetadata(String name) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user