2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 08:37:20 GMT 2016
6 package org.openecomp.mso.cloud;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.evosuite.runtime.PrivateAccess;
15 import org.junit.runner.RunWith;
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class CloudIdentityESTest {
21 public void test00() throws Throwable {
22 CloudIdentity cloudIdentity0 = new CloudIdentity();
23 cloudIdentity0.setMsoId("ga-cj*/");
24 cloudIdentity0.hashCode();
28 public void test01() throws Throwable {
29 CloudIdentity cloudIdentity0 = new CloudIdentity();
30 cloudIdentity0.setTenantMetadata(true);
31 boolean boolean0 = cloudIdentity0.hasTenantMetadata();
36 public void test02() throws Throwable {
37 CloudIdentity cloudIdentity0 = new CloudIdentity();
38 cloudIdentity0.setMsoPass("");
39 String string0 = cloudIdentity0.getMsoPass();
40 assertEquals("", string0);
44 public void test03() throws Throwable {
45 CloudIdentity cloudIdentity0 = new CloudIdentity();
46 cloudIdentity0.setMsoId("hz4I
\7fjQ&in.t^IC|");
47 String string0 = cloudIdentity0.getMsoId();
48 assertEquals("hz4I
\7fjQ&in.t^IC|", string0);
52 public void test04() throws Throwable {
53 CloudIdentity cloudIdentity0 = new CloudIdentity();
54 cloudIdentity0.setMemberRole("Exception in encryptPassword");
55 String string0 = cloudIdentity0.getMemberRole();
56 assertEquals("Exception in encryptPassword", string0);
60 public void test05() throws Throwable {
61 CloudIdentity cloudIdentity0 = new CloudIdentity();
62 cloudIdentity0.setIdentityUrl("ASDC_ARTIFACT_ALREADY_DEPLOYED");
63 String string0 = cloudIdentity0.getIdentityUrl();
64 assertEquals("ASDC_ARTIFACT_ALREADY_DEPLOYED", string0);
68 public void test06() throws Throwable {
69 CloudIdentity cloudIdentity0 = new CloudIdentity();
70 CloudIdentity.IdentityServerType cloudIdentity_IdentityServerType0 = CloudIdentity.IdentityServerType.KEYSTONE;
71 PrivateAccess.setVariable((Class<CloudIdentity>) CloudIdentity.class, cloudIdentity0, "identityServerType", (Object) cloudIdentity_IdentityServerType0);
72 String string0 = cloudIdentity0.getIdentityServerTypeAsString();
73 assertEquals("KEYSTONE", string0);
77 public void test07() throws Throwable {
78 CloudIdentity cloudIdentity0 = new CloudIdentity();
79 cloudIdentity0.setId("");
80 String string0 = cloudIdentity0.getId();
81 assertEquals("", string0);
85 public void test08() throws Throwable {
86 CloudIdentity cloudIdentity0 = new CloudIdentity();
87 cloudIdentity0.setAdminTenant("0hh5nz?kd3N,FTKBX");
88 String string0 = cloudIdentity0.getAdminTenant();
89 assertEquals("0hh5nz?kd3N,FTKBX", string0);
93 public void test09() throws Throwable {
94 CloudIdentity cloudIdentity0 = new CloudIdentity();
95 cloudIdentity0.setTenantMetadata(true);
96 CloudIdentity cloudIdentity1 = cloudIdentity0.clone();
97 assertTrue(cloudIdentity1.equals((Object)cloudIdentity0));
98 assertTrue(cloudIdentity1.hasTenantMetadata());
99 assertNotSame(cloudIdentity1, cloudIdentity0);
102 @Test(timeout = 4000)
103 public void test10() throws Throwable {
104 CloudIdentity cloudIdentity0 = new CloudIdentity();
105 cloudIdentity0.setTenantMetadata(false);
106 CloudIdentity cloudIdentity1 = cloudIdentity0.clone();
107 assertFalse(cloudIdentity1.hasTenantMetadata());
108 assertTrue(cloudIdentity1.equals((Object)cloudIdentity0));
109 assertNotSame(cloudIdentity1, cloudIdentity0);
112 @Test(timeout = 4000)
113 public void test11() throws Throwable {
114 CloudIdentity cloudIdentity0 = new CloudIdentity();
115 cloudIdentity0.setMsoPass("0LAxuQ0#K,Ma");
116 // Undeclared exception!
118 cloudIdentity0.getMsoPass();
119 fail("Expecting exception: NumberFormatException");
121 } catch(NumberFormatException e) {
123 // For input string: \"0L\"
125 verifyException("java.lang.NumberFormatException", e);
129 @Test(timeout = 4000)
130 public void test12() throws Throwable {
131 CloudIdentity cloudIdentity0 = new CloudIdentity();
132 // Undeclared exception!
134 cloudIdentity0.getKeystoneUrl();
135 fail("Expecting exception: NullPointerException");
137 } catch(NullPointerException e) {
139 // no message in exception (getMessage() returned null)
141 verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
145 @Test(timeout = 4000)
146 public void test13() throws Throwable {
147 // Undeclared exception!
149 CloudIdentity.encryptPassword((String) null);
150 fail("Expecting exception: NullPointerException");
152 } catch(NullPointerException e) {
154 // no message in exception (getMessage() returned null)
156 verifyException("org.openecomp.mso.utils.CryptoUtils", e);
160 @Test(timeout = 4000)
161 public void test14() throws Throwable {
162 CloudIdentity cloudIdentity0 = new CloudIdentity();
163 CloudIdentity cloudIdentity1 = cloudIdentity0.clone();
164 assertTrue(cloudIdentity1.equals((Object)cloudIdentity0));
166 PrivateAccess.setVariable((Class<CloudIdentity>) CloudIdentity.class, cloudIdentity1, "msoPass", (Object) "0~=?Wm,~42b4:K");
167 boolean boolean0 = cloudIdentity0.equals(cloudIdentity1);
168 assertFalse(boolean0);
171 @Test(timeout = 4000)
172 public void test15() throws Throwable {
173 CloudIdentity cloudIdentity0 = new CloudIdentity();
174 cloudIdentity0.setMemberRole("r");
175 CloudIdentity cloudIdentity1 = new CloudIdentity();
176 boolean boolean0 = cloudIdentity0.equals(cloudIdentity1);
177 assertFalse(boolean0);
180 @Test(timeout = 4000)
181 public void test16() throws Throwable {
182 CloudIdentity cloudIdentity0 = new CloudIdentity();
183 CloudIdentity cloudIdentity1 = cloudIdentity0.clone();
184 assertTrue(cloudIdentity1.equals((Object)cloudIdentity0));
186 cloudIdentity1.setMemberRole("RA_SET_CALLBACK_AUTH_EXC");
187 boolean boolean0 = cloudIdentity0.equals(cloudIdentity1);
188 assertFalse(boolean0);
191 @Test(timeout = 4000)
192 public void test17() throws Throwable {
193 CloudIdentity cloudIdentity0 = new CloudIdentity();
194 cloudIdentity0.setMemberRole("r");
195 CloudIdentity cloudIdentity1 = cloudIdentity0.clone();
196 boolean boolean0 = cloudIdentity0.equals(cloudIdentity1);
197 assertNotSame(cloudIdentity1, cloudIdentity0);
198 assertTrue(boolean0);
201 @Test(timeout = 4000)
202 public void test18() throws Throwable {
203 CloudIdentity cloudIdentity0 = new CloudIdentity();
204 Object object0 = new Object();
205 boolean boolean0 = cloudIdentity0.equals(object0);
206 assertFalse(boolean0);
209 @Test(timeout = 4000)
210 public void test19() throws Throwable {
211 CloudIdentity cloudIdentity0 = new CloudIdentity();
212 boolean boolean0 = cloudIdentity0.equals((Object) null);
213 assertFalse(boolean0);
216 @Test(timeout = 4000)
217 public void test20() throws Throwable {
218 CloudIdentity cloudIdentity0 = new CloudIdentity();
219 boolean boolean0 = cloudIdentity0.equals(cloudIdentity0);
220 assertTrue(boolean0);
223 @Test(timeout = 4000)
224 public void test22() throws Throwable {
225 CloudIdentity cloudIdentity0 = new CloudIdentity();
226 cloudIdentity0.setMsoPass("9Y#4-v1Fu27keLW");
227 cloudIdentity0.hashCode();
230 @Test(timeout = 4000)
231 public void test23() throws Throwable {
232 CloudIdentity cloudIdentity0 = new CloudIdentity();
233 cloudIdentity0.setMemberRole("ASDC_GENERAL_METRICS");
234 cloudIdentity0.hashCode();
237 @Test(timeout = 4000)
238 public void test24() throws Throwable {
239 CloudIdentity cloudIdentity0 = new CloudIdentity();
240 cloudIdentity0.setIdentityUrl("g9+j0@{H}S|");
241 cloudIdentity0.hashCode();
244 @Test(timeout = 4000)
245 public void test25() throws Throwable {
246 CloudIdentity cloudIdentity0 = new CloudIdentity();
247 cloudIdentity0.setId("FSmZDF:2*!OtMq!i");
248 cloudIdentity0.hashCode();
251 @Test(timeout = 4000)
252 public void test26() throws Throwable {
253 CloudIdentity cloudIdentity0 = new CloudIdentity();
254 cloudIdentity0.setKeystoneUrl("VdON&(o*x/W!");
255 assertNull(cloudIdentity0.getMemberRole());
258 @Test(timeout = 4000)
259 public void test27() throws Throwable {
260 CloudIdentity cloudIdentity0 = new CloudIdentity();
261 String string0 = cloudIdentity0.getKeystoneUrl("A9Z Ol `I1^y
\7f]F[EC0", "");
265 @Test(timeout = 4000)
266 public void test28() throws Throwable {
267 CloudIdentity cloudIdentity0 = new CloudIdentity();
268 String string0 = cloudIdentity0.getMemberRole();
272 @Test(timeout = 4000)
273 public void test29() throws Throwable {
274 CloudIdentity cloudIdentity0 = new CloudIdentity();
275 // Undeclared exception!
277 cloudIdentity0.getIdentityServerTypeAsString();
278 fail("Expecting exception: NullPointerException");
280 } catch(NullPointerException e) {
282 // no message in exception (getMessage() returned null)
284 verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
288 @Test(timeout = 4000)
289 public void test30() throws Throwable {
290 CloudIdentity cloudIdentity0 = new CloudIdentity();
291 cloudIdentity0.setIdentityUrl("com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES");
292 CloudIdentity cloudIdentity1 = new CloudIdentity();
293 boolean boolean0 = cloudIdentity0.equals(cloudIdentity1);
294 assertFalse(boolean0);
297 @Test(timeout = 4000)
298 public void test31() throws Throwable {
299 CloudIdentity cloudIdentity0 = new CloudIdentity();
300 String string0 = cloudIdentity0.getId();
304 @Test(timeout = 4000)
305 public void test32() throws Throwable {
306 CloudIdentity cloudIdentity0 = new CloudIdentity();
307 cloudIdentity0.setTenantMetadata(false);
308 cloudIdentity0.hashCode();
309 assertFalse(cloudIdentity0.hasTenantMetadata());
312 @Test(timeout = 4000)
313 public void test34() throws Throwable {
314 CloudIdentity cloudIdentity0 = new CloudIdentity();
315 cloudIdentity0.setAdminTenant("0hh5nz?kd3N,FTKBX");
316 cloudIdentity0.hashCode();
319 @Test(timeout = 4000)
320 public void test35() throws Throwable {
321 CloudIdentity cloudIdentity0 = new CloudIdentity();
322 String string0 = cloudIdentity0.getAdminTenant();
327 @Test(timeout = 4000)
328 public void test37() throws Throwable {
329 CloudIdentity cloudIdentity0 = new CloudIdentity();
330 String string0 = cloudIdentity0.getMsoId();
334 @Test(timeout = 4000)
335 public void test38() throws Throwable {
336 CloudIdentity cloudIdentity0 = new CloudIdentity();
337 cloudIdentity0.getIdentityServerType();
340 @Test(timeout = 4000)
341 public void test39() throws Throwable {
342 CloudIdentity cloudIdentity0 = new CloudIdentity();
343 // Undeclared exception!
345 cloudIdentity0.getMsoPass();
346 fail("Expecting exception: NullPointerException");
348 } catch(NullPointerException e) {
350 // no message in exception (getMessage() returned null)
352 verifyException("org.openecomp.mso.utils.CryptoUtils", e);
356 @Test(timeout = 4000)
357 public void test40() throws Throwable {
358 CloudIdentity cloudIdentity0 = new CloudIdentity();
359 // Undeclared exception!
361 cloudIdentity0.toString();
362 fail("Expecting exception: NullPointerException");
364 } catch(NullPointerException e) {
366 // no message in exception (getMessage() returned null)
368 verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
372 @Test(timeout = 4000)
373 public void test41() throws Throwable {
374 CloudIdentity cloudIdentity0 = new CloudIdentity();
375 // Undeclared exception!
377 cloudIdentity0.hasTenantMetadata();
378 fail("Expecting exception: NullPointerException");
380 } catch(NullPointerException e) {
382 // no message in exception (getMessage() returned null)
384 verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
388 @Test(timeout = 4000)
389 public void test42() throws Throwable {
390 CloudIdentity cloudIdentity0 = new CloudIdentity();
391 String string0 = cloudIdentity0.getIdentityUrl();
395 @Test(timeout = 4000)
396 public void test43() throws Throwable {
397 String string0 = CloudIdentity.encryptPassword("jaR\"aJmqpa>(&");
398 assertEquals("718A16EDF9EA61E9350A07703082D5B5", string0);