1 package org.openecomp.sdc.be.datatypes.elements;
3 import org.junit.Assert;
6 public class ForwardingPathElementDataDefinitionTest {
8 private ForwardingPathElementDataDefinition createTestSubject() {
9 return new ForwardingPathElementDataDefinition();
13 public void testConstructors() throws Exception {
14 ForwardingPathElementDataDefinition testSubject;
18 testSubject = createTestSubject();
19 new ForwardingPathElementDataDefinition(testSubject);
20 new ForwardingPathElementDataDefinition("mock", "mock", "mock", "mock", "mock", "mock");
24 public void testGetFromNode() throws Exception {
25 ForwardingPathElementDataDefinition testSubject;
29 testSubject = createTestSubject();
30 result = testSubject.getFromNode();
34 public void testSetFromNode() throws Exception {
35 ForwardingPathElementDataDefinition testSubject;
39 testSubject = createTestSubject();
40 testSubject.setFromNode(fromNode);
44 public void testGetToNode() throws Exception {
45 ForwardingPathElementDataDefinition testSubject;
49 testSubject = createTestSubject();
50 result = testSubject.getToNode();
54 public void testSetToNode() throws Exception {
55 ForwardingPathElementDataDefinition testSubject;
59 testSubject = createTestSubject();
60 testSubject.setToNode(toNode);
64 public void testGetFromCP() throws Exception {
65 ForwardingPathElementDataDefinition testSubject;
69 testSubject = createTestSubject();
70 result = testSubject.getFromCP();
74 public void testSetFromCP() throws Exception {
75 ForwardingPathElementDataDefinition testSubject;
79 testSubject = createTestSubject();
80 testSubject.setFromCP(fromCP);
84 public void testGetToCP() throws Exception {
85 ForwardingPathElementDataDefinition testSubject;
89 testSubject = createTestSubject();
90 result = testSubject.getToCP();
94 public void testSetToCP() throws Exception {
95 ForwardingPathElementDataDefinition testSubject;
99 testSubject = createTestSubject();
100 testSubject.setToCP(toCP);
104 public void testGetToCPOriginId() throws Exception {
105 ForwardingPathElementDataDefinition testSubject;
109 testSubject = createTestSubject();
110 result = testSubject.getToCPOriginId();
114 public void testSetToCPOriginId() throws Exception {
115 ForwardingPathElementDataDefinition testSubject;
116 String toCPOriginId = "";
119 testSubject = createTestSubject();
120 testSubject.setToCPOriginId(toCPOriginId);
124 public void testGetFromCPOriginId() throws Exception {
125 ForwardingPathElementDataDefinition testSubject;
129 testSubject = createTestSubject();
130 result = testSubject.getFromCPOriginId();
134 public void testSetFromCPOriginId() throws Exception {
135 ForwardingPathElementDataDefinition testSubject;
136 String fromCPOriginId = "";
139 testSubject = createTestSubject();
140 testSubject.setFromCPOriginId(fromCPOriginId);
144 public void testEquals() throws Exception {
145 ForwardingPathElementDataDefinition testSubject;
150 testSubject = createTestSubject();
151 result = testSubject.equals(o);
152 Assert.assertEquals(false, result);
153 result = testSubject.equals(testSubject);
154 Assert.assertEquals(true, result);
155 result = testSubject.equals(createTestSubject());
156 Assert.assertEquals(true, result);
160 public void testHashCode() throws Exception {
161 ForwardingPathElementDataDefinition testSubject;
165 testSubject = createTestSubject();
166 result = testSubject.hashCode();
170 public void testToString() throws Exception {
171 ForwardingPathElementDataDefinition testSubject;
175 testSubject = createTestSubject();
176 result = testSubject.toString();