]> git.basschouten.com Git - openhab-addons.git/blob
3a1beef7cff55d2b310a9d25fabdb4b5ce9d1f51
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.knx.internal.client;
14
15 import java.util.Collections;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.knx.internal.handler.KNXBridgeBaseThingHandler.CommandExtensionData;
19 import org.openhab.core.thing.ThingUID;
20
21 import tuwien.auto.calimero.KNXException;
22 import tuwien.auto.calimero.link.KNXNetworkLink;
23
24 /**
25  * {@link AbstractKNXClient} implementation for test, using {@link DummyKNXNetworkLink}.
26  *
27  * @author Holger Friedrich - initial contribution and API.
28  *
29  */
30 @NonNullByDefault
31 public class DummyClient extends AbstractKNXClient {
32
33     public DummyClient() {
34         super(0, new ThingUID("dummy connection"), 0, 0, 0, null, new CommandExtensionData(Collections.emptyMap()),
35                 null, null);
36     }
37
38     @Override
39     protected KNXNetworkLink establishConnection() throws KNXException, InterruptedException {
40         return new DummyKNXNetworkLink();
41     }
42 }