Merge "Optimize cm-handle registration with CPS-DMI Plugin to upload yang model"
[ccsdk/features.git] / sdnr / wt / devicemanager-onap / onf14 / provider / src / test / java / org / onap / ccsdk / features / sdnr / wt / devicemanager / onf14 / dom / TestDeviceManagerOnf14Impl.java
1 /*
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt
4  * =================================================================================================
5  * Copyright (C) 2020 highstreet technologies GmbH Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  */
18 package org.onap.ccsdk.features.sdnr.wt.devicemanager.onf14.dom;
19
20 import java.io.IOException;
21 import org.junit.After;
22 import org.junit.Before;
23 import org.junit.Test;
24 import org.mockito.Mockito;
25 import org.onap.ccsdk.features.sdnr.wt.devicemanager.onf14.dom.impl.DeviceManagerOnf14Impl;
26 //import org.onap.ccsdk.features.sdnr.wt.devicemanager.onf14.impl.DeviceManagerOnf14Impl;
27 import org.onap.ccsdk.features.sdnr.wt.devicemanager.service.NetconfNetworkElementService;
28
29 public class TestDeviceManagerOnf14Impl extends Mockito {
30
31     DeviceManagerOnf14Impl devMgrOnf14;
32     private static NetconfNetworkElementService netconfElemService;
33
34     @Before
35     public void init() throws InterruptedException, IOException {
36         netconfElemService = mock(NetconfNetworkElementService.class);
37     }
38
39     @Test
40     public void test() throws Exception {
41         devMgrOnf14 = new DeviceManagerOnf14Impl();
42
43         try {
44             devMgrOnf14.setNetconfNetworkElementService(netconfElemService);
45             devMgrOnf14.init();
46         } catch (Exception e) {
47             e.printStackTrace();
48         }
49     }
50
51     @After
52     public void cleanUp() throws Exception {
53         devMgrOnf14.close();
54     }
55
56 }