Fixing checkstyle and javadoc errors
[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     private static final String GENERIC_VNF_ID = "testVNFID";
37     private static final String CHANGED_GENERIC_VNF_ID = "changedVNFID";
38
39     @Before
40     public void before() {
41         aai = new AAI();
42     }
43
44     @Test
45     public void getGenericVNFId() throws Exception {
46         aai.setGenericVNFId(GENERIC_VNF_ID);
47         assertThat("VNFID must be same", aai.getGenericVNFId(), is(GENERIC_VNF_ID));
48     }
49
50     @Test
51     public void setGenericVNFId() throws Exception {
52         final String genericVNFId = "testVNFID";
53         aai.setGenericVNFId(GENERIC_VNF_ID);
54         aai.setGenericVNFId(CHANGED_GENERIC_VNF_ID);
55         assertThat("VNFID must be same as changed VNFID", aai.getGenericVNFId(), is(CHANGED_GENERIC_VNF_ID));
56     }
57 }