1 package org.openecomp.sdc.be.datatypes.elements;
5 import org.junit.Assert;
9 public class RequirementDataDefinitionTest {
11 private RequirementDataDefinition createTestSubject() {
12 return new RequirementDataDefinition();
17 public void testGetUniqueId() throws Exception {
18 RequirementDataDefinition testSubject;
22 testSubject = createTestSubject();
23 result = testSubject.getUniqueId();
28 public void testSetUniqueId() throws Exception {
29 RequirementDataDefinition testSubject;
33 testSubject = createTestSubject();
34 testSubject.setUniqueId(uniqueId);
39 public void testGetName() throws Exception {
40 RequirementDataDefinition testSubject;
44 testSubject = createTestSubject();
45 result = testSubject.getName();
50 public void testSetName() throws Exception {
51 RequirementDataDefinition testSubject;
55 testSubject = createTestSubject();
56 testSubject.setName(name);
61 public void testGetParentName() throws Exception {
62 RequirementDataDefinition testSubject;
66 testSubject = createTestSubject();
67 result = testSubject.getParentName();
72 public void testSetParentName() throws Exception {
73 RequirementDataDefinition testSubject;
74 String parentName = "";
77 testSubject = createTestSubject();
78 testSubject.setParentName(parentName);
83 public void testGetCapability() throws Exception {
84 RequirementDataDefinition testSubject;
88 testSubject = createTestSubject();
89 result = testSubject.getCapability();
94 public void testSetCapability() throws Exception {
95 RequirementDataDefinition testSubject;
96 String capability = "";
99 testSubject = createTestSubject();
100 testSubject.setCapability(capability);
105 public void testGetNode() throws Exception {
106 RequirementDataDefinition testSubject;
110 testSubject = createTestSubject();
111 result = testSubject.getNode();
116 public void testSetNode() throws Exception {
117 RequirementDataDefinition testSubject;
121 testSubject = createTestSubject();
122 testSubject.setNode(node);
127 public void testGetRelationship() throws Exception {
128 RequirementDataDefinition testSubject;
132 testSubject = createTestSubject();
133 result = testSubject.getRelationship();
138 public void testSetRelationship() throws Exception {
139 RequirementDataDefinition testSubject;
140 String relationship = "";
143 testSubject = createTestSubject();
144 testSubject.setRelationship(relationship);
149 public void testGetOwnerId() throws Exception {
150 RequirementDataDefinition testSubject;
154 testSubject = createTestSubject();
155 result = testSubject.getOwnerId();
160 public void testSetOwnerId() throws Exception {
161 RequirementDataDefinition testSubject;
165 testSubject = createTestSubject();
166 testSubject.setOwnerId(ownerId);
171 public void testGetOwnerName() throws Exception {
172 RequirementDataDefinition testSubject;
176 testSubject = createTestSubject();
177 result = testSubject.getOwnerName();
182 public void testSetOwnerName() throws Exception {
183 RequirementDataDefinition testSubject;
184 String ownerName = "";
187 testSubject = createTestSubject();
188 testSubject.setOwnerName(ownerName);
193 public void testGetMinOccurrences() throws Exception {
194 RequirementDataDefinition testSubject;
198 testSubject = createTestSubject();
199 result = testSubject.getMinOccurrences();
204 public void testSetMinOccurrences() throws Exception {
205 RequirementDataDefinition testSubject;
206 String minOccurrences = "";
209 testSubject = createTestSubject();
210 testSubject.setMinOccurrences(minOccurrences);
215 public void testGetLeftOccurrences() throws Exception {
216 RequirementDataDefinition testSubject;
220 testSubject = createTestSubject();
221 result = testSubject.getLeftOccurrences();
226 public void testSetLeftOccurrences() throws Exception {
227 RequirementDataDefinition testSubject;
228 String leftOccurrences = "";
231 testSubject = createTestSubject();
232 testSubject.setLeftOccurrences(leftOccurrences);
237 public void testGetMaxOccurrences() throws Exception {
238 RequirementDataDefinition testSubject;
242 testSubject = createTestSubject();
243 result = testSubject.getMaxOccurrences();
248 public void testSetMaxOccurrences() throws Exception {
249 RequirementDataDefinition testSubject;
250 String maxOccurrences = "";
253 testSubject = createTestSubject();
254 testSubject.setMaxOccurrences(maxOccurrences);
259 public void testSetPath() throws Exception {
260 RequirementDataDefinition testSubject;
261 List<String> path = null;
264 testSubject = createTestSubject();
265 testSubject.setPath(path);
270 public void testGetPath() throws Exception {
271 RequirementDataDefinition testSubject;
275 testSubject = createTestSubject();
276 result = testSubject.getPath();
281 public void testSetSource() throws Exception {
282 RequirementDataDefinition testSubject;
286 testSubject = createTestSubject();
287 testSubject.setSource(source);
292 public void testGetSource() throws Exception {
293 RequirementDataDefinition testSubject;
297 testSubject = createTestSubject();
298 result = testSubject.getSource();
303 public void testAddToPath() throws Exception {
304 RequirementDataDefinition testSubject;
305 String elementInPath = "";
308 testSubject = createTestSubject();
309 testSubject.addToPath(elementInPath);
314 public void testHashCode() throws Exception {
315 RequirementDataDefinition testSubject;
319 testSubject = createTestSubject();
320 result = testSubject.hashCode();
325 public void testEquals() throws Exception {
326 RequirementDataDefinition testSubject;
331 testSubject = createTestSubject();
333 result = testSubject.equals(obj);
334 Assert.assertEquals(false, result);
339 public void testToString() throws Exception {
340 RequirementDataDefinition testSubject;
344 testSubject = createTestSubject();
345 result = testSubject.toString();