2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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.sdc.be.ui.model;
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
27 public class UiServiceMetadataTest {
29 private UiServiceMetadata createTestSubject() {
30 return new UiServiceMetadata(null, new ServiceMetadataDataDefinition());
35 public void testGetDistributionStatus() throws Exception {
36 UiServiceMetadata testSubject;
40 testSubject = createTestSubject();
41 result = testSubject.getDistributionStatus();
46 public void testSetDistributionStatus() throws Exception {
47 UiServiceMetadata testSubject;
48 String distributionStatus = "";
51 testSubject = createTestSubject();
52 testSubject.setDistributionStatus(distributionStatus);
57 public void testGetEcompGeneratedNaming() throws Exception {
58 UiServiceMetadata testSubject;
62 testSubject = createTestSubject();
63 result = testSubject.getEcompGeneratedNaming();
68 public void testSetEcompGeneratedNaming() throws Exception {
69 UiServiceMetadata testSubject;
70 Boolean ecompGeneratedNaming = null;
73 testSubject = createTestSubject();
74 testSubject.setEcompGeneratedNaming(ecompGeneratedNaming);
79 public void testGetNamingPolicy() throws Exception {
80 UiServiceMetadata testSubject;
84 testSubject = createTestSubject();
85 result = testSubject.getNamingPolicy();
90 public void testSetNamingPolicy() throws Exception {
91 UiServiceMetadata testSubject;
92 String namingPolicy = "";
95 testSubject = createTestSubject();
96 testSubject.setNamingPolicy(namingPolicy);
101 public void testGetServiceType() throws Exception {
102 UiServiceMetadata testSubject;
106 testSubject = createTestSubject();
107 result = testSubject.getServiceType();
112 public void testSetServiceType() throws Exception {
113 UiServiceMetadata testSubject;
114 String serviceType = "";
117 testSubject = createTestSubject();
118 testSubject.setServiceType(serviceType);
123 public void testGetServiceRole() throws Exception {
124 UiServiceMetadata testSubject;
128 testSubject = createTestSubject();
129 result = testSubject.getServiceRole();
134 public void testSetServiceRole() throws Exception {
135 UiServiceMetadata testSubject;
136 String serviceRole = "";
139 testSubject = createTestSubject();
140 testSubject.setServiceRole(serviceRole);