Add UI support for adding tosca artifact types
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / tosca / model / ToscaLifecycleOperationDefinitionTest.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.tosca.model;
22
23 import java.util.Map;
24 import org.junit.Assert;
25 import org.junit.Test;
26
27 public class ToscaLifecycleOperationDefinitionTest {
28
29         private ToscaLifecycleOperationDefinition createTestSubject() {
30                 return new ToscaLifecycleOperationDefinition();
31         }
32
33         @Test
34         public void testGetImplementation() throws Exception {
35                 ToscaLifecycleOperationDefinition testSubject;
36                 Object result;
37
38                 // default test
39                 testSubject = createTestSubject();
40                 result = testSubject.getImplementation();
41         }
42
43         @Test
44         public void testSetImplementation() throws Exception {
45                 ToscaLifecycleOperationDefinition testSubject;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 testSubject.setImplementation(new ToscaInterfaceOperationImplementation());
50         }
51
52         @Test
53         public void testGetInputs() throws Exception {
54                 ToscaLifecycleOperationDefinition testSubject;
55                 Map<String, ToscaProperty> result;
56
57                 // default test
58                 testSubject = createTestSubject();
59                 result = testSubject.getInputs();
60         }
61
62         @Test
63         public void testSetInputs() throws Exception {
64                 ToscaLifecycleOperationDefinition testSubject;
65                 Map<String, ToscaProperty> inputs = null;
66
67                 // default test
68                 testSubject = createTestSubject();
69                 testSubject.setInputs(inputs);
70         }
71
72         @Test
73         public void testEquals() throws Exception {
74                 ToscaLifecycleOperationDefinition testSubject;
75                 Object o = null;
76                 boolean result;
77
78                 // test 1
79                 testSubject = createTestSubject();
80                 o = null;
81                 result = testSubject.equals(o);
82                 Assert.assertEquals(false, result);
83                 result = testSubject.equals(testSubject);
84                 Assert.assertEquals(true, result);
85                 result = testSubject.equals(createTestSubject());
86                 Assert.assertEquals(true, result);
87         }
88
89         @Test
90         public void testHashCode() throws Exception {
91                 ToscaLifecycleOperationDefinition testSubject;
92                 int result;
93
94                 // default test
95                 testSubject = createTestSubject();
96                 result = testSubject.hashCode();
97         }
98
99         @Test
100         public void testGetDescription() throws Exception {
101                 ToscaLifecycleOperationDefinition testSubject;
102                 String result;
103
104                 // default test
105                 testSubject = createTestSubject();
106                 result = testSubject.getDescription();
107         }
108
109         @Test
110         public void testSetDescription() throws Exception {
111                 ToscaLifecycleOperationDefinition testSubject;
112                 String description = "";
113
114                 // default test
115                 testSubject = createTestSubject();
116                 testSubject.setDescription(description);
117         }
118 }