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