1 package org.openecomp.sdc.be.datatypes.elements;
5 public class ForwardingPathDataDefinitionTest {
7 private ForwardingPathDataDefinition createTestSubject() {
8 return new ForwardingPathDataDefinition();
12 public void testConstructors() throws Exception {
13 ForwardingPathDataDefinition testSubject;
17 testSubject = createTestSubject();
18 new ForwardingPathDataDefinition("mock");
19 new ForwardingPathDataDefinition(testSubject);
23 public void testGetName() throws Exception {
24 ForwardingPathDataDefinition testSubject;
28 testSubject = createTestSubject();
29 result = testSubject.getName();
33 public void testSetName() throws Exception {
34 ForwardingPathDataDefinition testSubject;
38 testSubject = createTestSubject();
39 testSubject.setName(name);
43 public void testGetPathElements() throws Exception {
44 ForwardingPathDataDefinition testSubject;
45 ListDataDefinition<ForwardingPathElementDataDefinition> result;
48 testSubject = createTestSubject();
49 result = testSubject.getPathElements();
53 public void testSetPathElements() throws Exception {
54 ForwardingPathDataDefinition testSubject;
55 ListDataDefinition<ForwardingPathElementDataDefinition> pathElements = null;
58 testSubject = createTestSubject();
59 testSubject.setPathElements(pathElements);
63 public void testGetUniqueId() throws Exception {
64 ForwardingPathDataDefinition testSubject;
68 testSubject = createTestSubject();
69 result = testSubject.getUniqueId();
73 public void testSetUniqueId() throws Exception {
74 ForwardingPathDataDefinition testSubject;
78 testSubject = createTestSubject();
79 testSubject.setUniqueId(uid);
83 public void testGetProtocol() throws Exception {
84 ForwardingPathDataDefinition testSubject;
88 testSubject = createTestSubject();
89 result = testSubject.getProtocol();
93 public void testSetProtocol() throws Exception {
94 ForwardingPathDataDefinition testSubject;
98 testSubject = createTestSubject();
99 testSubject.setProtocol(protocol);
103 public void testGetDestinationPortNumber() throws Exception {
104 ForwardingPathDataDefinition testSubject;
108 testSubject = createTestSubject();
109 result = testSubject.getDestinationPortNumber();
113 public void testSetDestinationPortNumber() throws Exception {
114 ForwardingPathDataDefinition testSubject;
115 String destinationPortNumber = "";
118 testSubject = createTestSubject();
119 testSubject.setDestinationPortNumber(destinationPortNumber);
123 public void testGetDescription() throws Exception {
124 ForwardingPathDataDefinition testSubject;
128 testSubject = createTestSubject();
129 result = testSubject.getDescription();
133 public void testSetDescription() throws Exception {
134 ForwardingPathDataDefinition testSubject;
135 String description = "";
138 testSubject = createTestSubject();
139 testSubject.setDescription(description);
143 public void testGetToscaResourceName() throws Exception {
144 ForwardingPathDataDefinition testSubject;
148 testSubject = createTestSubject();
149 result = testSubject.getToscaResourceName();
153 public void testSetToscaResourceName() throws Exception {
154 ForwardingPathDataDefinition testSubject;
155 String toscaResourceName = "";
158 testSubject = createTestSubject();
159 testSubject.setToscaResourceName(toscaResourceName);