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.asdctool.simulator.tenant;
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
26 public class OperationalEnvironmentTest {
28 private OperationalEnvironment createTestSubject() {
29 return new OperationalEnvironment();
33 public void testGetLastModified() throws Exception {
34 OperationalEnvironment testSubject;
38 testSubject = createTestSubject();
39 result = testSubject.getLastModified();
43 public void testSetLastModified() throws Exception {
44 OperationalEnvironment testSubject;
45 String lastModified = "";
48 testSubject = createTestSubject();
49 testSubject.setLastModified(lastModified);
53 public void testGetEnvironmentId() throws Exception {
54 OperationalEnvironment testSubject;
58 testSubject = createTestSubject();
59 result = testSubject.getEnvironmentId();
63 public void testSetEnvironmentId() throws Exception {
64 OperationalEnvironment testSubject;
65 String environmentId = "";
68 testSubject = createTestSubject();
69 testSubject.setEnvironmentId(environmentId);
73 public void testGetTenant() throws Exception {
74 OperationalEnvironment testSubject;
78 testSubject = createTestSubject();
79 result = testSubject.getTenant();
83 public void testSetTenant() throws Exception {
84 OperationalEnvironment testSubject;
88 testSubject = createTestSubject();
89 testSubject.setTenant(tenant);
93 public void testGetIsProduction() throws Exception {
94 OperationalEnvironment testSubject;
98 testSubject = createTestSubject();
99 result = testSubject.getIsProduction();
103 public void testSetIsProduction() throws Exception {
104 OperationalEnvironment testSubject;
105 Boolean production = null;
108 testSubject = createTestSubject();
109 testSubject.setIsProduction(production);
113 public void testGetEcompWorkloadContext() throws Exception {
114 OperationalEnvironment testSubject;
118 testSubject = createTestSubject();
119 result = testSubject.getEcompWorkloadContext();
123 public void testSetEcompWorkloadContext() throws Exception {
124 OperationalEnvironment testSubject;
125 String ecompWorkloadContext = "";
128 testSubject = createTestSubject();
129 testSubject.setEcompWorkloadContext(ecompWorkloadContext);
133 public void testGetStatus() throws Exception {
134 OperationalEnvironment testSubject;
138 testSubject = createTestSubject();
139 result = testSubject.getStatus();
143 public void testSetStatus() throws Exception {
144 OperationalEnvironment testSubject;
148 testSubject = createTestSubject();
149 testSubject.setStatus(status);
153 public void testSetStatus_1() throws Exception {
154 OperationalEnvironment testSubject;
157 testSubject = createTestSubject();
158 testSubject.setStatus(EnvironmentStatusEnum.COMPLETED);
162 public void testGetDmaapUebAddress() throws Exception {
163 OperationalEnvironment testSubject;
167 testSubject = createTestSubject();
168 result = testSubject.getDmaapUebAddress();
172 public void testSetDmaapUebAddress() throws Exception {
173 OperationalEnvironment testSubject;
174 String dmaapUebAddress = "";
177 testSubject = createTestSubject();
178 testSubject.setDmaapUebAddress(dmaapUebAddress);
182 public void testGetUebApikey() throws Exception {
183 OperationalEnvironment testSubject;
187 testSubject = createTestSubject();
188 result = testSubject.getUebApikey();
192 public void testSetUebApikey() throws Exception {
193 OperationalEnvironment testSubject;
194 String uebApikey = "";
197 testSubject = createTestSubject();
198 testSubject.setUebApikey(uebApikey);
202 public void testGetUebSecretKey() throws Exception {
203 OperationalEnvironment testSubject;
207 testSubject = createTestSubject();
208 result = testSubject.getUebSecretKey();
212 public void testSetUebSecretKey() throws Exception {
213 OperationalEnvironment testSubject;
214 String uebSecretKey = "";
217 testSubject = createTestSubject();
218 testSubject.setUebSecretKey(uebSecretKey);