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.components.distribution.engine;
23 import org.junit.Test;
25 import java.util.List;
27 public class NotificationDataImplTest {
29 private NotificationDataImpl createTestSubject() {
30 return new NotificationDataImpl();
34 public void testGetDistributionID() throws Exception {
35 NotificationDataImpl testSubject;
39 testSubject = createTestSubject();
40 result = testSubject.getDistributionID();
44 public void testGetServiceName() throws Exception {
45 NotificationDataImpl testSubject;
49 testSubject = createTestSubject();
50 result = testSubject.getServiceName();
54 public void testGetServiceVersion() throws Exception {
55 NotificationDataImpl testSubject;
59 testSubject = createTestSubject();
60 result = testSubject.getServiceVersion();
64 public void testGetServiceUUID() throws Exception {
65 NotificationDataImpl testSubject;
69 testSubject = createTestSubject();
70 result = testSubject.getServiceUUID();
74 public void testSetDistributionID() throws Exception {
75 NotificationDataImpl testSubject;
76 String distributionID = "";
79 testSubject = createTestSubject();
80 testSubject.setDistributionID(distributionID);
84 public void testSetServiceName() throws Exception {
85 NotificationDataImpl testSubject;
86 String serviceName = "";
89 testSubject = createTestSubject();
90 testSubject.setServiceName(serviceName);
94 public void testSetServiceVersion() throws Exception {
95 NotificationDataImpl testSubject;
96 String serviceVersion = "";
99 testSubject = createTestSubject();
100 testSubject.setServiceVersion(serviceVersion);
104 public void testSetServiceUUID() throws Exception {
105 NotificationDataImpl testSubject;
106 String serviceUUID = "";
109 testSubject = createTestSubject();
110 testSubject.setServiceUUID(serviceUUID);
114 public void testGetServiceDescription() throws Exception {
115 NotificationDataImpl testSubject;
119 testSubject = createTestSubject();
120 result = testSubject.getServiceDescription();
124 public void testSetServiceDescription() throws Exception {
125 NotificationDataImpl testSubject;
126 String serviceDescription = "";
129 testSubject = createTestSubject();
130 testSubject.setServiceDescription(serviceDescription);
134 public void testGetWorkloadContext() throws Exception {
135 NotificationDataImpl testSubject;
139 testSubject = createTestSubject();
140 result = testSubject.getWorkloadContext();
144 public void testSetWorkloadContext() throws Exception {
145 NotificationDataImpl testSubject;
146 String workloadContext = "";
149 testSubject = createTestSubject();
150 testSubject.setWorkloadContext(workloadContext);
154 public void testToString() throws Exception {
155 NotificationDataImpl testSubject;
159 testSubject = createTestSubject();
160 result = testSubject.toString();
164 public void testGetResources() throws Exception {
165 NotificationDataImpl testSubject;
166 List<JsonContainerResourceInstance> result;
169 testSubject = createTestSubject();
170 result = testSubject.getResources();
174 public void testSetResources() throws Exception {
175 NotificationDataImpl testSubject;
176 List<JsonContainerResourceInstance> resources = null;
179 testSubject = createTestSubject();
180 testSubject.setResources(resources);
184 public void testGetServiceArtifacts() throws Exception {
185 NotificationDataImpl testSubject;
186 List<ArtifactInfoImpl> result;
189 testSubject = createTestSubject();
190 result = testSubject.getServiceArtifacts();
194 public void testSetServiceArtifacts() throws Exception {
195 NotificationDataImpl testSubject;
196 List<ArtifactInfoImpl> serviceArtifacts = null;
199 testSubject = createTestSubject();
200 testSubject.setServiceArtifacts(serviceArtifacts);
204 public void testGetServiceInvariantUUID() throws Exception {
205 NotificationDataImpl testSubject;
209 testSubject = createTestSubject();
210 result = testSubject.getServiceInvariantUUID();
214 public void testSetServiceInvariantUUID() throws Exception {
215 NotificationDataImpl testSubject;
216 String serviceInvariantUUID = "";
219 testSubject = createTestSubject();
220 testSubject.setServiceInvariantUUID(serviceInvariantUUID);