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.binding.homematic.internal.converter;
15 import org.junit.jupiter.api.BeforeEach;
16 import org.openhab.binding.homematic.internal.model.HmChannel;
17 import org.openhab.binding.homematic.internal.model.HmDatapoint;
18 import org.openhab.binding.homematic.internal.model.HmDevice;
19 import org.openhab.binding.homematic.internal.model.HmInterface;
20 import org.openhab.binding.homematic.internal.model.HmParamsetType;
21 import org.openhab.binding.homematic.internal.model.HmValueType;
24 * @author Michael Reitler - Initial contribution
26 public class BaseConverterTest {
28 protected final HmDatapoint floatDp = new HmDatapoint("floatDp", "", HmValueType.FLOAT, null, false,
29 HmParamsetType.VALUES);
30 protected final HmDatapoint integerDp = new HmDatapoint("integerDp", "", HmValueType.INTEGER, null, false,
31 HmParamsetType.VALUES);
32 protected final HmDatapoint floatQuantityDp = new HmDatapoint("floatQuantityDp", "", HmValueType.FLOAT, null, false,
33 HmParamsetType.VALUES);
34 protected final HmDatapoint integerQuantityDp = new HmDatapoint("floatIntegerDp", "", HmValueType.INTEGER, null,
35 false, HmParamsetType.VALUES);
39 HmChannel stubChannel = new HmChannel("stubChannel", 0);
40 stubChannel.setDevice(new HmDevice("LEQ123456", HmInterface.RF, "HM-STUB-DEVICE", "", "", ""));
41 floatDp.setChannel(stubChannel);