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;
23 import org.junit.Assert;
24 import org.junit.Test;
28 public class ToscaInterfaceNodeTypeTest {
30 private ToscaInterfaceNodeType createTestSubject() {
31 return new ToscaInterfaceNodeType();
35 public void testGetDerived_from() throws Exception {
36 ToscaInterfaceNodeType testSubject;
40 testSubject = createTestSubject();
41 result = testSubject.getDerived_from();
45 public void testSetDerived_from() throws Exception {
46 ToscaInterfaceNodeType testSubject;
47 String derived_from = "";
50 testSubject = createTestSubject();
51 testSubject.setDerived_from(derived_from);
55 public void testGetDescription() throws Exception {
56 ToscaInterfaceNodeType testSubject;
60 testSubject = createTestSubject();
61 result = testSubject.getDescription();
65 public void testSetDescription() throws Exception {
66 ToscaInterfaceNodeType testSubject;
67 String description = "";
70 testSubject = createTestSubject();
71 testSubject.setDescription(description);
75 public void testEquals() throws Exception {
76 ToscaInterfaceNodeType testSubject;
81 testSubject = createTestSubject();
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);
93 public void testHashCode() throws Exception {
94 ToscaInterfaceNodeType testSubject;
98 testSubject = createTestSubject();
99 result = testSubject.hashCode();
103 public void testGetOperations() throws Exception {
104 ToscaInterfaceNodeType testSubject;
105 Map<String, Object> result;
108 testSubject = createTestSubject();
109 result = testSubject.getOperations();
113 public void testSetOperations() throws Exception {
114 ToscaInterfaceNodeType testSubject;
115 Map<String, Object> operations = null;
118 testSubject = createTestSubject();
119 testSubject.setOperations(operations);