2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 Huawei 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=========================================================
22 package org.onap.so.bpmn.infrastructure.aai;
24 import org.junit.Test;
27 public class AAIServiceInstanceTest {
29 AAIServiceInstance test = new AAIServiceInstance.AAIServiceInstanceBuilder()
30 .setServiceInstanceName("serviceInstanceName").setServiceType("serviceType").setServiceRole("serviceRole")
31 .setOrchestrationStatus("orchestrationStatus").setModelInvariantUuid("modelInvariantUuid")
32 .setModelVersionId("modelVersionId").setEnvironmentContext("environmentContext")
33 .setWorkloadContext("workloadContext").createAAIServiceInstance();
36 public void getServiceInstanceNameTest() throws Exception {
37 test.getServiceInstanceName();
41 public void setServiceInstanceNameTest() throws Exception {
42 test.setServiceInstanceName("serviceInstanceName");
46 public void getServiceTypeTest() throws Exception {
47 test.getServiceType();
51 public void setServiceTypeTest() throws Exception {
52 test.setServiceType("serviceType");
56 public void getServiceRoleTest() throws Exception {
57 test.getServiceRole();
61 public void setServiceRoleTest() throws Exception {
62 test.setServiceRole("serviceRole");
66 public void getOrchestrationStatusTest() throws Exception {
67 test.getOrchestrationStatus();
71 public void setOrchestrationStatusTest() throws Exception {
72 test.setOrchestrationStatus("status");
76 public void getModelInvariantUuidTest() throws Exception {
77 test.getModelInvariantUuid();
81 public void setModelInvariantUuidTest() throws Exception {
82 test.setModelInvariantUuid("uuid");
86 public void getModelVersionIdTest() throws Exception {
87 test.getModelVersionId();
91 public void setModelVersionIdTest() throws Exception {
92 test.setModelVersionId("versionId");
96 public void getEnvironmentContextTest() throws Exception {
97 test.getEnvironmentContext();
101 public void setEnvironmentContextTest() throws Exception {
102 test.setEnvironmentContext("context");
106 public void getWorkloadContextTest() throws Exception {
107 test.getWorkloadContext();
111 public void setWorkloadContextTest() throws Exception {
112 test.setWorkloadContext("context");