]> git.basschouten.com Git - openhab-addons.git/blob
99c18f0d55830fa6897cd018ead111a3a7e946f4
[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.loxone.internal.controls;
14
15 import java.util.Collections;
16
17 import org.junit.jupiter.api.BeforeEach;
18 import org.junit.jupiter.api.Test;
19
20 /**
21  * Test class for (@link LxControlInfoOnlyAnalog} - check tags for temperature category
22  *
23  * @author Pawel Pieczul - initial contribution
24  *
25  */
26 public class LxControlInfoOnlyAnalogTempTagTest extends LxControlTest {
27     @BeforeEach
28     public void setup() {
29         setupControl("0fec5dc3-003e-8800-ffff555fb0c34b9e", "0fe3a451-0283-2afa-ffff403fb0c34b9e",
30                 "0fb99a98-02df-46f1-ffff403fb0c34b9e", "Info Only Analog Temperature");
31     }
32
33     @Test
34     public void testControlCreation() {
35         testControlCreation(LxControlInfoOnlyAnalog.class, 2, 0, 1, 1, 1);
36     }
37
38     @Test
39     public void testChannels() {
40         testChannel("Number", null, null, null, null, "%.1f", true, null, Collections.singleton("CurrentTemperature"));
41     }
42 }