Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / PropertyValueDataTest.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.resources.data;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.elements.PropertyRule;
25
26 import java.util.HashMap;
27 import java.util.List;
28 import java.util.Map;
29
30
31 public class PropertyValueDataTest {
32
33         private PropertyValueData createTestSubject() {
34                 return new PropertyValueData();
35         }
36
37         @Test
38         public void testCtor() throws Exception {
39                 new PropertyValueData(new HashMap<>());
40         }
41         
42         @Test
43         public void testGetUniqueId() throws Exception {
44                 PropertyValueData testSubject;
45                 String result;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 result = testSubject.getUniqueId();
50         }
51
52         
53         @Test
54         public void testSetUniqueId() throws Exception {
55                 PropertyValueData testSubject;
56                 String uniqueId = "";
57
58                 // default test
59                 testSubject = createTestSubject();
60                 testSubject.setUniqueId(uniqueId);
61         }
62
63         
64         @Test
65         public void testGetType() throws Exception {
66                 PropertyValueData testSubject;
67                 String result;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 result = testSubject.getType();
72         }
73
74         
75         @Test
76         public void testSetType() throws Exception {
77                 PropertyValueData testSubject;
78                 String type = "";
79
80                 // default test
81                 testSubject = createTestSubject();
82                 testSubject.setType(type);
83         }
84
85         
86         @Test
87         public void testGetCreationTime() throws Exception {
88                 PropertyValueData testSubject;
89                 Long result;
90
91                 // default test
92                 testSubject = createTestSubject();
93                 result = testSubject.getCreationTime();
94         }
95
96         
97         @Test
98         public void testSetCreationTime() throws Exception {
99                 PropertyValueData testSubject;
100                 Long creationTime = null;
101
102                 // default test
103                 testSubject = createTestSubject();
104                 testSubject.setCreationTime(creationTime);
105         }
106
107         
108         @Test
109         public void testGetModificationTime() throws Exception {
110                 PropertyValueData testSubject;
111                 Long result;
112
113                 // default test
114                 testSubject = createTestSubject();
115                 result = testSubject.getModificationTime();
116         }
117
118         
119         @Test
120         public void testSetModificationTime() throws Exception {
121                 PropertyValueData testSubject;
122                 Long modificationTime = null;
123
124                 // default test
125                 testSubject = createTestSubject();
126                 testSubject.setModificationTime(modificationTime);
127         }
128
129         
130         @Test
131         public void testGetValue() throws Exception {
132                 PropertyValueData testSubject;
133                 String result;
134
135                 // default test
136                 testSubject = createTestSubject();
137                 result = testSubject.getValue();
138         }
139
140         
141         @Test
142         public void testSetValue() throws Exception {
143                 PropertyValueData testSubject;
144                 String value = "";
145
146                 // default test
147                 testSubject = createTestSubject();
148                 testSubject.setValue(value);
149         }
150
151         
152         @Test
153         public void testGetRules() throws Exception {
154                 PropertyValueData testSubject;
155                 List<PropertyRule> result;
156
157                 // default test
158                 testSubject = createTestSubject();
159                 result = testSubject.getRules();
160         }
161
162         
163         @Test
164         public void testSetRules() throws Exception {
165                 PropertyValueData testSubject;
166                 List<PropertyRule> rules = null;
167
168                 // default test
169                 testSubject = createTestSubject();
170                 testSubject.setRules(rules);
171         }
172
173         
174         @Test
175         public void testToGraphMap() throws Exception {
176                 PropertyValueData testSubject;
177                 Map<String, Object> result;
178
179                 // default test
180                 testSubject = createTestSubject();
181                 result = testSubject.toGraphMap();
182         }
183
184         
185         @Test
186         public void testToString() throws Exception {
187                 PropertyValueData testSubject;
188                 String result;
189
190                 // default test
191                 testSubject = createTestSubject();
192                 result = testSubject.toString();
193         }
194 }