Added oparent to sdc main
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / elements / ForwardingPathElementDataDefinitionTest.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.Assert;
24 import org.junit.Test;
25
26 public class ForwardingPathElementDataDefinitionTest {
27
28         private ForwardingPathElementDataDefinition createTestSubject() {
29                 return new ForwardingPathElementDataDefinition();
30         }
31
32         @Test
33         public void testConstructors() throws Exception {
34                 ForwardingPathElementDataDefinition testSubject;
35                 String result;
36
37                 // default test
38                 testSubject = createTestSubject();
39                 new ForwardingPathElementDataDefinition(testSubject);
40                 new ForwardingPathElementDataDefinition("mock", "mock", "mock", "mock", "mock", "mock");
41         }
42         
43         @Test
44         public void testGetFromNode() throws Exception {
45                 ForwardingPathElementDataDefinition testSubject;
46                 String result;
47
48                 // default test
49                 testSubject = createTestSubject();
50                 result = testSubject.getFromNode();
51         }
52
53         @Test
54         public void testSetFromNode() throws Exception {
55                 ForwardingPathElementDataDefinition testSubject;
56                 String fromNode = "";
57
58                 // default test
59                 testSubject = createTestSubject();
60                 testSubject.setFromNode(fromNode);
61         }
62
63         @Test
64         public void testGetToNode() throws Exception {
65                 ForwardingPathElementDataDefinition testSubject;
66                 String result;
67
68                 // default test
69                 testSubject = createTestSubject();
70                 result = testSubject.getToNode();
71         }
72
73         @Test
74         public void testSetToNode() throws Exception {
75                 ForwardingPathElementDataDefinition testSubject;
76                 String toNode = "";
77
78                 // default test
79                 testSubject = createTestSubject();
80                 testSubject.setToNode(toNode);
81         }
82
83         @Test
84         public void testGetFromCP() throws Exception {
85                 ForwardingPathElementDataDefinition testSubject;
86                 String result;
87
88                 // default test
89                 testSubject = createTestSubject();
90                 result = testSubject.getFromCP();
91         }
92
93         @Test
94         public void testSetFromCP() throws Exception {
95                 ForwardingPathElementDataDefinition testSubject;
96                 String fromCP = "";
97
98                 // default test
99                 testSubject = createTestSubject();
100                 testSubject.setFromCP(fromCP);
101         }
102
103         @Test
104         public void testGetToCP() throws Exception {
105                 ForwardingPathElementDataDefinition testSubject;
106                 String result;
107
108                 // default test
109                 testSubject = createTestSubject();
110                 result = testSubject.getToCP();
111         }
112
113         @Test
114         public void testSetToCP() throws Exception {
115                 ForwardingPathElementDataDefinition testSubject;
116                 String toCP = "";
117
118                 // default test
119                 testSubject = createTestSubject();
120                 testSubject.setToCP(toCP);
121         }
122
123         @Test
124         public void testGetToCPOriginId() throws Exception {
125                 ForwardingPathElementDataDefinition testSubject;
126                 String result;
127
128                 // default test
129                 testSubject = createTestSubject();
130                 result = testSubject.getToCPOriginId();
131         }
132
133         @Test
134         public void testSetToCPOriginId() throws Exception {
135                 ForwardingPathElementDataDefinition testSubject;
136                 String toCPOriginId = "";
137
138                 // default test
139                 testSubject = createTestSubject();
140                 testSubject.setToCPOriginId(toCPOriginId);
141         }
142
143         @Test
144         public void testGetFromCPOriginId() throws Exception {
145                 ForwardingPathElementDataDefinition testSubject;
146                 String result;
147
148                 // default test
149                 testSubject = createTestSubject();
150                 result = testSubject.getFromCPOriginId();
151         }
152
153         @Test
154         public void testSetFromCPOriginId() throws Exception {
155                 ForwardingPathElementDataDefinition testSubject;
156                 String fromCPOriginId = "";
157
158                 // default test
159                 testSubject = createTestSubject();
160                 testSubject.setFromCPOriginId(fromCPOriginId);
161         }
162
163         @Test
164         public void testEquals() throws Exception {
165                 ForwardingPathElementDataDefinition testSubject;
166                 Object o = null;
167                 boolean result;
168
169                 // test 1
170                 testSubject = createTestSubject();
171                 result = testSubject.equals(o);
172                 Assert.assertEquals(false, result);
173                 result = testSubject.equals(testSubject);
174                 Assert.assertEquals(true, result);
175                 result = testSubject.equals(createTestSubject());
176                 Assert.assertEquals(true, result);
177         }
178
179         @Test
180         public void testHashCode() throws Exception {
181                 ForwardingPathElementDataDefinition testSubject;
182                 int result;
183
184                 // default test
185                 testSubject = createTestSubject();
186                 result = testSubject.hashCode();
187         }
188
189         @Test
190         public void testToString() throws Exception {
191                 ForwardingPathElementDataDefinition testSubject;
192                 String result;
193
194                 // default test
195                 testSubject = createTestSubject();
196                 result = testSubject.toString();
197         }
198 }