2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.be.datatypes.elements;
23 import org.junit.Test;
25 public class ForwardingPathDataDefinitionTest {
27 private ForwardingPathDataDefinition createTestSubject() {
28 return new ForwardingPathDataDefinition();
32 public void testConstructors() throws Exception {
33 ForwardingPathDataDefinition testSubject;
37 testSubject = createTestSubject();
38 new ForwardingPathDataDefinition("mock");
39 new ForwardingPathDataDefinition(testSubject);
43 public void testGetName() throws Exception {
44 ForwardingPathDataDefinition testSubject;
48 testSubject = createTestSubject();
49 result = testSubject.getName();
53 public void testSetName() throws Exception {
54 ForwardingPathDataDefinition testSubject;
58 testSubject = createTestSubject();
59 testSubject.setName(name);
63 public void testGetPathElements() throws Exception {
64 ForwardingPathDataDefinition testSubject;
65 ListDataDefinition<ForwardingPathElementDataDefinition> result;
68 testSubject = createTestSubject();
69 result = testSubject.getPathElements();
73 public void testSetPathElements() throws Exception {
74 ForwardingPathDataDefinition testSubject;
75 ListDataDefinition<ForwardingPathElementDataDefinition> pathElements = null;
78 testSubject = createTestSubject();
79 testSubject.setPathElements(pathElements);
83 public void testGetUniqueId() throws Exception {
84 ForwardingPathDataDefinition testSubject;
88 testSubject = createTestSubject();
89 result = testSubject.getUniqueId();
93 public void testSetUniqueId() throws Exception {
94 ForwardingPathDataDefinition testSubject;
98 testSubject = createTestSubject();
99 testSubject.setUniqueId(uid);
103 public void testGetProtocol() throws Exception {
104 ForwardingPathDataDefinition testSubject;
108 testSubject = createTestSubject();
109 result = testSubject.getProtocol();
113 public void testSetProtocol() throws Exception {
114 ForwardingPathDataDefinition testSubject;
115 String protocol = "";
118 testSubject = createTestSubject();
119 testSubject.setProtocol(protocol);
123 public void testGetDestinationPortNumber() throws Exception {
124 ForwardingPathDataDefinition testSubject;
128 testSubject = createTestSubject();
129 result = testSubject.getDestinationPortNumber();
133 public void testSetDestinationPortNumber() throws Exception {
134 ForwardingPathDataDefinition testSubject;
135 String destinationPortNumber = "";
138 testSubject = createTestSubject();
139 testSubject.setDestinationPortNumber(destinationPortNumber);
143 public void testGetDescription() throws Exception {
144 ForwardingPathDataDefinition testSubject;
148 testSubject = createTestSubject();
149 result = testSubject.getDescription();
153 public void testSetDescription() throws Exception {
154 ForwardingPathDataDefinition testSubject;
155 String description = "";
158 testSubject = createTestSubject();
159 testSubject.setDescription(description);
163 public void testGetToscaResourceName() throws Exception {
164 ForwardingPathDataDefinition testSubject;
168 testSubject = createTestSubject();
169 result = testSubject.getToscaResourceName();
173 public void testSetToscaResourceName() throws Exception {
174 ForwardingPathDataDefinition testSubject;
175 String toscaResourceName = "";
178 testSubject = createTestSubject();
179 testSubject.setToscaResourceName(toscaResourceName);