2dbec7ac03131d7bbffc760214b81ed2e1d3dcb6
[sdc.git] /
1 package org.openecomp.sdc.be.components.distribution.engine;
2
3 import org.junit.Test;
4
5 public class DistributionStatusNotificationTest {
6
7         private DistributionStatusNotification createTestSubject() {
8                 return new DistributionStatusNotification();
9         }
10
11         @Test
12         public void testGetDistributionID() throws Exception {
13                 DistributionStatusNotification testSubject;
14                 String result;
15
16                 // default test
17                 testSubject = createTestSubject();
18                 result = testSubject.getDistributionID();
19         }
20
21         @Test
22         public void testSetDistributionID() throws Exception {
23                 DistributionStatusNotification testSubject;
24                 String distributionId = "";
25
26                 // default test
27                 testSubject = createTestSubject();
28                 testSubject.setDistributionID(distributionId);
29         }
30
31         @Test
32         public void testGetConsumerID() throws Exception {
33                 DistributionStatusNotification testSubject;
34                 String result;
35
36                 // default test
37                 testSubject = createTestSubject();
38                 result = testSubject.getConsumerID();
39         }
40
41         @Test
42         public void testSetConsumerID() throws Exception {
43                 DistributionStatusNotification testSubject;
44                 String consumerId = "";
45
46                 // default test
47                 testSubject = createTestSubject();
48                 testSubject.setConsumerID(consumerId);
49         }
50
51         @Test
52         public void testGetTimestamp() throws Exception {
53                 DistributionStatusNotification testSubject;
54                 long result;
55
56                 // default test
57                 testSubject = createTestSubject();
58                 result = testSubject.getTimestamp();
59         }
60
61         @Test
62         public void testSetTimestamp() throws Exception {
63                 DistributionStatusNotification testSubject;
64                 long timestamp = 4354;
65
66                 // default test
67                 testSubject = createTestSubject();
68                 testSubject.setTimestamp(timestamp);
69         }
70
71         @Test
72         public void testGetArtifactURL() throws Exception {
73                 DistributionStatusNotification testSubject;
74                 String result;
75
76                 // default test
77                 testSubject = createTestSubject();
78                 result = testSubject.getArtifactURL();
79         }
80
81         @Test
82         public void testSetArtifactURL() throws Exception {
83                 DistributionStatusNotification testSubject;
84                 String artifactURL = "";
85
86                 // default test
87                 testSubject = createTestSubject();
88                 testSubject.setArtifactURL(artifactURL);
89         }
90
91         @Test
92         public void testGetStatus() throws Exception {
93                 DistributionStatusNotification testSubject;
94                 DistributionStatusNotificationEnum result;
95
96                 // default test
97                 testSubject = createTestSubject();
98                 result = testSubject.getStatus();
99         }
100
101         @Test
102         public void testSetStatus() throws Exception {
103                 DistributionStatusNotification testSubject;
104                 DistributionStatusNotificationEnum status = null;
105
106                 // default test
107                 testSubject = createTestSubject();
108                 testSubject.setStatus(status);
109         }
110
111         @Test
112         public void testGetErrorReason() throws Exception {
113                 DistributionStatusNotification testSubject;
114                 String result;
115
116                 // default test
117                 testSubject = createTestSubject();
118                 result = testSubject.getErrorReason();
119         }
120
121         @Test
122         public void testSetErrorReason() throws Exception {
123                 DistributionStatusNotification testSubject;
124                 String errorReason = "";
125
126                 // default test
127                 testSubject = createTestSubject();
128                 testSubject.setErrorReason(errorReason);
129         }
130
131         @Test
132         public void testIsDistributionCompleteNotification() throws Exception {
133                 DistributionStatusNotification testSubject;
134                 boolean result;
135
136                 // default test
137                 testSubject = createTestSubject();
138                 result = testSubject.isDistributionCompleteNotification();
139                 
140                 testSubject.status = DistributionStatusNotificationEnum.DISTRIBUTION_COMPLETE_OK;
141                 result = testSubject.isDistributionCompleteNotification();
142                 
143                 testSubject.status = DistributionStatusNotificationEnum.DISTRIBUTION_COMPLETE_ERROR;
144                 result = testSubject.isDistributionCompleteNotification();
145         }
146
147         @Test
148         public void testToString() throws Exception {
149                 DistributionStatusNotification testSubject;
150                 String result;
151
152                 // default test
153                 testSubject = createTestSubject();
154                 result = testSubject.toString();
155         }
156 }