2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
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=========================================================
20 package org.openecomp.mso.client.aai.objects;
22 import static org.junit.Assert.*;
24 import org.junit.Test;
26 public class AAIServiceInstanceTest {
30 AAIServiceInstance aaiSI= new AAIServiceInstance();
31 aaiSI.setEnvironmentContext("environmentContext");
32 aaiSI.setModelInvariantUuid("modelInvariantUuid");
33 aaiSI.setModelUuid("modelUuid");
34 aaiSI.setoStatus("oStatus");
35 aaiSI.setServiceInstanceId("serviceInstanceId");
36 aaiSI.setServiceInstanceName("serviceInstanceName");
37 aaiSI.setServiceRole("serviceRole");
38 aaiSI.setServiceType("serviceType");
39 aaiSI.setWorkloadContext("workloadContext");
40 assertEquals(aaiSI.getEnvironmentContext(), "environmentContext");
41 assertEquals(aaiSI.getModelInvariantUuid(), "modelInvariantUuid");
42 assertEquals(aaiSI.getModelUuid(), "modelUuid");
43 assertEquals(aaiSI.getoStatus(), "oStatus");
44 assertEquals(aaiSI.getServiceInstanceId(), "serviceInstanceId");
45 assertEquals(aaiSI.getServiceInstanceName(), "serviceInstanceName");
46 assertEquals(aaiSI.getServiceRole(), "serviceRole");
47 assertEquals(aaiSI.getServiceType(), "serviceType");
48 assertEquals(aaiSI.getWorkloadContext(), "workloadContext");
49 aaiSI.withServiceInstance("serviceInstanceId");
50 assert(aaiSI.getUri()!=null);