Change: add OPEN-O seed code for VF-C
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / service / src / test / java / org / openo / nfvo / vnfmadapter / service / activator / RoaVnfmServicePostProcessorTest.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.openo.nfvo.vnfmadapter.service.activator;
17
18 import org.junit.Assert;
19 import org.junit.Test;
20 import org.openo.nfvo.vnfmadapter.service.api.internalsvc.impl.VnfmAdapterMgrService;
21
22 /**
23  * Created by QuanZhong on 2017/3/17.
24  */
25 public class RoaVnfmServicePostProcessorTest {
26     @Test
27     public void testPostProcessAfterInitialization(){
28         RoaVnfmServicePostProcessor dm = new RoaVnfmServicePostProcessor();
29         dm.postProcessAfterInitialization(new VnfmAdapterMgrService(),"abc");
30         Assert.assertTrue(true);
31     }
32     @Test
33     public void testPostProcessAfterInitialization2(){
34         RoaVnfmServicePostProcessor dm = new RoaVnfmServicePostProcessor();
35         dm.postProcessAfterInitialization(null,"abc");
36         Assert.assertTrue(true);
37     }
38
39     @Test
40     public void testpostProcessBeforeDestruction(){
41         RoaVnfmServicePostProcessor dm = new RoaVnfmServicePostProcessor();
42         dm.postProcessBeforeDestruction(new VnfmAdapterMgrService(),"abc");
43         Assert.assertTrue(true);
44     }
45
46     @Test
47     public void testpostProcessBeforeInitialization(){
48         RoaVnfmServicePostProcessor dm = new RoaVnfmServicePostProcessor();
49         dm.postProcessBeforeInitialization(new VnfmAdapterMgrService(),"abc");
50         Assert.assertTrue(true);
51     }
52 }