1 package org.openecomp.sdc.asdctool.simulator.tenant;
4 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
6 public class OperationalEnvironmentTest {
8 private OperationalEnvironment createTestSubject() {
9 return new OperationalEnvironment();
13 public void testGetLastModified() throws Exception {
14 OperationalEnvironment testSubject;
18 testSubject = createTestSubject();
19 result = testSubject.getLastModified();
23 public void testSetLastModified() throws Exception {
24 OperationalEnvironment testSubject;
25 String lastModified = "";
28 testSubject = createTestSubject();
29 testSubject.setLastModified(lastModified);
33 public void testGetEnvironmentId() throws Exception {
34 OperationalEnvironment testSubject;
38 testSubject = createTestSubject();
39 result = testSubject.getEnvironmentId();
43 public void testSetEnvironmentId() throws Exception {
44 OperationalEnvironment testSubject;
45 String environmentId = "";
48 testSubject = createTestSubject();
49 testSubject.setEnvironmentId(environmentId);
53 public void testGetTenant() throws Exception {
54 OperationalEnvironment testSubject;
58 testSubject = createTestSubject();
59 result = testSubject.getTenant();
63 public void testSetTenant() throws Exception {
64 OperationalEnvironment testSubject;
68 testSubject = createTestSubject();
69 testSubject.setTenant(tenant);
73 public void testGetIsProduction() throws Exception {
74 OperationalEnvironment testSubject;
78 testSubject = createTestSubject();
79 result = testSubject.getIsProduction();
83 public void testSetIsProduction() throws Exception {
84 OperationalEnvironment testSubject;
85 Boolean production = null;
88 testSubject = createTestSubject();
89 testSubject.setIsProduction(production);
93 public void testGetEcompWorkloadContext() throws Exception {
94 OperationalEnvironment testSubject;
98 testSubject = createTestSubject();
99 result = testSubject.getEcompWorkloadContext();
103 public void testSetEcompWorkloadContext() throws Exception {
104 OperationalEnvironment testSubject;
105 String ecompWorkloadContext = "";
108 testSubject = createTestSubject();
109 testSubject.setEcompWorkloadContext(ecompWorkloadContext);
113 public void testGetStatus() throws Exception {
114 OperationalEnvironment testSubject;
118 testSubject = createTestSubject();
119 result = testSubject.getStatus();
123 public void testSetStatus() throws Exception {
124 OperationalEnvironment testSubject;
128 testSubject = createTestSubject();
129 testSubject.setStatus(status);
133 public void testSetStatus_1() throws Exception {
134 OperationalEnvironment testSubject;
137 testSubject = createTestSubject();
138 testSubject.setStatus(EnvironmentStatusEnum.COMPLETED);
142 public void testGetDmaapUebAddress() throws Exception {
143 OperationalEnvironment testSubject;
147 testSubject = createTestSubject();
148 result = testSubject.getDmaapUebAddress();
152 public void testSetDmaapUebAddress() throws Exception {
153 OperationalEnvironment testSubject;
154 String dmaapUebAddress = "";
157 testSubject = createTestSubject();
158 testSubject.setDmaapUebAddress(dmaapUebAddress);
162 public void testGetUebApikey() throws Exception {
163 OperationalEnvironment testSubject;
167 testSubject = createTestSubject();
168 result = testSubject.getUebApikey();
172 public void testSetUebApikey() throws Exception {
173 OperationalEnvironment testSubject;
174 String uebApikey = "";
177 testSubject = createTestSubject();
178 testSubject.setUebApikey(uebApikey);
182 public void testGetUebSecretKey() throws Exception {
183 OperationalEnvironment testSubject;
187 testSubject = createTestSubject();
188 result = testSubject.getUebSecretKey();
192 public void testSetUebSecretKey() throws Exception {
193 OperationalEnvironment testSubject;
194 String uebSecretKey = "";
197 testSubject = createTestSubject();
198 testSubject.setUebSecretKey(uebSecretKey);