2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 08:40:12 GMT 2016
6 package org.openecomp.mso.openstack.utils;
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;
14 import java.util.LinkedHashSet;
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;
22 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
23 public class MsoHeatEnvironmentEntryESTest {
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);
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);
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());
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());
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());
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());
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());
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());
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());
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());
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());
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());
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());
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!
151 msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(set0);
152 fail("Expecting exception: IllegalArgumentException");
154 } catch(IllegalArgumentException e) {
156 // Illegal Capacity: -2945
158 verifyException("java.util.ArrayList", e);
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!
170 msoHeatEnvironmentEntry0.toFullString();
171 fail("Expecting exception: NullPointerException");
173 } catch(NullPointerException e) {
175 // no message in exception (getMessage() returned null)
177 verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentEntry", e);
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!
188 msoHeatEnvironmentEntry0.containsParameter((String) null, "");
189 fail("Expecting exception: NullPointerException");
191 } catch(NullPointerException e) {
193 // no message in exception (getMessage() returned null)
195 verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentParameter", e);
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!
208 msoHeatEnvironmentEntry0.containsParameter((String) null);
209 fail("Expecting exception: NullPointerException");
211 } catch(NullPointerException e) {
213 // no message in exception (getMessage() returned null)
215 verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentParameter", e);
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!
227 msoHeatEnvironmentEntry0.addResource(msoHeatEnvironmentResource1);
228 fail("Expecting exception: NullPointerException");
230 } catch(NullPointerException e) {
232 // no message in exception (getMessage() returned null)
234 verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentResource", e);
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!
246 msoHeatEnvironmentEntry0.addParameter(msoHeatEnvironmentParameter1);
247 fail("Expecting exception: NullPointerException");
249 } catch(NullPointerException e) {
251 // no message in exception (getMessage() returned null)
253 verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentParameter", e);
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);
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);
276 @Test(timeout = 4000)
277 public void test21() throws Throwable {
278 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
279 msoHeatEnvironmentEntry0.hasParameters();
280 assertTrue(msoHeatEnvironmentEntry0.isValid());
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);
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());
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());
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());
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!
336 msoHeatEnvironmentEntry0.toFullStringExcludeNonParams(linkedHashSet0);
337 fail("Expecting exception: NullPointerException");
339 } catch(NullPointerException e) {
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());
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());
363 @Test(timeout = 4000)
364 public void test29() throws Throwable {
365 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
366 assertFalse(msoHeatEnvironmentEntry0.hasParameters());
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);
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());
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());
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());
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);
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());
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);
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());
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);
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);
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());
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());
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());
490 @Test(timeout = 4000)
491 public void test43() throws Throwable {
492 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
493 // Undeclared exception!
495 msoHeatEnvironmentEntry0.getNumberOfResources();
496 fail("Expecting exception: NullPointerException");
498 } catch(NullPointerException e) {
500 // no message in exception (getMessage() returned null)
502 verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentEntry", e);
506 @Test(timeout = 4000)
507 public void test44() throws Throwable {
508 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
509 boolean boolean0 = msoHeatEnvironmentEntry0.isValid();
510 assertTrue(boolean0);
513 @Test(timeout = 4000)
514 public void test45() throws Throwable {
515 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry((StringBuilder) null);
516 assertTrue(msoHeatEnvironmentEntry0.isValid());
519 @Test(timeout = 4000)
520 public void test46() throws Throwable {
521 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
522 // Undeclared exception!
524 msoHeatEnvironmentEntry0.getNumberOfParameters();
525 fail("Expecting exception: NullPointerException");
527 } catch(NullPointerException e) {
529 // no message in exception (getMessage() returned null)
531 verifyException("org.openecomp.mso.openstack.utils.MsoHeatEnvironmentEntry", e);
535 @Test(timeout = 4000)
536 public void test47() throws Throwable {
537 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
538 msoHeatEnvironmentEntry0.getRawEntry();
539 assertTrue(msoHeatEnvironmentEntry0.isValid());
542 @Test(timeout = 4000)
543 public void test48() throws Throwable {
544 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
545 msoHeatEnvironmentEntry0.getParameters();
546 assertTrue(msoHeatEnvironmentEntry0.isValid());
549 @Test(timeout = 4000)
550 public void test49() throws Throwable {
551 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
552 msoHeatEnvironmentEntry0.getResources();
553 assertTrue(msoHeatEnvironmentEntry0.isValid());
556 @Test(timeout = 4000)
557 public void test50() throws Throwable {
558 MsoHeatEnvironmentEntry msoHeatEnvironmentEntry0 = new MsoHeatEnvironmentEntry();
559 msoHeatEnvironmentEntry0.getErrorString();
560 assertTrue(msoHeatEnvironmentEntry0.isValid());