]> git.basschouten.com Git - openhab-addons.git/blob
7cee0058d48b5f791f4d04d1b030d9504c56865a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.lcn.internal.subhandler;
14
15 import static org.mockito.Mockito.when;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.mockito.Mock;
19 import org.mockito.MockitoAnnotations;
20 import org.openhab.binding.lcn.internal.LcnModuleHandler;
21 import org.openhab.binding.lcn.internal.connection.ModInfo;
22
23 /**
24  * Test class.
25  *
26  * @author Fabian Wolter - Initial contribution
27  */
28 @NonNullByDefault
29 public class AbstractTestLcnModuleSubHandler {
30     @Mock
31     protected @NonNullByDefault({}) LcnModuleHandler handler;
32     @Mock
33     protected @NonNullByDefault({}) ModInfo info;
34
35     public AbstractTestLcnModuleSubHandler() {
36         setUp();
37     }
38
39     public void setUp() {
40         MockitoAnnotations.initMocks(this);
41         when(handler.isMyAddress("000", "005")).thenReturn(true);
42     }
43 }