Initial OpenECOMP MSO commit
[so.git] / adapters / mso-adapter-utils / src / test / java / org / openecomp / mso / cloud / CloudIdentityESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 08:37:20 GMT 2016
4  */
5
6 package org.openecomp.mso.cloud;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.evosuite.runtime.PrivateAccess;
15 import org.junit.runner.RunWith;
16
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class CloudIdentityESTest {
19
20   @Test(timeout = 4000)
21   public void test00()  throws Throwable  {
22       CloudIdentity cloudIdentity0 = new CloudIdentity();
23       cloudIdentity0.setMsoId("ga-cj*/");
24       cloudIdentity0.hashCode();
25   }
26
27   @Test(timeout = 4000)
28   public void test01()  throws Throwable  {
29       CloudIdentity cloudIdentity0 = new CloudIdentity();
30       cloudIdentity0.setTenantMetadata(true);
31       boolean boolean0 = cloudIdentity0.hasTenantMetadata();
32       assertTrue(boolean0);
33   }
34
35   @Test(timeout = 4000)
36   public void test02()  throws Throwable  {
37       CloudIdentity cloudIdentity0 = new CloudIdentity();
38       cloudIdentity0.setMsoPass("");
39       String string0 = cloudIdentity0.getMsoPass();
40       assertEquals("", string0);
41   }
42
43   @Test(timeout = 4000)
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);
49   }
50
51   @Test(timeout = 4000)
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);
57   }
58
59   @Test(timeout = 4000)
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);
65   }
66
67   @Test(timeout = 4000)
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);
74   }
75
76   @Test(timeout = 4000)
77   public void test07()  throws Throwable  {
78       CloudIdentity cloudIdentity0 = new CloudIdentity();
79       cloudIdentity0.setId("");
80       String string0 = cloudIdentity0.getId();
81       assertEquals("", string0);
82   }
83
84   @Test(timeout = 4000)
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);
90   }
91
92   @Test(timeout = 4000)
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);
100   }
101
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);
110   }
111
112   @Test(timeout = 4000)
113   public void test11()  throws Throwable  {
114       CloudIdentity cloudIdentity0 = new CloudIdentity();
115       cloudIdentity0.setMsoPass("0LAxuQ0#K,Ma");
116       // Undeclared exception!
117       try {
118         cloudIdentity0.getMsoPass();
119         fail("Expecting exception: NumberFormatException");
120
121       } catch(NumberFormatException e) {
122          //
123          // For input string: \"0L\"
124          //
125          verifyException("java.lang.NumberFormatException", e);
126       }
127   }
128
129   @Test(timeout = 4000)
130   public void test12()  throws Throwable  {
131       CloudIdentity cloudIdentity0 = new CloudIdentity();
132       // Undeclared exception!
133       try {
134         cloudIdentity0.getKeystoneUrl();
135         fail("Expecting exception: NullPointerException");
136
137       } catch(NullPointerException e) {
138          //
139          // no message in exception (getMessage() returned null)
140          //
141          verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
142       }
143   }
144
145   @Test(timeout = 4000)
146   public void test13()  throws Throwable  {
147       // Undeclared exception!
148       try {
149         CloudIdentity.encryptPassword((String) null);
150         fail("Expecting exception: NullPointerException");
151
152       } catch(NullPointerException e) {
153          //
154          // no message in exception (getMessage() returned null)
155          //
156          verifyException("org.openecomp.mso.utils.CryptoUtils", e);
157       }
158   }
159
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));
165
166       PrivateAccess.setVariable((Class<CloudIdentity>) CloudIdentity.class, cloudIdentity1, "msoPass", (Object) "0~=?Wm,~42b4:K");
167       boolean boolean0 = cloudIdentity0.equals(cloudIdentity1);
168       assertFalse(boolean0);
169   }
170
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);
178   }
179
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));
185
186       cloudIdentity1.setMemberRole("RA_SET_CALLBACK_AUTH_EXC");
187       boolean boolean0 = cloudIdentity0.equals(cloudIdentity1);
188       assertFalse(boolean0);
189   }
190
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);
199   }
200
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);
207   }
208
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);
214   }
215
216   @Test(timeout = 4000)
217   public void test20()  throws Throwable  {
218       CloudIdentity cloudIdentity0 = new CloudIdentity();
219       boolean boolean0 = cloudIdentity0.equals(cloudIdentity0);
220       assertTrue(boolean0);
221   }
222
223   @Test(timeout = 4000)
224   public void test22()  throws Throwable  {
225       CloudIdentity cloudIdentity0 = new CloudIdentity();
226       cloudIdentity0.setMsoPass("9Y#4-v1Fu27keLW");
227       cloudIdentity0.hashCode();
228   }
229
230   @Test(timeout = 4000)
231   public void test23()  throws Throwable  {
232       CloudIdentity cloudIdentity0 = new CloudIdentity();
233       cloudIdentity0.setMemberRole("ASDC_GENERAL_METRICS");
234       cloudIdentity0.hashCode();
235   }
236
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();
242   }
243
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();
249   }
250
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());
256   }
257
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", "");
262       assertNull(string0);
263   }
264
265   @Test(timeout = 4000)
266   public void test28()  throws Throwable  {
267       CloudIdentity cloudIdentity0 = new CloudIdentity();
268       String string0 = cloudIdentity0.getMemberRole();
269       assertNull(string0);
270   }
271
272   @Test(timeout = 4000)
273   public void test29()  throws Throwable  {
274       CloudIdentity cloudIdentity0 = new CloudIdentity();
275       // Undeclared exception!
276       try {
277         cloudIdentity0.getIdentityServerTypeAsString();
278         fail("Expecting exception: NullPointerException");
279
280       } catch(NullPointerException e) {
281          //
282          // no message in exception (getMessage() returned null)
283          //
284          verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
285       }
286   }
287
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);
295   }
296
297   @Test(timeout = 4000)
298   public void test31()  throws Throwable  {
299       CloudIdentity cloudIdentity0 = new CloudIdentity();
300       String string0 = cloudIdentity0.getId();
301       assertNull(string0);
302   }
303
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());
310   }
311
312   @Test(timeout = 4000)
313   public void test34()  throws Throwable  {
314       CloudIdentity cloudIdentity0 = new CloudIdentity();
315       cloudIdentity0.setAdminTenant("0hh5nz?kd3N,FTKBX");
316       cloudIdentity0.hashCode();
317   }
318
319   @Test(timeout = 4000)
320   public void test35()  throws Throwable  {
321       CloudIdentity cloudIdentity0 = new CloudIdentity();
322       String string0 = cloudIdentity0.getAdminTenant();
323       assertNull(string0);
324
325   }
326
327   @Test(timeout = 4000)
328   public void test37()  throws Throwable  {
329       CloudIdentity cloudIdentity0 = new CloudIdentity();
330       String string0 = cloudIdentity0.getMsoId();
331       assertNull(string0);
332   }
333
334   @Test(timeout = 4000)
335   public void test38()  throws Throwable  {
336       CloudIdentity cloudIdentity0 = new CloudIdentity();
337       cloudIdentity0.getIdentityServerType();
338   }
339
340   @Test(timeout = 4000)
341   public void test39()  throws Throwable  {
342       CloudIdentity cloudIdentity0 = new CloudIdentity();
343       // Undeclared exception!
344       try {
345         cloudIdentity0.getMsoPass();
346         fail("Expecting exception: NullPointerException");
347
348       } catch(NullPointerException e) {
349          //
350          // no message in exception (getMessage() returned null)
351          //
352          verifyException("org.openecomp.mso.utils.CryptoUtils", e);
353       }
354   }
355
356   @Test(timeout = 4000)
357   public void test40()  throws Throwable  {
358       CloudIdentity cloudIdentity0 = new CloudIdentity();
359       // Undeclared exception!
360       try {
361         cloudIdentity0.toString();
362         fail("Expecting exception: NullPointerException");
363
364       } catch(NullPointerException e) {
365          //
366          // no message in exception (getMessage() returned null)
367          //
368          verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
369       }
370   }
371
372   @Test(timeout = 4000)
373   public void test41()  throws Throwable  {
374       CloudIdentity cloudIdentity0 = new CloudIdentity();
375       // Undeclared exception!
376       try {
377         cloudIdentity0.hasTenantMetadata();
378         fail("Expecting exception: NullPointerException");
379
380       } catch(NullPointerException e) {
381          //
382          // no message in exception (getMessage() returned null)
383          //
384          verifyException("org.openecomp.mso.cloud.CloudIdentity", e);
385       }
386   }
387
388   @Test(timeout = 4000)
389   public void test42()  throws Throwable  {
390       CloudIdentity cloudIdentity0 = new CloudIdentity();
391       String string0 = cloudIdentity0.getIdentityUrl();
392       assertNull(string0);
393   }
394
395   @Test(timeout = 4000)
396   public void test43()  throws Throwable  {
397       String string0 = CloudIdentity.encryptPassword("jaR\"aJmqpa>(&");
398       assertEquals("718A16EDF9EA61E9350A07703082D5B5", string0);
399   }
400 }