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.tosca.model;
25 import org.junit.Test;
28 public class ToscaTopolgyTemplateTest {
30 private ToscaTopolgyTemplate createTestSubject() {
31 return new ToscaTopolgyTemplate();
36 public void testGetNode_templates() throws Exception {
37 ToscaTopolgyTemplate testSubject;
38 Map<String, ToscaNodeTemplate> result;
41 testSubject = createTestSubject();
42 result = testSubject.getNode_templates();
47 public void testSetNode_templates() throws Exception {
48 ToscaTopolgyTemplate testSubject;
49 Map<String, ToscaNodeTemplate> node_templates = null;
52 testSubject = createTestSubject();
53 testSubject.setNode_templates(node_templates);
58 public void testGetGroups() throws Exception {
59 ToscaTopolgyTemplate testSubject;
60 Map<String, ToscaGroupTemplate> result;
63 testSubject = createTestSubject();
64 result = testSubject.getGroups();
71 public void testGetSubstitution_mappings() throws Exception {
72 ToscaTopolgyTemplate testSubject;
73 SubstitutionMapping result;
76 testSubject = createTestSubject();
77 result = testSubject.getSubstitution_mappings();
82 public void testSetSubstitution_mappings() throws Exception {
83 ToscaTopolgyTemplate testSubject;
84 SubstitutionMapping substitution_mapping = null;
87 testSubject = createTestSubject();
88 testSubject.setSubstitution_mappings(substitution_mapping);
93 public void testGetInputs() throws Exception {
94 ToscaTopolgyTemplate testSubject;
95 Map<String, ToscaProperty> result;
98 testSubject = createTestSubject();
99 result = testSubject.getInputs();
104 public void testSetInputs() throws Exception {
105 ToscaTopolgyTemplate testSubject;
106 Map<String, ToscaProperty> inputs = null;
109 testSubject = createTestSubject();
110 testSubject.setInputs(inputs);