d5c51860819503243541c7ca7b5274c6c6a2afe2
[dcaegen2/analytics/tca.git] / dcae-analytics-model / src / test / java / org / openecomp / dcae / apod / analytics / model / facade / tca / AAITest.java
1 /*
2  * ===============================LICENSE_START======================================
3  *  dcae-analytics
4  * ================================================================================
5  *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  *  Licensed under the Apache License, Version 2.0 (the "License");
8  *  you may not use this file except in compliance with the License.
9  *   You may obtain a copy of the License at
10  *
11  *          http://www.apache.org/licenses/LICENSE-2.0
12  *
13  *  Unless required by applicable law or agreed to in writing, software
14  *  distributed under the License is distributed on an "AS IS" BASIS,
15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  *  See the License for the specific language governing permissions and
17  *  limitations under the License.
18  *  ============================LICENSE_END===========================================
19  */
20
21 package org.openecomp.dcae.apod.analytics.model.facade.tca;
22
23 import org.junit.Before;
24 import org.junit.Test;
25 import org.openecomp.dcae.apod.analytics.model.BaseAnalyticsModelUnitTest;
26
27 import static org.hamcrest.core.Is.is;
28 import static org.junit.Assert.assertThat;
29
30 /**
31  * @author Rajiv Singla . Creation Date: 12/16/2016.
32  */
33 public class AAITest extends BaseAnalyticsModelUnitTest {
34
35     private AAI aai;
36
37     @Before
38     public void before() {
39         this.aai = new AAI();
40     }
41
42     @Test
43     public void getGenericVNFId() throws Exception {
44         final String genericVNFId = "testVNFID";
45         aai.setGenericVNFId(genericVNFId);
46         assertThat("VNFID must be same", aai.getGenericVNFId(), is(genericVNFId));
47     }
48
49     @Test
50     public void setGenericVNFId() throws Exception {
51         final String genericVNFId = "testVNFID";
52         aai.setGenericVNFId(genericVNFId);
53         final String changedGenericVNFId = "changedVNFID";
54         aai.setGenericVNFId(changedGenericVNFId);
55         assertThat("VNFID must be same as changed VNFID", aai.getGenericVNFId(), is(changedGenericVNFId));
56
57     }
58
59 }