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;
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
26 import java.util.Date;
29 public class OperationalEnvironmentEntryTest {
31 private OperationalEnvironmentEntry createTestSubject() {
32 return new OperationalEnvironmentEntry();
36 public void testGetLastModified() throws Exception {
37 OperationalEnvironmentEntry testSubject;
41 testSubject = createTestSubject();
42 result = testSubject.getLastModified();
46 public void testSetLastModified() throws Exception {
47 OperationalEnvironmentEntry testSubject;
48 Date lastModified = null;
51 testSubject = createTestSubject();
52 testSubject.setLastModified(lastModified);
56 public void testGetEnvironmentId() throws Exception {
57 OperationalEnvironmentEntry testSubject;
61 testSubject = createTestSubject();
62 result = testSubject.getEnvironmentId();
66 public void testSetEnvironmentId() throws Exception {
67 OperationalEnvironmentEntry testSubject;
68 String environmentId = "";
71 testSubject = createTestSubject();
72 testSubject.setEnvironmentId(environmentId);
76 public void testGetTenant() throws Exception {
77 OperationalEnvironmentEntry testSubject;
81 testSubject = createTestSubject();
82 result = testSubject.getTenant();
86 public void testSetTenant() throws Exception {
87 OperationalEnvironmentEntry testSubject;
91 testSubject = createTestSubject();
92 testSubject.setTenant(tenant);
96 public void testGetIsProduction() throws Exception {
97 OperationalEnvironmentEntry testSubject;
101 testSubject = createTestSubject();
102 result = testSubject.getIsProduction();
106 public void testSetIsProduction() throws Exception {
107 OperationalEnvironmentEntry testSubject;
108 Boolean production = null;
111 testSubject = createTestSubject();
112 testSubject.setIsProduction(production);
116 public void testGetEcompWorkloadContext() throws Exception {
117 OperationalEnvironmentEntry testSubject;
121 testSubject = createTestSubject();
122 result = testSubject.getEcompWorkloadContext();
126 public void testSetEcompWorkloadContext() throws Exception {
127 OperationalEnvironmentEntry testSubject;
128 String ecompWorkloadContext = "";
131 testSubject = createTestSubject();
132 testSubject.setEcompWorkloadContext(ecompWorkloadContext);
136 public void testGetStatus() throws Exception {
137 OperationalEnvironmentEntry testSubject;
141 testSubject = createTestSubject();
142 result = testSubject.getStatus();
146 public void testSetStatus() throws Exception {
147 OperationalEnvironmentEntry testSubject;
151 testSubject = createTestSubject();
152 testSubject.setStatus(status);
156 public void testSetStatus_1() throws Exception {
157 OperationalEnvironmentEntry testSubject;
160 testSubject = createTestSubject();
161 testSubject.setStatus(EnvironmentStatusEnum.COMPLETED);
165 public void testGetDmaapUebAddress() throws Exception {
166 OperationalEnvironmentEntry testSubject;
170 testSubject = createTestSubject();
171 result = testSubject.getDmaapUebAddress();
175 public void testSetDmaapUebAddress() throws Exception {
176 OperationalEnvironmentEntry testSubject;
177 Set<String> dmaapUebAddress = null;
180 testSubject = createTestSubject();
181 testSubject.setDmaapUebAddress(dmaapUebAddress);
185 public void testAddDmaapUebAddress() throws Exception {
186 OperationalEnvironmentEntry testSubject;
190 testSubject = createTestSubject();
191 testSubject.addDmaapUebAddress(address);
195 public void testGetUebApikey() throws Exception {
196 OperationalEnvironmentEntry testSubject;
200 testSubject = createTestSubject();
201 result = testSubject.getUebApikey();
205 public void testSetUebApikey() throws Exception {
206 OperationalEnvironmentEntry testSubject;
207 String uebApikey = "";
210 testSubject = createTestSubject();
211 testSubject.setUebApikey(uebApikey);
215 public void testGetUebSecretKey() throws Exception {
216 OperationalEnvironmentEntry testSubject;
220 testSubject = createTestSubject();
221 result = testSubject.getUebSecretKey();
225 public void testSetUebSecretKey() throws Exception {
226 OperationalEnvironmentEntry testSubject;
227 String uebSecretKey = "";
230 testSubject = createTestSubject();
231 testSubject.setUebSecretKey(uebSecretKey);
235 public void testToString() throws Exception {
236 OperationalEnvironmentEntry testSubject;
240 testSubject = createTestSubject();
241 result = testSubject.toString();