]> git.basschouten.com Git - openhab-addons.git/blob
4ca3e534698162ba4214102fcb77440a6e8183b5
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.homematic.internal.converter;
14
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;
22
23 /**
24  * @author Michael Reitler - Initial contribution
25  */
26 public class BaseConverterTest {
27
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);
36
37     @BeforeEach
38     public void setup() {
39         HmChannel stubChannel = new HmChannel("stubChannel", 0);
40         stubChannel.setDevice(new HmDevice("LEQ123456", HmInterface.RF, "HM-STUB-DEVICE", "", "", ""));
41         floatDp.setChannel(stubChannel);
42     }
43 }