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.loxone.internal.controls;
15 import org.junit.jupiter.api.BeforeEach;
16 import org.junit.jupiter.api.Test;
17 import org.openhab.core.library.types.StringType;
20 * Test class for (@link LxControlTracker}
22 * @author Pawel Pieczul - initial contribution
25 public class LxControlTrackerTest extends LxControlTest {
28 setupControl("132aa43b-01d4-56ea-ffff403fb0c34b9e", "0b734138-037d-034e-ffff403fb0c34b9e",
29 "0fe650c2-0004-d446-ffff504f9410790f", "Tracker Control");
33 public void testControlCreation() {
34 testControlCreation(LxControlTracker.class, 1, 0, 1, 1, 1);
38 public void testChannels() {
39 testChannel("String", null, null, null, null, null, true, null);
43 public void testLoxoneStateChanges() {
44 for (int i = 0; i < 20; i++) {
45 String s = new String();
46 for (int j = 0; j < i; j++) {
47 for (char c = 'a'; c <= 'a' + j; c++) {
54 changeLoxoneState("entries", s);
55 testChannelState(new StringType(s));