011214a7c9b83d8504318142c3ef0d3b670d3920
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / jsonjanusgraph / datamodel / NodeTypeTest.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.model.jsonjanusgraph.datamodel;
22
23 import java.util.List;
24 import java.util.Map;
25
26 import org.junit.Test;
27 import org.openecomp.sdc.be.datatypes.elements.InterfaceDataDefinition;
28 import org.openecomp.sdc.be.datatypes.elements.ListCapabilityDataDefinition;
29 import org.openecomp.sdc.be.datatypes.elements.ListRequirementDataDefinition;
30 import org.openecomp.sdc.be.datatypes.elements.MapPropertiesDataDefinition;
31 import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
32
33
34 public class NodeTypeTest {
35
36         private NodeType createTestSubject() {
37                 return new NodeType();
38         }
39
40         
41         @Test
42         public void testGetDerivedList() throws Exception {
43                 NodeType testSubject;
44                 List<String> result;
45
46                 // default test
47                 testSubject = createTestSubject();
48                 result = testSubject.getDerivedList();
49         }
50
51         
52         @Test
53         public void testSetDerivedList() throws Exception {
54                 NodeType testSubject;
55                 List<String> derivedList = null;
56
57                 // default test
58                 testSubject = createTestSubject();
59                 testSubject.setDerivedList(derivedList);
60         }
61
62         
63         @Test
64         public void testGetDerivedFrom() throws Exception {
65                 NodeType testSubject;
66                 List<String> result;
67
68                 // default test
69                 testSubject = createTestSubject();
70                 result = testSubject.getDerivedFrom();
71         }
72
73         
74         @Test
75         public void testSetDerivedFrom() throws Exception {
76                 NodeType testSubject;
77                 List<String> derivedFrom = null;
78
79                 // default test
80                 testSubject = createTestSubject();
81                 testSubject.setDerivedFrom(derivedFrom);
82         }
83
84         
85         @Test
86         public void testGetAttributes() throws Exception {
87                 NodeType testSubject;
88                 Map<String, PropertyDataDefinition> result;
89
90                 // default test
91                 testSubject = createTestSubject();
92                 result = testSubject.getAttributes();
93         }
94
95         
96         @Test
97         public void testSetAttributes() throws Exception {
98                 NodeType testSubject;
99                 Map<String, PropertyDataDefinition> attributes = null;
100
101                 // default test
102                 testSubject = createTestSubject();
103                 testSubject.setAttributes(attributes);
104         }
105
106         
107         @Test
108         public void testGetCapabilties() throws Exception {
109                 NodeType testSubject;
110                 Map<String, ListCapabilityDataDefinition> result;
111
112                 // default test
113                 testSubject = createTestSubject();
114                 result = testSubject.getCapabilities();
115         }
116
117         
118         @Test
119         public void testSetCapabilties() throws Exception {
120                 NodeType testSubject;
121                 Map<String, ListCapabilityDataDefinition> capabilties = null;
122
123                 // default test
124                 testSubject = createTestSubject();
125                 testSubject.setCapabilities(capabilties);
126         }
127
128         
129         @Test
130         public void testGetRequirements() throws Exception {
131                 NodeType testSubject;
132                 Map<String, ListRequirementDataDefinition> result;
133
134                 // default test
135                 testSubject = createTestSubject();
136                 result = testSubject.getRequirements();
137         }
138
139         
140         @Test
141         public void testSetRequirements() throws Exception {
142                 NodeType testSubject;
143                 Map<String, ListRequirementDataDefinition> requirements = null;
144
145                 // default test
146                 testSubject = createTestSubject();
147                 testSubject.setRequirements(requirements);
148         }
149
150         
151         @Test
152         public void testGetCapabiltiesProperties() throws Exception {
153                 NodeType testSubject;
154                 Map<String, MapPropertiesDataDefinition> result;
155
156                 // default test
157                 testSubject = createTestSubject();
158                 result = testSubject.getCapabilitiesProperties();
159         }
160
161         
162         @Test
163         public void testSetCapabiltiesProperties() throws Exception {
164                 NodeType testSubject;
165                 Map<String, MapPropertiesDataDefinition> capabiltiesProperties = null;
166
167                 // default test
168                 testSubject = createTestSubject();
169                 testSubject.setCapabilitiesProperties(capabiltiesProperties);
170         }
171
172         
173         @Test
174         public void testGetInterfaceArtifacts() throws Exception {
175                 NodeType testSubject;
176                 Map<String, InterfaceDataDefinition> result;
177
178                 // default test
179                 testSubject = createTestSubject();
180                 result = testSubject.getInterfaceArtifacts();
181         }
182
183         
184         @Test
185         public void testSetInterfaceArtifacts() throws Exception {
186                 NodeType testSubject;
187                 Map<String, InterfaceDataDefinition> interfaceArtifacts = null;
188
189                 // default test
190                 testSubject = createTestSubject();
191                 testSubject.setInterfaceArtifacts(interfaceArtifacts);
192         }
193 }