]> git.basschouten.com Git - openhab-addons.git/blob
4d3173bf80a76e81615a251836db43a4d56b9fc3
[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 org.junit.jupiter.api.BeforeEach;
16 import org.junit.jupiter.api.Test;
17
18 /**
19  * Test class for (@link LxControlSlider} - this is actually the same control as up down analog
20  *
21  * @author Pawel Pieczul - initial contribution
22  *
23  */
24 public class LxControlSliderTest extends LxControlUpDownAnalogTest {
25     @Override
26     @BeforeEach
27     public void setup() {
28         min = 120.0;
29         max = 450.0;
30         step = 3.333;
31         format = "%.1f";
32         setupControl("131fb314-0370-c93c-ffff403fb0c34b9e", "0b734138-037d-034e-ffff403fb0c34b9e",
33                 "0fe650c2-0004-d446-ffff504f9410790f", "Slider Virtual Input");
34     }
35
36     @Override
37     @Test
38     public void testControlCreation() {
39         testControlCreation(LxControlSlider.class, 1, 0, 1, 1, 2);
40     }
41 }