]> git.basschouten.com Git - openhab-addons.git/blob
bfdab8d1dd1494970ed55765d817e07123735017
[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.yamahareceiver.internal.protocol.xml;
14
15 import static org.mockito.MockitoAnnotations.initMocks;
16
17 import org.junit.Before;
18 import org.mockito.Mock;
19
20 /**
21  * Baseline for tests for the XML protocol implementation.
22  *
23  * @author Tomasz Maruszak - Initial contribution
24  */
25 public abstract class AbstractXMLProtocolTest {
26
27     @Mock
28     protected XMLConnection con;
29
30     protected ModelContext ctx;
31
32     @Before
33     public void setUp() throws Exception {
34         initMocks(this);
35         ctx = new ModelContext(con);
36
37         onSetUp();
38     }
39
40     protected void onSetUp() throws Exception {
41     }
42 }