1 package org.openecomp.sdc.be.datatypes.elements;
5 import javax.annotation.Generated;
7 import org.junit.Assert;
11 public class RequirementDataDefinitionTest {
13 private RequirementDataDefinition createTestSubject() {
14 return new RequirementDataDefinition();
19 public void testGetUniqueId() throws Exception {
20 RequirementDataDefinition testSubject;
24 testSubject = createTestSubject();
25 result = testSubject.getUniqueId();
30 public void testSetUniqueId() throws Exception {
31 RequirementDataDefinition testSubject;
35 testSubject = createTestSubject();
36 testSubject.setUniqueId(uniqueId);
41 public void testGetName() throws Exception {
42 RequirementDataDefinition testSubject;
46 testSubject = createTestSubject();
47 result = testSubject.getName();
52 public void testSetName() throws Exception {
53 RequirementDataDefinition testSubject;
57 testSubject = createTestSubject();
58 testSubject.setName(name);
63 public void testGetParentName() throws Exception {
64 RequirementDataDefinition testSubject;
68 testSubject = createTestSubject();
69 result = testSubject.getParentName();
74 public void testSetParentName() throws Exception {
75 RequirementDataDefinition testSubject;
76 String parentName = "";
79 testSubject = createTestSubject();
80 testSubject.setParentName(parentName);
85 public void testGetCapability() throws Exception {
86 RequirementDataDefinition testSubject;
90 testSubject = createTestSubject();
91 result = testSubject.getCapability();
96 public void testSetCapability() throws Exception {
97 RequirementDataDefinition testSubject;
98 String capability = "";
101 testSubject = createTestSubject();
102 testSubject.setCapability(capability);
107 public void testGetNode() throws Exception {
108 RequirementDataDefinition testSubject;
112 testSubject = createTestSubject();
113 result = testSubject.getNode();
118 public void testSetNode() throws Exception {
119 RequirementDataDefinition testSubject;
123 testSubject = createTestSubject();
124 testSubject.setNode(node);
129 public void testGetRelationship() throws Exception {
130 RequirementDataDefinition testSubject;
134 testSubject = createTestSubject();
135 result = testSubject.getRelationship();
140 public void testSetRelationship() throws Exception {
141 RequirementDataDefinition testSubject;
142 String relationship = "";
145 testSubject = createTestSubject();
146 testSubject.setRelationship(relationship);
151 public void testGetOwnerId() throws Exception {
152 RequirementDataDefinition testSubject;
156 testSubject = createTestSubject();
157 result = testSubject.getOwnerId();
162 public void testSetOwnerId() throws Exception {
163 RequirementDataDefinition testSubject;
167 testSubject = createTestSubject();
168 testSubject.setOwnerId(ownerId);
173 public void testGetOwnerName() throws Exception {
174 RequirementDataDefinition testSubject;
178 testSubject = createTestSubject();
179 result = testSubject.getOwnerName();
184 public void testSetOwnerName() throws Exception {
185 RequirementDataDefinition testSubject;
186 String ownerName = "";
189 testSubject = createTestSubject();
190 testSubject.setOwnerName(ownerName);
195 public void testGetMinOccurrences() throws Exception {
196 RequirementDataDefinition testSubject;
200 testSubject = createTestSubject();
201 result = testSubject.getMinOccurrences();
206 public void testSetMinOccurrences() throws Exception {
207 RequirementDataDefinition testSubject;
208 String minOccurrences = "";
211 testSubject = createTestSubject();
212 testSubject.setMinOccurrences(minOccurrences);
217 public void testGetLeftOccurrences() throws Exception {
218 RequirementDataDefinition testSubject;
222 testSubject = createTestSubject();
223 result = testSubject.getLeftOccurrences();
228 public void testSetLeftOccurrences() throws Exception {
229 RequirementDataDefinition testSubject;
230 String leftOccurrences = "";
233 testSubject = createTestSubject();
234 testSubject.setLeftOccurrences(leftOccurrences);
239 public void testGetMaxOccurrences() throws Exception {
240 RequirementDataDefinition testSubject;
244 testSubject = createTestSubject();
245 result = testSubject.getMaxOccurrences();
250 public void testSetMaxOccurrences() throws Exception {
251 RequirementDataDefinition testSubject;
252 String maxOccurrences = "";
255 testSubject = createTestSubject();
256 testSubject.setMaxOccurrences(maxOccurrences);
261 public void testSetPath() throws Exception {
262 RequirementDataDefinition testSubject;
263 List<String> path = null;
266 testSubject = createTestSubject();
267 testSubject.setPath(path);
272 public void testGetPath() throws Exception {
273 RequirementDataDefinition testSubject;
277 testSubject = createTestSubject();
278 result = testSubject.getPath();
283 public void testSetSource() throws Exception {
284 RequirementDataDefinition testSubject;
288 testSubject = createTestSubject();
289 testSubject.setSource(source);
294 public void testGetSource() throws Exception {
295 RequirementDataDefinition testSubject;
299 testSubject = createTestSubject();
300 result = testSubject.getSource();
305 public void testAddToPath() throws Exception {
306 RequirementDataDefinition testSubject;
307 String elementInPath = "";
310 testSubject = createTestSubject();
311 testSubject.addToPath(elementInPath);
316 public void testHashCode() throws Exception {
317 RequirementDataDefinition testSubject;
321 testSubject = createTestSubject();
322 result = testSubject.hashCode();
327 public void testEquals() throws Exception {
328 RequirementDataDefinition testSubject;
333 testSubject = createTestSubject();
335 result = testSubject.equals(obj);
336 Assert.assertEquals(false, result);
341 public void testToString() throws Exception {
342 RequirementDataDefinition testSubject;
346 testSubject = createTestSubject();
347 result = testSubject.toString();