2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.io.hueemulation.internal.rest.mocks;
15 import java.util.concurrent.ScheduledExecutorService;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.core.items.Item;
20 import org.openhab.core.net.NetworkAddressService;
21 import org.openhab.io.hueemulation.internal.ConfigStore;
22 import org.osgi.service.cm.ConfigurationAdmin;
25 * Usually the metadata registry is used to map item UIDs to integer hue IDs.
26 * For tests we do not need this extra complexity and just map the item UID to the hue ID.
28 * @author David Graeff - Initial contribution
31 public class ConfigStoreWithoutMetadata extends ConfigStore {
33 public ConfigStoreWithoutMetadata(NetworkAddressService networkAddressService, ConfigurationAdmin configAdmin,
34 ScheduledExecutorService scheduler) {
35 super(networkAddressService, configAdmin, null, scheduler);
39 protected void determineHighestAssignedHueID() {
43 public String mapItemUIDtoHueID(@Nullable Item item) {
45 throw new IllegalArgumentException();