1 package org.openecomp.sdc.be.tosca.model;
9 public class ToscaNodeTypeTest {
11 private ToscaNodeType createTestSubject() {
12 return new ToscaNodeType();
17 public void testGetProperties() throws Exception {
18 ToscaNodeType testSubject;
19 Map<String, ToscaProperty> result;
22 testSubject = createTestSubject();
23 result = testSubject.getProperties();
28 public void testSetProperties() throws Exception {
29 ToscaNodeType testSubject;
30 Map<String, ToscaProperty> properties = null;
33 testSubject = createTestSubject();
34 testSubject.setProperties(properties);
39 public void testGetCapabilities() throws Exception {
40 ToscaNodeType testSubject;
41 Map<String, ToscaCapability> result;
44 testSubject = createTestSubject();
45 result = testSubject.getCapabilities();
50 public void testSetCapabilities() throws Exception {
51 ToscaNodeType testSubject;
52 Map<String, ToscaCapability> capabilities = null;
55 testSubject = createTestSubject();
56 testSubject.setCapabilities(capabilities);
61 public void testGetRequirements() throws Exception {
62 ToscaNodeType testSubject;
63 List<Map<String, ToscaRequirement>> result;
66 testSubject = createTestSubject();
67 result = testSubject.getRequirements();
72 public void testSetRequirements() throws Exception {
73 ToscaNodeType testSubject;
74 List<Map<String, ToscaRequirement>> requirements = null;
77 testSubject = createTestSubject();
78 testSubject.setRequirements(requirements);
83 public void testGetDerived_from() throws Exception {
84 ToscaNodeType testSubject;
88 testSubject = createTestSubject();
89 result = testSubject.getDerived_from();
94 public void testSetDerived_from() throws Exception {
95 ToscaNodeType testSubject;
96 String derived_from = "";
99 testSubject = createTestSubject();
100 testSubject.setDerived_from(derived_from);
105 public void testGetDescription() throws Exception {
106 ToscaNodeType testSubject;
110 testSubject = createTestSubject();
111 result = testSubject.getDescription();
116 public void testSetDescription() throws Exception {
117 ToscaNodeType testSubject;
118 String description = "";
121 testSubject = createTestSubject();
122 testSubject.setDescription(description);
127 public void testGetMetadata() throws Exception {
128 ToscaNodeType testSubject;
129 ToscaMetadata result;
132 testSubject = createTestSubject();
133 result = testSubject.getMetadata();
138 public void testSetMetadata() throws Exception {
139 ToscaNodeType testSubject;
140 ToscaMetadata metadata = null;
143 testSubject = createTestSubject();
144 testSubject.setMetadata(metadata);