new unit tests for sdc-be
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / tosca / model / ToscaInterfaceNodeTypeTest.java
1 package org.openecomp.sdc.be.tosca.model;
2
3 import java.util.Map;
4
5 import org.junit.Assert;
6 import org.junit.Test;
7
8 public class ToscaInterfaceNodeTypeTest {
9
10         private ToscaInterfaceNodeType createTestSubject() {
11                 return new ToscaInterfaceNodeType();
12         }
13
14         @Test
15         public void testGetDerived_from() throws Exception {
16                 ToscaInterfaceNodeType testSubject;
17                 String result;
18
19                 // default test
20                 testSubject = createTestSubject();
21                 result = testSubject.getDerived_from();
22         }
23
24         @Test
25         public void testSetDerived_from() throws Exception {
26                 ToscaInterfaceNodeType testSubject;
27                 String derived_from = "";
28
29                 // default test
30                 testSubject = createTestSubject();
31                 testSubject.setDerived_from(derived_from);
32         }
33
34         @Test
35         public void testGetDescription() throws Exception {
36                 ToscaInterfaceNodeType testSubject;
37                 String result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getDescription();
42         }
43
44         @Test
45         public void testSetDescription() throws Exception {
46                 ToscaInterfaceNodeType testSubject;
47                 String description = "";
48
49                 // default test
50                 testSubject = createTestSubject();
51                 testSubject.setDescription(description);
52         }
53
54         @Test
55         public void testEquals() throws Exception {
56                 ToscaInterfaceNodeType testSubject;
57                 Object o = null;
58                 boolean result;
59
60                 // test 1
61                 testSubject = createTestSubject();
62                 o = null;
63                 result = testSubject.equals(o);
64                 Assert.assertEquals(false, result);
65                 result = testSubject.equals(testSubject);
66                 Assert.assertEquals(true, result);
67                 result = testSubject.equals(createTestSubject());
68                 Assert.assertEquals(true, result);
69
70         }
71
72         @Test
73         public void testHashCode() throws Exception {
74                 ToscaInterfaceNodeType testSubject;
75                 int result;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 result = testSubject.hashCode();
80         }
81
82         @Test
83         public void testGetOperations() throws Exception {
84                 ToscaInterfaceNodeType testSubject;
85                 Map<String, Object> result;
86
87                 // default test
88                 testSubject = createTestSubject();
89                 result = testSubject.getOperations();
90         }
91
92         @Test
93         public void testSetOperations() throws Exception {
94                 ToscaInterfaceNodeType testSubject;
95                 Map<String, Object> operations = null;
96
97                 // default test
98                 testSubject = createTestSubject();
99                 testSubject.setOperations(operations);
100         }
101 }