2 * ===============================LICENSE_START======================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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===========================================
21 package org.openecomp.dcae.apod.analytics.model.facade.tca;
23 import org.junit.Before;
24 import org.junit.Test;
25 import org.openecomp.dcae.apod.analytics.model.BaseAnalyticsModelUnitTest;
27 import static org.hamcrest.core.Is.is;
28 import static org.junit.Assert.assertThat;
31 * @author Rajiv Singla . Creation Date: 12/16/2016.
33 public class AAITest extends BaseAnalyticsModelUnitTest {
38 public void before() {
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));
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));