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.bsblan.internal;
15 import static org.junit.jupiter.api.Assertions.*;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.junit.jupiter.api.Test;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link BsbLanHandlerFactoryTests} class implements tests
23 * for {@link BsbLanHandlerFactory}.
25 * @author Peter Schraffl - Initial contribution
28 public class BsbLanHandlerFactoryTests {
30 public static final ThingTypeUID UNKNOWN_THING_TYPE_UID = new ThingTypeUID("bsblan", "unknown");
33 * Test if factory knows all thing types.
36 public void supportsThingType() {
37 BsbLanHandlerFactory factory = new BsbLanHandlerFactory();
38 assertFalse(factory.supportsThingType(UNKNOWN_THING_TYPE_UID));
40 assertTrue(factory.supportsThingType(BsbLanBindingConstants.THING_TYPE_BRIDGE));
41 assertTrue(factory.supportsThingType(BsbLanBindingConstants.THING_TYPE_PARAMETER));