Initial OpenECOMP MSO commit
[so.git] / adapters / mso-adapter-utils / src / test / java / org / openecomp / mso / openstack / utils / MsoHeatEnvironmentEntryESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 08:40:12 GMT 2016
4  */
5
6 package org.openecomp.mso.openstack.utils;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.shaded.org.mockito.Mockito.*;
11 import static org.evosuite.runtime.EvoAssertions.*;
12 import org.openecomp.mso.db.catalog.beans.HeatTemplateParam;
13
14 import java.util.LinkedHashSet;
15 import java.util.Set;
16 import org.evosuite.runtime.EvoRunner;
17 import org.evosuite.runtime.EvoRunnerParameters;
18 import org.evosuite.runtime.PrivateAccess;
19 import org.evosuite.runtime.ViolatedAssumptionAnswer;
20 import org.junit.runner.RunWith;
21
22 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
23 public class MsoHeatEnvironmentEntryESTest {
24
25   @Test(timeout = 4000)
26   public void test00()  throws Throwable  {
27       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
28       Set<MsoHeatEnvironmentResource> set0 = (Set<MsoHeatEnvironmentResource>) mock(Set.class, new ViolatedAssumptionAnswer());
29       doReturn((-237540137)).when(set0).size();
30       msoHeatEnvironmentEntry0.setResources(set0);
31       boolean boolean0 = msoHeatEnvironmentEntry0.hasResources();
32       assertTrue(msoHeatEnvironmentEntry0.isValid());
33       assertFalse(boolean0);
34   }
35
36   @Test(timeout = 4000)
37   public void test01()  throws Throwable  {
38       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
39       PrivateAccess.setVariable((Class<MsoHeatEnvironmentEntry>) MsoHeatEnvironmentEntry.class, msoHeatEnvironmentEntry0, "valid", (Object) false);
40       boolean boolean0 = msoHeatEnvironmentEntry0.isValid();
41       assertFalse(boolean0);
42   }
43
44   @Test(timeout = 4000)
45   public void test02()  throws Throwable  {
46       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
47       LinkedHashSet<MsoHeatEnvironmentResource> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentResource>();
48       msoHeatEnvironmentEntry0.setResources(linkedHashSet0);
49       msoHeatEnvironmentEntry0.getResources();
50       assertTrue(msoHeatEnvironmentEntry0.isValid());
51   }
52
53   @Test(timeout = 4000)
54   public void test03()  throws Throwable  {
55       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
56       MsoHeatEnvironmentResource msoHeatEnvironmentResource0 = new MsoHeatEnvironmentResource("9>KEckx", "8&T!e[SABZ");
57       msoHeatEnvironmentEntry0.addResource(msoHeatEnvironmentResource0);
58       msoHeatEnvironmentEntry0.getResources();
59       assertTrue(msoHeatEnvironmentEntry0.isValid());
60   }
61
62   @Test(timeout = 4000)
63   public void test04()  throws Throwable  {
64       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
65       StringBuilder stringBuilder0 = msoHeatEnvironmentEntry0.toFullString();
66       PrivateAccess.setVariable((Class<MsoHeatEnvironmentEntry>) MsoHeatEnvironmentEntry.class, msoHeatEnvironmentEntry0, "rawEntry", (Object) stringBuilder0);
67       StringBuilder stringBuilder1 = msoHeatEnvironmentEntry0.getRawEntry();
68       assertEquals("\nnull", stringBuilder1.toString());
69       assertTrue(msoHeatEnvironmentEntry0.isValid());
70   }
71
72   @Test(timeout = 4000)
73   public void test05()  throws Throwable  {
74       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
75       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
76       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
77       msoHeatEnvironmentEntry0.getParameters();
78       assertTrue(msoHeatEnvironmentEntry0.isValid());
79   }
80
81   @Test(timeout = 4000)
82   public void test06()  throws Throwable  {
83       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
84       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
85       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
86       msoHeatEnvironmentEntry0.getParameters();
87       assertTrue(msoHeatEnvironmentEntry0.isValid());
88   }
89
90   @Test(timeout = 4000)
91   public void test07()  throws Throwable  {
92       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
93       LinkedHashSet<MsoHeatEnvironmentResource> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentResource>();
94       msoHeatEnvironmentEntry0.setResources(linkedHashSet0);
95       msoHeatEnvironmentEntry0.getNumberOfResources();
96       assertTrue(msoHeatEnvironmentEntry0.isValid());
97   }
98
99   @Test(timeout = 4000)
100   public void test08()  throws Throwable  {
101       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
102       MsoHeatEnvironmentResource msoHeatEnvironmentResource0 = new MsoHeatEnvironmentResource();
103       msoHeatEnvironmentEntry0.addResource(msoHeatEnvironmentResource0);
104       msoHeatEnvironmentEntry0.getNumberOfResources();
105       assertTrue(msoHeatEnvironmentEntry0.isValid());
106   }
107
108   @Test(timeout = 4000)
109   public void test09()  throws Throwable  {
110       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
111       Set<MsoHeatEnvironmentResource> set0 = (Set<MsoHeatEnvironmentResource>) mock(Set.class, new ViolatedAssumptionAnswer());
112       doReturn(0).when(set0).size();
113       msoHeatEnvironmentEntry0.setResources(set0);
114       msoHeatEnvironmentEntry0.getNumberOfResources();
115       assertTrue(msoHeatEnvironmentEntry0.isValid());
116   }
117
118   @Test(timeout = 4000)
119   public void test10()  throws Throwable  {
120       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
121       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
122       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
123       msoHeatEnvironmentEntry0.getNumberOfParameters();
124       assertTrue(msoHeatEnvironmentEntry0.isValid());
125   }
126
127   @Test(timeout = 4000)
128   public void test11()  throws Throwable  {
129       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
130       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
131       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
132       msoHeatEnvironmentEntry0.getNumberOfParameters();
133       assertTrue(msoHeatEnvironmentEntry0.isValid());
134   }
135
136   @Test(timeout = 4000)
137   public void test12()  throws Throwable  {
138       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
139       PrivateAccess.setVariable((Class<MsoHeatEnvironmentEntry>) MsoHeatEnvironmentEntry.class, msoHeatEnvironmentEntry0, "errorString", (Object) "Param=");
140       msoHeatEnvironmentEntry0.getErrorString();
141       assertTrue(msoHeatEnvironmentEntry0.isValid());
142   }
143
144   @Test(timeout = 4000)
145   public void test13()  throws Throwable  {
146       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
147       Set<HeatTemplateParam> set0 = (Set<HeatTemplateParam>) mock(Set.class, new ViolatedAssumptionAnswer());
148       doReturn((-2945)).when(set0).size();
149       // Undeclared exception!
150       try {
151         msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(set0);
152         fail("Expecting exception: IllegalArgumentException");
153
154       } catch(IllegalArgumentException e) {
155          //
156          // Illegal Capacity: -2945
157          //
158          verifyException("java.util.ArrayList", e);
159       }
160   }
161
162   @Test(timeout = 4000)
163   public void test14()  throws Throwable  {
164       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
165       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
166       linkedHashSet0.add((MsoHeatEnvironmentParameter) null);
167       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
168       // Undeclared exception!
169       try {
170         msoHeatEnvironmentEntry0.toFullString();
171         fail("Expecting exception: NullPointerException");
172
173       } catch(NullPointerException e) {
174          //
175          // no message in exception (getMessage() returned null)
176          //
177          verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentEntry", e);
178       }
179   }
180
181   @Test(timeout = 4000)
182   public void test15()  throws Throwable  {
183       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
184       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
185       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
186       // Undeclared exception!
187       try {
188         msoHeatEnvironmentEntry0.containsParameter((String) null, "");
189         fail("Expecting exception: NullPointerException");
190
191       } catch(NullPointerException e) {
192          //
193          // no message in exception (getMessage() returned null)
194          //
195          verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentParameter", e);
196       }
197   }
198
199   @Test(timeout = 4000)
200   public void test16()  throws Throwable  {
201       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
202       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
203       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
204       linkedHashSet0.add(msoHeatEnvironmentParameter0);
205       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
206       // Undeclared exception!
207       try {
208         msoHeatEnvironmentEntry0.containsParameter((String) null);
209         fail("Expecting exception: NullPointerException");
210
211       } catch(NullPointerException e) {
212          //
213          // no message in exception (getMessage() returned null)
214          //
215          verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentParameter", e);
216       }
217   }
218
219   @Test(timeout = 4000)
220   public void test17()  throws Throwable  {
221       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
222       MsoHeatEnvironmentResource msoHeatEnvironmentResource0 = new MsoHeatEnvironmentResource();
223       msoHeatEnvironmentEntry0.addResource(msoHeatEnvironmentResource0);
224       MsoHeatEnvironmentResource msoHeatEnvironmentResource1 = new MsoHeatEnvironmentResource();
225       // Undeclared exception!
226       try {
227         msoHeatEnvironmentEntry0.addResource(msoHeatEnvironmentResource1);
228         fail("Expecting exception: NullPointerException");
229
230       } catch(NullPointerException e) {
231          //
232          // no message in exception (getMessage() returned null)
233          //
234          verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentResource", e);
235       }
236   }
237
238   @Test(timeout = 4000)
239   public void test18()  throws Throwable  {
240       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
241       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
242       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
243       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter1 = new MsoHeatEnvironmentParameter();
244       // Undeclared exception!
245       try {
246         msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter1);
247         fail("Expecting exception: NullPointerException");
248
249       } catch(NullPointerException e) {
250          //
251          // no message in exception (getMessage() returned null)
252          //
253          verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentParameter", e);
254       }
255   }
256
257   @Test(timeout = 4000)
258   public void test19()  throws Throwable  {
259       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
260       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter("", "");
261       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
262       boolean boolean0 = msoHeatEnvironmentEntry0.containsParameter("");
263       assertTrue(msoHeatEnvironmentEntry0.isValid());
264       assertTrue(boolean0);
265   }
266
267   @Test(timeout = 4000)
268   public void test20()  throws Throwable  {
269       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
270       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
271       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
272       boolean boolean0 = msoHeatEnvironmentEntry0.hasParameters();
273       assertTrue(boolean0);
274   }
275
276   @Test(timeout = 4000)
277   public void test21()  throws Throwable  {
278       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
279       msoHeatEnvironmentEntry0.hasParameters();
280       assertTrue(msoHeatEnvironmentEntry0.isValid());
281   }
282
283   @Test(timeout = 4000)
284   public void test22()  throws Throwable  {
285       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
286       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
287       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
288       boolean boolean0 = msoHeatEnvironmentEntry0.hasParameters();
289       assertTrue(msoHeatEnvironmentEntry0.isValid());
290       assertFalse(boolean0);
291   }
292
293   @Test(timeout = 4000)
294   public void test23()  throws Throwable  {
295       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
296       PrivateAccess.callMethod((Class<MsoHeatEnvironmentEntry>) MsoHeatEnvironmentEntry.class, msoHeatEnvironmentEntry0, "getResourceRegistryRawEntry");
297       assertTrue(msoHeatEnvironmentEntry0.isValid());
298   }
299
300   @Test(timeout = 4000)
301   public void test24()  throws Throwable  {
302       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
303       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
304       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
305       msoHeatEnvironmentParameter0.setValue("_BAD");
306       HeatTemplateParam heatTemplateParam0 = new HeatTemplateParam();
307       linkedHashSet0.add(heatTemplateParam0);
308       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
309       msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(linkedHashSet0);
310       assertTrue(msoHeatEnvironmentEntry0.hasParameters());
311   }
312
313   @Test(timeout = 4000)
314   public void test25()  throws Throwable  {
315       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
316       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
317       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
318       msoHeatEnvironmentParameter0.setValue("t'N`.KI:L9");
319       HeatTemplateParam heatTemplateParam0 = new HeatTemplateParam();
320       linkedHashSet0.add(heatTemplateParam0);
321       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
322       msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(linkedHashSet0);
323       assertTrue(msoHeatEnvironmentEntry0.hasParameters());
324   }
325
326   @Test(timeout = 4000)
327   public void test26()  throws Throwable  {
328       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
329       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
330       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter();
331       HeatTemplateParam heatTemplateParam0 = new HeatTemplateParam();
332       linkedHashSet0.add(heatTemplateParam0);
333       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
334       // Undeclared exception!
335       try {
336         msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(linkedHashSet0);
337         fail("Expecting exception: NullPointerException");
338
339       } catch(NullPointerException e) {
340       }
341   }
342
343   @Test(timeout = 4000)
344   public void test27()  throws Throwable  {
345       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
346       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter("");
347       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
348       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
349       msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(linkedHashSet0);
350       assertTrue(msoHeatEnvironmentEntry0.hasParameters());
351   }
352
353   @Test(timeout = 4000)
354   public void test28()  throws Throwable  {
355       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
356       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
357       HeatTemplateParam heatTemplateParam0 = new HeatTemplateParam();
358       linkedHashSet0.add(heatTemplateParam0);
359       msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(linkedHashSet0);
360       assertTrue(msoHeatEnvironmentEntry0.isValid());
361   }
362
363   @Test(timeout = 4000)
364   public void test29()  throws Throwable  {
365       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
366       assertFalse(msoHeatEnvironmentEntry0.hasParameters());
367
368       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
369       StringBuilder stringBuilder0 = msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(linkedHashSet0);
370       PrivateAccess.setVariable((Class<MsoHeatEnvironmentEntry>) MsoHeatEnvironmentEntry.class, msoHeatEnvironmentEntry0, "rawEntry", (Object) stringBuilder0);
371       StringBuilder stringBuilder1 = (StringBuilder)PrivateAccess.callMethod((Class<MsoHeatEnvironmentEntry>) MsoHeatEnvironmentEntry.class, msoHeatEnvironmentEntry0, "getResourceRegistryRawEntry");
372       assertTrue(msoHeatEnvironmentEntry0.isValid());
373       assertNull(stringBuilder1);
374   }
375
376   @Test(timeout = 4000)
377   public void test30()  throws Throwable  {
378       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
379       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter("");
380       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
381       boolean boolean0 = msoHeatEnvironmentEntry0.containsParameter("9MTP2Qt0FH.^", "");
382       assertTrue(boolean0);
383       assertTrue(msoHeatEnvironmentEntry0.isValid());
384   }
385
386   @Test(timeout = 4000)
387   public void test31()  throws Throwable  {
388       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
389       boolean boolean0 = msoHeatEnvironmentEntry0.containsParameter("dP:* hj", "dP:* hj");
390       assertFalse(boolean0);
391       assertTrue(msoHeatEnvironmentEntry0.isValid());
392   }
393
394   @Test(timeout = 4000)
395   public void test32()  throws Throwable  {
396       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
397       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = new MsoHeatEnvironmentParameter("");
398       msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter0);
399       boolean boolean0 = msoHeatEnvironmentEntry0.containsParameter("", "");
400       assertTrue(boolean0);
401       assertTrue(msoHeatEnvironmentEntry0.isValid());
402   }
403
404   @Test(timeout = 4000)
405   public void test33()  throws Throwable  {
406       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
407       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
408       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = mock(MsoHeatEnvironmentParameter.class, new ViolatedAssumptionAnswer());
409       linkedHashSet0.add(msoHeatEnvironmentParameter0);
410       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
411       boolean boolean0 = msoHeatEnvironmentEntry0.containsParameter("kz`LZx");
412       assertTrue(msoHeatEnvironmentEntry0.hasParameters());
413       assertFalse(boolean0);
414   }
415
416   @Test(timeout = 4000)
417   public void test34()  throws Throwable  {
418       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
419       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
420       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
421       boolean boolean0 = msoHeatEnvironmentEntry0.containsParameter("kz`LZx");
422       assertFalse(boolean0);
423       assertTrue(msoHeatEnvironmentEntry0.isValid());
424   }
425
426   @Test(timeout = 4000)
427   public void test35()  throws Throwable  {
428       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
429       boolean boolean0 = msoHeatEnvironmentEntry0.containsParameter(",=?%4z");
430       assertTrue(msoHeatEnvironmentEntry0.isValid());
431       assertFalse(boolean0);
432   }
433
434   @Test(timeout = 4000)
435   public void test36()  throws Throwable  {
436       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
437       LinkedHashSet<MsoHeatEnvironmentParameter> linkedHashSet0 = new LinkedHashSet<MsoHeatEnvironmentParameter>();
438       MsoHeatEnvironmentParameter msoHeatEnvironmentParameter0 = mock(MsoHeatEnvironmentParameter.class, new ViolatedAssumptionAnswer());
439       doReturn((String) null).when(msoHeatEnvironmentParameter0).getName();
440       doReturn((String) null).when(msoHeatEnvironmentParameter0).getValue();
441       linkedHashSet0.add(msoHeatEnvironmentParameter0);
442       msoHeatEnvironmentEntry0.setParameters(linkedHashSet0);
443       msoHeatEnvironmentEntry0.toFullString();
444       assertTrue(msoHeatEnvironmentEntry0.hasParameters());
445   }
446
447   @Test(timeout = 4000)
448   public void test37()  throws Throwable  {
449       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
450       MsoHeatEnvironmentResource msoHeatEnvironmentResource0 = new MsoHeatEnvironmentResource("");
451       msoHeatEnvironmentEntry0.addResource(msoHeatEnvironmentResource0);
452       boolean boolean0 = msoHeatEnvironmentEntry0.hasResources();
453       assertTrue(boolean0);
454   }
455
456   @Test(timeout = 4000)
457   public void test38()  throws Throwable  {
458       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
459       Set<MsoHeatEnvironmentResource> set0 = (Set<MsoHeatEnvironmentResource>) mock(Set.class, new ViolatedAssumptionAnswer());
460       doReturn(0).when(set0).size();
461       msoHeatEnvironmentEntry0.setResources(set0);
462       boolean boolean0 = msoHeatEnvironmentEntry0.hasResources();
463       assertTrue(msoHeatEnvironmentEntry0.isValid());
464       assertFalse(boolean0);
465   }
466
467   @Test(timeout = 4000)
468   public void test39()  throws Throwable  {
469       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
470       boolean boolean0 = msoHeatEnvironmentEntry0.hasResources();
471       assertFalse(boolean0);
472       assertTrue(msoHeatEnvironmentEntry0.isValid());
473   }
474
475   @Test(timeout = 4000)
476   public void test40()  throws Throwable  {
477       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
478       msoHeatEnvironmentEntry0.setResources((Set<MsoHeatEnvironmentResource>) null);
479       assertTrue(msoHeatEnvironmentEntry0.isValid());
480   }
481
482   @Test(timeout = 4000)
483   public void test41()  throws Throwable  {
484       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
485       msoHeatEnvironmentEntry0.setParameters((Set<MsoHeatEnvironmentParameter>) null);
486       assertTrue(msoHeatEnvironmentEntry0.isValid());
487   }
488
489
490   @Test(timeout = 4000)
491   public void test43()  throws Throwable  {
492       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
493       // Undeclared exception!
494       try {
495         msoHeatEnvironmentEntry0.getNumberOfResources();
496         fail("Expecting exception: NullPointerException");
497
498       } catch(NullPointerException e) {
499          //
500          // no message in exception (getMessage() returned null)
501          //
502          verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentEntry", e);
503       }
504   }
505
506   @Test(timeout = 4000)
507   public void test44()  throws Throwable  {
508       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
509       boolean boolean0 = msoHeatEnvironmentEntry0.isValid();
510       assertTrue(boolean0);
511   }
512
513   @Test(timeout = 4000)
514   public void test45()  throws Throwable  {
515       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry((StringBuilder) null);
516       assertTrue(msoHeatEnvironmentEntry0.isValid());
517   }
518
519   @Test(timeout = 4000)
520   public void test46()  throws Throwable  {
521       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
522       // Undeclared exception!
523       try {
524         msoHeatEnvironmentEntry0.getNumberOfParameters();
525         fail("Expecting exception: NullPointerException");
526
527       } catch(NullPointerException e) {
528          //
529          // no message in exception (getMessage() returned null)
530          //
531          verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentEntry", e);
532       }
533   }
534
535   @Test(timeout = 4000)
536   public void test47()  throws Throwable  {
537       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
538       msoHeatEnvironmentEntry0.getRawEntry();
539       assertTrue(msoHeatEnvironmentEntry0.isValid());
540   }
541
542   @Test(timeout = 4000)
543   public void test48()  throws Throwable  {
544       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
545       msoHeatEnvironmentEntry0.getParameters();
546       assertTrue(msoHeatEnvironmentEntry0.isValid());
547   }
548
549   @Test(timeout = 4000)
550   public void test49()  throws Throwable  {
551       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
552       msoHeatEnvironmentEntry0.getResources();
553       assertTrue(msoHeatEnvironmentEntry0.isValid());
554   }
555
556   @Test(timeout = 4000)
557   public void test50()  throws Throwable  {
558       MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
559       msoHeatEnvironmentEntry0.getErrorString();
560       assertTrue(msoHeatEnvironmentEntry0.isValid());
561   }
562 }