Add ARG PKG_VERSION to Dockerfile
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / service / src / test / java / org / onap / vfc / nfvo / vnfm / svnfm / vnfmadapter / service / activator / TestRoaVnfmService2DriverMgr.java
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.activator;
17
18 import org.junit.Assert;
19 import org.junit.Test;
20 import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.activator.RoaVnfmService2DriverMgr;
21 import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.api.internalsvc.impl.VnfmAdapter2DriverMgrService;
22
23 /**
24  * Created by QuanZhong on 2017/3/17.
25  */
26 public class TestRoaVnfmService2DriverMgr {
27     @Test
28     public void testPostProcessAfterInitialization(){
29         RoaVnfmService2DriverMgr dm = new RoaVnfmService2DriverMgr();
30         dm.postProcessAfterInitialization(new VnfmAdapter2DriverMgrService(),"abc");
31         Assert.assertTrue(true);
32     }
33     @Test
34     public void testPostProcessAfterInitialization2(){
35         RoaVnfmService2DriverMgr dm = new RoaVnfmService2DriverMgr();
36         dm.postProcessAfterInitialization(null,"abc");
37         Assert.assertTrue(true);
38     }
39
40     @Test
41     public void testpostProcessBeforeDestruction(){
42         RoaVnfmService2DriverMgr dm = new RoaVnfmService2DriverMgr();
43         dm.postProcessBeforeDestruction(new VnfmAdapter2DriverMgrService(),"abc");
44         Assert.assertTrue(true);
45     }
46
47     @Test
48     public void testpostProcessBeforeInitialization(){
49         RoaVnfmService2DriverMgr dm = new RoaVnfmService2DriverMgr();
50         dm.postProcessBeforeInitialization(new VnfmAdapter2DriverMgrService(),"abc");
51         Assert.assertTrue(true);
52     }
53 }