]> git.basschouten.com Git - openhab-addons.git/blob
6028f91d4770738b0359bd1587d453b3d597d9b1
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.rfxcom.internal.config;
14
15 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
16
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;
21
22 /**
23  * Configuration class for Lighting 4 devices.
24  *
25  * @author James Hewitt-Thomas - Initial contribution
26  */
27 @ExtendWith(MockitoExtension.class)
28 public class RFXComLighting4DeviceConfigurationTest {
29
30     private RFXComLighting4DeviceConfiguration config;
31
32     @BeforeEach
33     public void before() {
34         config = new RFXComLighting4DeviceConfiguration();
35         config.deviceId = "90000";
36         config.subType = "PT2262";
37     }
38
39     @Test
40     public void testConfig() {
41         assertDoesNotThrow(() -> config.parseAndValidate());
42     }
43 }