Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / auditing / EcompOperationalEnvironmentEventTest.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.auditing;
22
23 import org.junit.Test;
24
25 import java.util.Date;
26
27 public class EcompOperationalEnvironmentEventTest {
28
29         private EcompOperationalEnvironmentEvent createTestSubject() {
30                 return new EcompOperationalEnvironmentEvent();
31         }
32
33         @Test
34         public void testCtor() throws Exception {
35                 new EcompOperationalEnvironmentEvent();
36                 new EcompOperationalEnvironmentEvent("mock", "mock", "mock", "mock", "mock", "mock");
37         }
38         
39         @Test
40         public void testGetOperationalEnvironmentId() throws Exception {
41                 EcompOperationalEnvironmentEvent testSubject;
42                 String result;
43
44                 // default test
45                 testSubject = createTestSubject();
46                 result = testSubject.getOperationalEnvironmentId();
47         }
48
49         @Test
50         public void testSetOperationalEnvironmentId() throws Exception {
51                 EcompOperationalEnvironmentEvent testSubject;
52                 String operationalEnvironmentId = "";
53
54                 // default test
55                 testSubject = createTestSubject();
56                 testSubject.setOperationalEnvironmentId(operationalEnvironmentId);
57         }
58
59         @Test
60         public void testGetOperationalEnvironmentAction() throws Exception {
61                 EcompOperationalEnvironmentEvent testSubject;
62                 String result;
63
64                 // default test
65                 testSubject = createTestSubject();
66                 result = testSubject.getOperationalEnvironmentAction();
67         }
68
69         @Test
70         public void testSetOperationalEnvironmentAction() throws Exception {
71                 EcompOperationalEnvironmentEvent testSubject;
72                 String operationalEnvironmentAction = "";
73
74                 // default test
75                 testSubject = createTestSubject();
76                 testSubject.setOperationalEnvironmentAction(operationalEnvironmentAction);
77         }
78
79         @Test
80         public void testGetOperationalEnvironmentName() throws Exception {
81                 EcompOperationalEnvironmentEvent testSubject;
82                 String result;
83
84                 // default test
85                 testSubject = createTestSubject();
86                 result = testSubject.getOperationalEnvironmentName();
87         }
88
89         @Test
90         public void testSetOperationalEnvironmentName() throws Exception {
91                 EcompOperationalEnvironmentEvent testSubject;
92                 String operationalEnvironmentName = "";
93
94                 // default test
95                 testSubject = createTestSubject();
96                 testSubject.setOperationalEnvironmentName(operationalEnvironmentName);
97         }
98
99         @Test
100         public void testGetOperationalEnvironmentType() throws Exception {
101                 EcompOperationalEnvironmentEvent testSubject;
102                 String result;
103
104                 // default test
105                 testSubject = createTestSubject();
106                 result = testSubject.getOperationalEnvironmentType();
107         }
108
109         @Test
110         public void testSetOperational_environment_type() throws Exception {
111                 EcompOperationalEnvironmentEvent testSubject;
112                 String operationalEnvironmentType = "";
113
114                 // default test
115                 testSubject = createTestSubject();
116                 testSubject.setOperational_environment_type(operationalEnvironmentType);
117         }
118
119         @Test
120         public void testGetTenantContext() throws Exception {
121                 EcompOperationalEnvironmentEvent testSubject;
122                 String result;
123
124                 // default test
125                 testSubject = createTestSubject();
126                 result = testSubject.getTenantContext();
127         }
128
129         @Test
130         public void testSetTenantContext() throws Exception {
131                 EcompOperationalEnvironmentEvent testSubject;
132                 String tenantContext = "";
133
134                 // default test
135                 testSubject = createTestSubject();
136                 testSubject.setTenantContext(tenantContext);
137         }
138
139         @Test
140         public void testGetTimestamp1() throws Exception {
141                 EcompOperationalEnvironmentEvent testSubject;
142                 Date result;
143
144                 // default test
145                 testSubject = createTestSubject();
146                 result = testSubject.getTimestamp1();
147         }
148
149         @Test
150         public void testSetTimestamp1() throws Exception {
151                 EcompOperationalEnvironmentEvent testSubject;
152                 Date timestamp = null;
153
154                 // default test
155                 testSubject = createTestSubject();
156                 testSubject.setTimestamp1(timestamp);
157         }
158
159         @Test
160         public void testGetAction() throws Exception {
161                 EcompOperationalEnvironmentEvent testSubject;
162                 String result;
163
164                 // default test
165                 testSubject = createTestSubject();
166                 result = testSubject.getAction();
167         }
168
169         @Test
170         public void testSetAction() throws Exception {
171                 EcompOperationalEnvironmentEvent testSubject;
172                 String action = "";
173
174                 // default test
175                 testSubject = createTestSubject();
176                 testSubject.setAction(action);
177         }
178
179         @Test
180         public void testFillFields() throws Exception {
181                 EcompOperationalEnvironmentEvent testSubject;
182
183                 // default test
184                 testSubject = createTestSubject();
185                 testSubject.fillFields();
186         }
187
188         @Test
189         public void testToString() throws Exception {
190                 EcompOperationalEnvironmentEvent testSubject;
191                 String result;
192
193                 // default test
194                 testSubject = createTestSubject();
195                 result = testSubject.toString();
196         }
197 }