2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.model.jsonjanusgraph.datamodel;
23 import java.util.List;
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;
34 public class NodeTypeTest {
36 private NodeType createTestSubject() {
37 return new NodeType();
42 public void testGetDerivedList() throws Exception {
47 testSubject = createTestSubject();
48 result = testSubject.getDerivedList();
53 public void testSetDerivedList() throws Exception {
55 List<String> derivedList = null;
58 testSubject = createTestSubject();
59 testSubject.setDerivedList(derivedList);
64 public void testGetDerivedFrom() throws Exception {
69 testSubject = createTestSubject();
70 result = testSubject.getDerivedFrom();
75 public void testSetDerivedFrom() throws Exception {
77 List<String> derivedFrom = null;
80 testSubject = createTestSubject();
81 testSubject.setDerivedFrom(derivedFrom);
86 public void testGetAttributes() throws Exception {
88 Map<String, PropertyDataDefinition> result;
91 testSubject = createTestSubject();
92 result = testSubject.getAttributes();
97 public void testSetAttributes() throws Exception {
99 Map<String, PropertyDataDefinition> attributes = null;
102 testSubject = createTestSubject();
103 testSubject.setAttributes(attributes);
108 public void testGetCapabilties() throws Exception {
109 NodeType testSubject;
110 Map<String, ListCapabilityDataDefinition> result;
113 testSubject = createTestSubject();
114 result = testSubject.getCapabilities();
119 public void testSetCapabilties() throws Exception {
120 NodeType testSubject;
121 Map<String, ListCapabilityDataDefinition> capabilties = null;
124 testSubject = createTestSubject();
125 testSubject.setCapabilities(capabilties);
130 public void testGetRequirements() throws Exception {
131 NodeType testSubject;
132 Map<String, ListRequirementDataDefinition> result;
135 testSubject = createTestSubject();
136 result = testSubject.getRequirements();
141 public void testSetRequirements() throws Exception {
142 NodeType testSubject;
143 Map<String, ListRequirementDataDefinition> requirements = null;
146 testSubject = createTestSubject();
147 testSubject.setRequirements(requirements);
152 public void testGetCapabiltiesProperties() throws Exception {
153 NodeType testSubject;
154 Map<String, MapPropertiesDataDefinition> result;
157 testSubject = createTestSubject();
158 result = testSubject.getCapabilitiesProperties();
163 public void testSetCapabiltiesProperties() throws Exception {
164 NodeType testSubject;
165 Map<String, MapPropertiesDataDefinition> capabiltiesProperties = null;
168 testSubject = createTestSubject();
169 testSubject.setCapabilitiesProperties(capabiltiesProperties);
174 public void testGetInterfaceArtifacts() throws Exception {
175 NodeType testSubject;
176 Map<String, InterfaceDataDefinition> result;
179 testSubject = createTestSubject();
180 result = testSubject.getInterfaceArtifacts();
185 public void testSetInterfaceArtifacts() throws Exception {
186 NodeType testSubject;
187 Map<String, InterfaceDataDefinition> interfaceArtifacts = null;
190 testSubject = createTestSubject();
191 testSubject.setInterfaceArtifacts(interfaceArtifacts);