4b69e42326d5ade0ca14aebfd9478d643733cc10
[ccsdk/features.git] /
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;
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.impl.DeviceManagerOnf14Impl;
26 import org.onap.ccsdk.features.sdnr.wt.devicemanager.service.NetconfNetworkElementService;
27
28 public class TestDeviceManagerOnf14Impl extends Mockito {
29
30     DeviceManagerOnf14Impl devMgrOnf14;
31     private static NetconfNetworkElementService netconfElemService;
32
33     @Before
34     public void init() throws InterruptedException, IOException {
35         netconfElemService = mock(NetconfNetworkElementService.class);
36     }
37
38     @Test
39     public void test() throws Exception {
40         devMgrOnf14 = new DeviceManagerOnf14Impl();
41
42         try {
43             devMgrOnf14.setNetconfNetworkElementService(netconfElemService);
44             devMgrOnf14.init();
45         } catch (Exception e) {
46             e.printStackTrace();
47         }
48     }
49
50     @After
51     public void cleanUp() throws Exception {
52         devMgrOnf14.close();
53     }
54
55 }