Release version 1.13.7
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / tosca / model / ToscaInterfaceNodeTypeTest.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.tosca.model;
22
23 import org.junit.Assert;
24 import org.junit.Test;
25
26 import java.util.Map;
27
28 public class ToscaInterfaceNodeTypeTest {
29
30         private ToscaInterfaceNodeType createTestSubject() {
31                 return new ToscaInterfaceNodeType();
32         }
33
34         @Test
35         public void testGetDerived_from() throws Exception {
36                 ToscaInterfaceNodeType testSubject;
37                 String result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getDerived_from();
42         }
43
44         @Test
45         public void testSetDerived_from() throws Exception {
46                 ToscaInterfaceNodeType testSubject;
47                 String derived_from = "";
48
49                 // default test
50                 testSubject = createTestSubject();
51                 testSubject.setDerived_from(derived_from);
52         }
53
54         @Test
55         public void testGetDescription() throws Exception {
56                 ToscaInterfaceNodeType testSubject;
57                 String result;
58
59                 // default test
60                 testSubject = createTestSubject();
61                 result = testSubject.getDescription();
62         }
63
64         @Test
65         public void testSetDescription() throws Exception {
66                 ToscaInterfaceNodeType testSubject;
67                 String description = "";
68
69                 // default test
70                 testSubject = createTestSubject();
71                 testSubject.setDescription(description);
72         }
73
74         @Test
75         public void testEquals() throws Exception {
76                 ToscaInterfaceNodeType testSubject;
77                 Object o = null;
78                 boolean result;
79
80                 // test 1
81                 testSubject = createTestSubject();
82                 o = null;
83                 result = testSubject.equals(o);
84                 Assert.assertEquals(false, result);
85                 result = testSubject.equals(testSubject);
86                 Assert.assertEquals(true, result);
87                 result = testSubject.equals(createTestSubject());
88                 Assert.assertEquals(true, result);
89
90         }
91
92         @Test
93         public void testHashCode() throws Exception {
94                 ToscaInterfaceNodeType testSubject;
95                 int result;
96
97                 // default test
98                 testSubject = createTestSubject();
99                 result = testSubject.hashCode();
100         }
101
102         @Test
103         public void testGetOperations() throws Exception {
104                 ToscaInterfaceNodeType testSubject;
105                 Map<String, Object> result;
106
107                 // default test
108                 testSubject = createTestSubject();
109                 result = testSubject.getOperations();
110         }
111
112         @Test
113         public void testSetOperations() throws Exception {
114                 ToscaInterfaceNodeType testSubject;
115                 Map<String, Object> operations = null;
116
117                 // default test
118                 testSubject = createTestSubject();
119                 testSubject.setOperations(operations);
120         }
121 }