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