]> git.basschouten.com Git - openhab-addons.git/blob
665f6dda4e7bb05f68a68c6adb291db1de61291f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.junit.jupiter.api.extension.ExtendWith;
19 import org.mockito.Mock;
20 import org.mockito.junit.jupiter.MockitoExtension;
21 import org.mockito.junit.jupiter.MockitoSettings;
22 import org.mockito.quality.Strictness;
23 import org.openhab.binding.lcn.internal.LcnModuleHandler;
24 import org.openhab.binding.lcn.internal.connection.ModInfo;
25
26 /**
27  * Test class.
28  *
29  * @author Fabian Wolter - Initial contribution
30  */
31 @ExtendWith(MockitoExtension.class)
32 @MockitoSettings(strictness = Strictness.LENIENT)
33 @NonNullByDefault
34 public class AbstractTestLcnModuleSubHandler {
35
36     protected @Mock @NonNullByDefault({}) LcnModuleHandler handler;
37     protected @Mock @NonNullByDefault({}) ModInfo info;
38
39     public void setUp() {
40         when(handler.isMyAddress("000", "005")).thenReturn(true);
41     }
42 }