1 package org.openecomp.sdc.be.components.distribution.engine;
5 public class DistributionStatusNotificationTest {
7 private DistributionStatusNotification createTestSubject() {
8 return new DistributionStatusNotification();
12 public void testGetDistributionID() throws Exception {
13 DistributionStatusNotification testSubject;
17 testSubject = createTestSubject();
18 result = testSubject.getDistributionID();
22 public void testSetDistributionID() throws Exception {
23 DistributionStatusNotification testSubject;
24 String distributionId = "";
27 testSubject = createTestSubject();
28 testSubject.setDistributionID(distributionId);
32 public void testGetConsumerID() throws Exception {
33 DistributionStatusNotification testSubject;
37 testSubject = createTestSubject();
38 result = testSubject.getConsumerID();
42 public void testSetConsumerID() throws Exception {
43 DistributionStatusNotification testSubject;
44 String consumerId = "";
47 testSubject = createTestSubject();
48 testSubject.setConsumerID(consumerId);
52 public void testGetTimestamp() throws Exception {
53 DistributionStatusNotification testSubject;
57 testSubject = createTestSubject();
58 result = testSubject.getTimestamp();
62 public void testSetTimestamp() throws Exception {
63 DistributionStatusNotification testSubject;
64 long timestamp = 4354;
67 testSubject = createTestSubject();
68 testSubject.setTimestamp(timestamp);
72 public void testGetArtifactURL() throws Exception {
73 DistributionStatusNotification testSubject;
77 testSubject = createTestSubject();
78 result = testSubject.getArtifactURL();
82 public void testSetArtifactURL() throws Exception {
83 DistributionStatusNotification testSubject;
84 String artifactURL = "";
87 testSubject = createTestSubject();
88 testSubject.setArtifactURL(artifactURL);
92 public void testGetStatus() throws Exception {
93 DistributionStatusNotification testSubject;
94 DistributionStatusNotificationEnum result;
97 testSubject = createTestSubject();
98 result = testSubject.getStatus();
102 public void testSetStatus() throws Exception {
103 DistributionStatusNotification testSubject;
104 DistributionStatusNotificationEnum status = null;
107 testSubject = createTestSubject();
108 testSubject.setStatus(status);
112 public void testGetErrorReason() throws Exception {
113 DistributionStatusNotification testSubject;
117 testSubject = createTestSubject();
118 result = testSubject.getErrorReason();
122 public void testSetErrorReason() throws Exception {
123 DistributionStatusNotification testSubject;
124 String errorReason = "";
127 testSubject = createTestSubject();
128 testSubject.setErrorReason(errorReason);
132 public void testIsDistributionCompleteNotification() throws Exception {
133 DistributionStatusNotification testSubject;
137 testSubject = createTestSubject();
138 result = testSubject.isDistributionCompleteNotification();
140 testSubject.status = DistributionStatusNotificationEnum.DISTRIBUTION_COMPLETE_OK;
141 result = testSubject.isDistributionCompleteNotification();
143 testSubject.status = DistributionStatusNotificationEnum.DISTRIBUTION_COMPLETE_ERROR;
144 result = testSubject.isDistributionCompleteNotification();
148 public void testToString() throws Exception {
149 DistributionStatusNotification testSubject;
153 testSubject = createTestSubject();
154 result = testSubject.toString();