]> git.basschouten.com Git - openhab-addons.git/blob
0a986210f3607405a3efeb87e97a7057ac4dbac8
[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.modbus.e3dc.modbus;
14
15 import static org.junit.jupiter.api.Assertions.assertEquals;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.junit.jupiter.api.Test;
19 import org.openhab.binding.modbus.e3dc.internal.modbus.Data.DataType;
20 import org.openhab.binding.modbus.e3dc.internal.modbus.Parser;
21
22 /**
23  * The {@link ParserNameTest} Tests for ModbusCallbacks
24  *
25  * @author Bernd Weymann - Initial contribution
26  */
27 @NonNullByDefault
28 public class ParserNameTest {
29
30     @Test
31     public void testDebugNames() {
32         Parser mcInfo = new Parser(DataType.INFO);
33         assertEquals("org.openhab.binding.modbus.e3dc.internal.modbus.Parser:INFO", mcInfo.toString(),
34                 "Debug Name Info");
35
36         Parser mcPower = new Parser(DataType.DATA);
37         assertEquals("org.openhab.binding.modbus.e3dc.internal.modbus.Parser:DATA", mcPower.toString(),
38                 "Debug Name Power");
39     }
40 }