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.rfxcom.internal.config;
15 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
17 import org.junit.jupiter.api.BeforeEach;
18 import org.junit.jupiter.api.Test;
19 import org.junit.jupiter.api.extension.ExtendWith;
20 import org.mockito.junit.jupiter.MockitoExtension;
23 * Configuration class for Lighting 4 devices.
25 * @author James Hewitt-Thomas - Initial contribution
27 @ExtendWith(MockitoExtension.class)
28 public class RFXComLighting4DeviceConfigurationTest {
30 private RFXComLighting4DeviceConfiguration config;
33 public void before() {
34 config = new RFXComLighting4DeviceConfiguration();
35 config.deviceId = "90000";
36 config.subType = "PT2262";
40 public void testConfig() {
41 assertDoesNotThrow(() -> config.parseAndValidate());