Added oparent to sdc main
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / elements / ForwardingPathDataDefinitionTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.be.datatypes.elements;
22
23 import org.junit.Test;
24
25 public class ForwardingPathDataDefinitionTest {
26
27         private ForwardingPathDataDefinition createTestSubject() {
28                 return new ForwardingPathDataDefinition();
29         }
30
31         @Test
32         public void testConstructors() throws Exception {
33                 ForwardingPathDataDefinition testSubject;
34                 String result;
35
36                 // default test
37                 testSubject = createTestSubject();
38                 new ForwardingPathDataDefinition("mock");
39                 new ForwardingPathDataDefinition(testSubject);
40         }
41         
42         @Test
43         public void testGetName() throws Exception {
44                 ForwardingPathDataDefinition testSubject;
45                 String result;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 result = testSubject.getName();
50         }
51
52         @Test
53         public void testSetName() throws Exception {
54                 ForwardingPathDataDefinition testSubject;
55                 String name = "";
56
57                 // default test
58                 testSubject = createTestSubject();
59                 testSubject.setName(name);
60         }
61
62         @Test
63         public void testGetPathElements() throws Exception {
64                 ForwardingPathDataDefinition testSubject;
65                 ListDataDefinition<ForwardingPathElementDataDefinition> result;
66
67                 // default test
68                 testSubject = createTestSubject();
69                 result = testSubject.getPathElements();
70         }
71
72         @Test
73         public void testSetPathElements() throws Exception {
74                 ForwardingPathDataDefinition testSubject;
75                 ListDataDefinition<ForwardingPathElementDataDefinition> pathElements = null;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 testSubject.setPathElements(pathElements);
80         }
81
82         @Test
83         public void testGetUniqueId() throws Exception {
84                 ForwardingPathDataDefinition testSubject;
85                 String result;
86
87                 // default test
88                 testSubject = createTestSubject();
89                 result = testSubject.getUniqueId();
90         }
91
92         @Test
93         public void testSetUniqueId() throws Exception {
94                 ForwardingPathDataDefinition testSubject;
95                 String uid = "";
96
97                 // default test
98                 testSubject = createTestSubject();
99                 testSubject.setUniqueId(uid);
100         }
101
102         @Test
103         public void testGetProtocol() throws Exception {
104                 ForwardingPathDataDefinition testSubject;
105                 String result;
106
107                 // default test
108                 testSubject = createTestSubject();
109                 result = testSubject.getProtocol();
110         }
111
112         @Test
113         public void testSetProtocol() throws Exception {
114                 ForwardingPathDataDefinition testSubject;
115                 String protocol = "";
116
117                 // default test
118                 testSubject = createTestSubject();
119                 testSubject.setProtocol(protocol);
120         }
121
122         @Test
123         public void testGetDestinationPortNumber() throws Exception {
124                 ForwardingPathDataDefinition testSubject;
125                 String result;
126
127                 // default test
128                 testSubject = createTestSubject();
129                 result = testSubject.getDestinationPortNumber();
130         }
131
132         @Test
133         public void testSetDestinationPortNumber() throws Exception {
134                 ForwardingPathDataDefinition testSubject;
135                 String destinationPortNumber = "";
136
137                 // default test
138                 testSubject = createTestSubject();
139                 testSubject.setDestinationPortNumber(destinationPortNumber);
140         }
141
142         @Test
143         public void testGetDescription() throws Exception {
144                 ForwardingPathDataDefinition testSubject;
145                 String result;
146
147                 // default test
148                 testSubject = createTestSubject();
149                 result = testSubject.getDescription();
150         }
151
152         @Test
153         public void testSetDescription() throws Exception {
154                 ForwardingPathDataDefinition testSubject;
155                 String description = "";
156
157                 // default test
158                 testSubject = createTestSubject();
159                 testSubject.setDescription(description);
160         }
161
162         @Test
163         public void testGetToscaResourceName() throws Exception {
164                 ForwardingPathDataDefinition testSubject;
165                 String result;
166
167                 // default test
168                 testSubject = createTestSubject();
169                 result = testSubject.getToscaResourceName();
170         }
171
172         @Test
173         public void testSetToscaResourceName() throws Exception {
174                 ForwardingPathDataDefinition testSubject;
175                 String toscaResourceName = "";
176
177                 // default test
178                 testSubject = createTestSubject();
179                 testSubject.setToscaResourceName(toscaResourceName);
180         }
181 }