re base code
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / RequirementDataTest.java
1 package org.openecomp.sdc.be.resources.data;
2
3 import org.junit.Test;
4
5 import java.util.HashMap;
6 import java.util.Map;
7
8
9 public class RequirementDataTest {
10
11         private RequirementData createTestSubject() {
12                 return new RequirementData();
13         }
14
15         @Test
16         public void testCtor() throws Exception {
17                 new RequirementData(new HashMap<>());
18         }
19         
20         @Test
21         public void testToGraphMap() throws Exception {
22                 RequirementData testSubject;
23                 Map<String, Object> result;
24
25                 // default test
26                 testSubject = createTestSubject();
27                 result = testSubject.toGraphMap();
28         }
29
30         
31         @Test
32         public void testGetNode() throws Exception {
33                 RequirementData testSubject;
34                 String result;
35
36                 // default test
37                 testSubject = createTestSubject();
38                 result = testSubject.getNode();
39         }
40
41         
42         @Test
43         public void testSetNode() throws Exception {
44                 RequirementData testSubject;
45                 String node = "";
46
47                 // default test
48                 testSubject = createTestSubject();
49                 testSubject.setNode(node);
50         }
51
52         
53         @Test
54         public void testGetCreationTime() throws Exception {
55                 RequirementData testSubject;
56                 Long result;
57
58                 // default test
59                 testSubject = createTestSubject();
60                 result = testSubject.getCreationTime();
61         }
62
63         
64         @Test
65         public void testSetCreationTime() throws Exception {
66                 RequirementData testSubject;
67                 Long creationTime = null;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 testSubject.setCreationTime(creationTime);
72         }
73
74         
75         @Test
76         public void testGetModificationTime() throws Exception {
77                 RequirementData testSubject;
78                 Long result;
79
80                 // default test
81                 testSubject = createTestSubject();
82                 result = testSubject.getModificationTime();
83         }
84
85         
86         @Test
87         public void testSetModificationTime() throws Exception {
88                 RequirementData testSubject;
89                 Long modificationTime = null;
90
91                 // default test
92                 testSubject = createTestSubject();
93                 testSubject.setModificationTime(modificationTime);
94         }
95
96         
97         @Test
98         public void testSetUniqueId() throws Exception {
99                 RequirementData testSubject;
100                 String uniqueId = "";
101
102                 // default test
103                 testSubject = createTestSubject();
104                 testSubject.setUniqueId(uniqueId);
105         }
106
107         
108         @Test
109         public void testGetRelationshipType() throws Exception {
110                 RequirementData testSubject;
111                 String result;
112
113                 // default test
114                 testSubject = createTestSubject();
115                 result = testSubject.getRelationshipType();
116         }
117
118         
119         @Test
120         public void testSetRelationshipType() throws Exception {
121                 RequirementData testSubject;
122                 String relationshipType = "";
123
124                 // default test
125                 testSubject = createTestSubject();
126                 testSubject.setRelationshipType(relationshipType);
127         }
128
129         
130         @Test
131         public void testGetMinOccurrences() throws Exception {
132                 RequirementData testSubject;
133                 String result;
134
135                 // default test
136                 testSubject = createTestSubject();
137                 result = testSubject.getMinOccurrences();
138         }
139
140         
141         @Test
142         public void testSetMinOccurrences() throws Exception {
143                 RequirementData testSubject;
144                 String minOccurrences = "";
145
146                 // test 1
147                 testSubject = createTestSubject();
148                 minOccurrences = null;
149                 testSubject.setMinOccurrences(minOccurrences);
150
151                 // test 2
152                 testSubject = createTestSubject();
153                 minOccurrences = "";
154                 testSubject.setMinOccurrences(minOccurrences);
155         }
156
157         
158         @Test
159         public void testGetMaxOccurrences() throws Exception {
160                 RequirementData testSubject;
161                 String result;
162
163                 // default test
164                 testSubject = createTestSubject();
165                 result = testSubject.getMaxOccurrences();
166         }
167
168         
169         @Test
170         public void testSetMaxOccurrences() throws Exception {
171                 RequirementData testSubject;
172                 String maxOccurrences = "";
173
174                 // test 1
175                 testSubject = createTestSubject();
176                 maxOccurrences = null;
177                 testSubject.setMaxOccurrences(maxOccurrences);
178
179                 // test 2
180                 testSubject = createTestSubject();
181                 maxOccurrences = "";
182                 testSubject.setMaxOccurrences(maxOccurrences);
183         }
184
185         
186         @Test
187         public void testGetUniqueId() throws Exception {
188                 RequirementData testSubject;
189                 String result;
190
191                 // default test
192                 testSubject = createTestSubject();
193                 result = testSubject.getUniqueId();
194         }
195
196         
197         @Test
198         public void testToString() throws Exception {
199                 RequirementData testSubject;
200                 String result;
201
202                 // default test
203                 testSubject = createTestSubject();
204                 result = testSubject.toString();
205         }
206 }