2 * Copyright (c) 2010-2020 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.Assert.assertFalse;
16 import static org.junit.Assert.assertTrue;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.junit.Test;
20 import org.openhab.core.thing.ThingTypeUID;
23 * The {@link BsbLanHandlerFactoryTests} class implements tests
24 * for {@link BsbLanHandlerFactory}.
26 * @author Peter Schraffl - Initial contribution
29 public class BsbLanHandlerFactoryTests {
31 public static final ThingTypeUID UNKNOWN_THING_TYPE_UID = new ThingTypeUID("bsblan", "unknown");
34 * Test if factory knows all thing types.
37 public void supportsThingType() {
38 BsbLanHandlerFactory factory = new BsbLanHandlerFactory();
39 assertFalse(factory.supportsThingType(UNKNOWN_THING_TYPE_UID));
41 assertTrue(factory.supportsThingType(BsbLanBindingConstants.THING_TYPE_BRIDGE));
42 assertTrue(factory.supportsThingType(BsbLanBindingConstants.THING_TYPE_PARAMETER));