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.resources.data.auditing;
23 import org.junit.Test;
25 import java.util.Date;
27 public class EcompOperationalEnvironmentEventTest {
29 private EcompOperationalEnvironmentEvent createTestSubject() {
30 return new EcompOperationalEnvironmentEvent();
34 public void testCtor() throws Exception {
35 new EcompOperationalEnvironmentEvent();
36 new EcompOperationalEnvironmentEvent("mock", "mock", "mock", "mock", "mock", "mock");
40 public void testGetOperationalEnvironmentId() throws Exception {
41 EcompOperationalEnvironmentEvent testSubject;
45 testSubject = createTestSubject();
46 result = testSubject.getOperationalEnvironmentId();
50 public void testSetOperationalEnvironmentId() throws Exception {
51 EcompOperationalEnvironmentEvent testSubject;
52 String operationalEnvironmentId = "";
55 testSubject = createTestSubject();
56 testSubject.setOperationalEnvironmentId(operationalEnvironmentId);
60 public void testGetOperationalEnvironmentAction() throws Exception {
61 EcompOperationalEnvironmentEvent testSubject;
65 testSubject = createTestSubject();
66 result = testSubject.getOperationalEnvironmentAction();
70 public void testSetOperationalEnvironmentAction() throws Exception {
71 EcompOperationalEnvironmentEvent testSubject;
72 String operationalEnvironmentAction = "";
75 testSubject = createTestSubject();
76 testSubject.setOperationalEnvironmentAction(operationalEnvironmentAction);
80 public void testGetOperationalEnvironmentName() throws Exception {
81 EcompOperationalEnvironmentEvent testSubject;
85 testSubject = createTestSubject();
86 result = testSubject.getOperationalEnvironmentName();
90 public void testSetOperationalEnvironmentName() throws Exception {
91 EcompOperationalEnvironmentEvent testSubject;
92 String operationalEnvironmentName = "";
95 testSubject = createTestSubject();
96 testSubject.setOperationalEnvironmentName(operationalEnvironmentName);
100 public void testGetOperationalEnvironmentType() throws Exception {
101 EcompOperationalEnvironmentEvent testSubject;
105 testSubject = createTestSubject();
106 result = testSubject.getOperationalEnvironmentType();
110 public void testSetOperational_environment_type() throws Exception {
111 EcompOperationalEnvironmentEvent testSubject;
112 String operationalEnvironmentType = "";
115 testSubject = createTestSubject();
116 testSubject.setOperationalEnvironmentType(operationalEnvironmentType);
120 public void testGetTenantContext() throws Exception {
121 EcompOperationalEnvironmentEvent testSubject;
125 testSubject = createTestSubject();
126 result = testSubject.getTenantContext();
130 public void testSetTenantContext() throws Exception {
131 EcompOperationalEnvironmentEvent testSubject;
132 String tenantContext = "";
135 testSubject = createTestSubject();
136 testSubject.setTenantContext(tenantContext);
140 public void testGetTimestamp1() throws Exception {
141 EcompOperationalEnvironmentEvent testSubject;
145 testSubject = createTestSubject();
146 result = testSubject.getTimestamp1();
150 public void testSetTimestamp1() throws Exception {
151 EcompOperationalEnvironmentEvent testSubject;
152 Date timestamp = null;
155 testSubject = createTestSubject();
156 testSubject.setTimestamp1(timestamp);
160 public void testGetAction() throws Exception {
161 EcompOperationalEnvironmentEvent testSubject;
165 testSubject = createTestSubject();
166 result = testSubject.getAction();
170 public void testSetAction() throws Exception {
171 EcompOperationalEnvironmentEvent testSubject;
175 testSubject = createTestSubject();
176 testSubject.setAction(action);
180 public void testFillFields() throws Exception {
181 EcompOperationalEnvironmentEvent testSubject;
184 testSubject = createTestSubject();
185 testSubject.fillFields();
189 public void testToString() throws Exception {
190 EcompOperationalEnvironmentEvent testSubject;
194 testSubject = createTestSubject();
195 result = testSubject.toString();