2 * Copyright (c) 2010-2020 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.NonNull;
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
30 public class ConfigStoreWithoutMetadata extends ConfigStore {
32 public ConfigStoreWithoutMetadata(NetworkAddressService networkAddressService, ConfigurationAdmin configAdmin,
33 ScheduledExecutorService scheduler) {
34 super(networkAddressService, configAdmin, null, scheduler);
38 protected void determineHighestAssignedHueID() {
42 public @NonNull String mapItemUIDtoHueID(@Nullable Item item) {
44 throw new IllegalArgumentException();