Initial OpenECOMP MSO commit
[so.git] / mso-catalog-db / src / test / java / org / openecomp / mso / db / catalog / beans / HeatTemplateESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 08:12:27 GMT 2016
4  */
5
6 package org.openecomp.mso.db.catalog.beans;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11
12 import java.sql.Timestamp;
13 import java.time.LocalDateTime;
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.mock.java.time.MockLocalDateTime;
19 import org.evosuite.runtime.testdata.EvoSuiteFile;
20 import org.evosuite.runtime.testdata.FileSystemHandling;
21 import org.junit.runner.RunWith;
22
23 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
24 public class HeatTemplateESTest extends HeatTemplateESTestscaffolding {
25
26   @Test(timeout = 4000)
27   public void test00()  throws Throwable  {
28       HeatTemplate heatTemplate0 = new HeatTemplate();
29       heatTemplate0.setTimeoutMinutes(313);
30       int int0 = heatTemplate0.getTimeoutMinutes();
31       assertEquals(313, int0);
32   }
33
34   @Test(timeout = 4000)
35   public void test01()  throws Throwable  {
36       HeatTemplate heatTemplate0 = new HeatTemplate();
37       heatTemplate0.setTimeoutMinutes((-1781));
38       int int0 = heatTemplate0.getTimeoutMinutes();
39       assertEquals((-1781), int0);
40   }
41
42   @Test(timeout = 4000)
43   public void test02()  throws Throwable  {
44       HeatTemplate heatTemplate0 = new HeatTemplate();
45       heatTemplate0.setTemplatePath("9PO'c]OQ>6N |");
46       String string0 = heatTemplate0.getTemplatePath();
47       assertEquals("9PO'c]OQ>6N |", string0);
48   }
49
50   @Test(timeout = 4000)
51   public void test03()  throws Throwable  {
52       HeatTemplate heatTemplate0 = new HeatTemplate();
53       heatTemplate0.setTemplateName("Template=null,version=null,path=null,body=(Not defined),timeout=0,asdcUuid=null,asdcResourceName=null,description=null");
54       String string0 = heatTemplate0.getTemplateName();
55       assertEquals("Template=null,version=null,path=null,body=(Not defined),timeout=0,asdcUuid=null,asdcResourceName=null,description=null", string0);
56   }
57
58   @Test(timeout = 4000)
59   public void test04()  throws Throwable  {
60       HeatTemplate heatTemplate0 = new HeatTemplate();
61       heatTemplate0.setTemplateName("");
62       String string0 = heatTemplate0.getTemplateName();
63       assertEquals("", string0);
64   }
65
66   @Test(timeout = 4000)
67   public void test05()  throws Throwable  {
68       HeatTemplate heatTemplate0 = new HeatTemplate();
69       heatTemplate0.setTemplateBody("ParentTemplateId=");
70       String string0 = heatTemplate0.getTemplateBody();
71       assertEquals("ParentTemplateId=", string0);
72   }
73
74   @Test(timeout = 4000)
75   public void test06()  throws Throwable  {
76       HeatTemplate heatTemplate0 = new HeatTemplate();
77       heatTemplate0.setTemplateBody("");
78       String string0 = heatTemplate0.getTemplateBody();
79       assertEquals("", string0);
80   }
81
82   @Test(timeout = 4000)
83   public void test07()  throws Throwable  {
84       HeatTemplate heatTemplate0 = new HeatTemplate();
85       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
86       heatTemplate0.setParameters(linkedHashSet0);
87       Set<HeatTemplateParam> set0 = heatTemplate0.getParameters();
88       assertEquals(0, set0.size());
89   }
90
91   @Test(timeout = 4000)
92   public void test08()  throws Throwable  {
93       HeatTemplate heatTemplate0 = new HeatTemplate();
94       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
95       HeatTemplateParam heatTemplateParam0 = new HeatTemplateParam();
96       linkedHashSet0.add(heatTemplateParam0);
97       heatTemplate0.setParameters(linkedHashSet0);
98       Set<HeatTemplateParam> set0 = heatTemplate0.getParameters();
99       assertFalse(set0.isEmpty());
100   }
101
102   @Test(timeout = 4000)
103   public void test09()  throws Throwable  {
104       HeatTemplate heatTemplate0 = new HeatTemplate();
105       heatTemplate0.setId(118);
106       int int0 = heatTemplate0.getId();
107       assertEquals(118, int0);
108   }
109
110   @Test(timeout = 4000)
111   public void test10()  throws Throwable  {
112       HeatTemplate heatTemplate0 = new HeatTemplate();
113       heatTemplate0.setId((-340));
114       int int0 = heatTemplate0.getId();
115       assertEquals((-340), int0);
116   }
117
118   @Test(timeout = 4000)
119   public void test12()  throws Throwable  {
120       HeatTemplate heatTemplate0 = new HeatTemplate();
121       LinkedHashSet<HeatNestedTemplate> linkedHashSet0 = new LinkedHashSet<HeatNestedTemplate>();
122       HeatNestedTemplate heatNestedTemplate0 = new HeatNestedTemplate();
123       linkedHashSet0.add(heatNestedTemplate0);
124       heatTemplate0.setFiles(linkedHashSet0);
125       Set<HeatNestedTemplate> set0 = heatTemplate0.getFiles();
126       assertFalse(set0.isEmpty());
127   }
128
129   @Test(timeout = 4000)
130   public void test13()  throws Throwable  {
131       HeatTemplate heatTemplate0 = new HeatTemplate();
132       heatTemplate0.setDescription("PARENT_COMPLETE");
133       String string0 = heatTemplate0.getDescription();
134       assertEquals("PARENT_COMPLETE", string0);
135   }
136
137   @Test(timeout = 4000)
138   public void test14()  throws Throwable  {
139       HeatTemplate heatTemplate0 = new HeatTemplate();
140       heatTemplate0.setDescription("");
141       String string0 = heatTemplate0.getDescription();
142       assertEquals("", string0);
143   }
144
145   @Test(timeout = 4000)
146   public void test15()  throws Throwable  {
147       HeatTemplate heatTemplate0 = new HeatTemplate();
148       LocalDateTime localDateTime0 = MockLocalDateTime.now();
149       Timestamp timestamp0 = Timestamp.valueOf(localDateTime0);
150       heatTemplate0.setCreated(timestamp0);
151       Timestamp timestamp1 = heatTemplate0.getCreated();
152       assertSame(timestamp1, timestamp0);
153   }
154
155   @Test(timeout = 4000)
156   public void test16()  throws Throwable  {
157       HeatTemplate heatTemplate0 = new HeatTemplate();
158       heatTemplate0.setAsdcUuid("msg");
159       String string0 = heatTemplate0.getAsdcUuid();
160       assertEquals("msg", string0);
161   }
162
163   @Test(timeout = 4000)
164   public void test17()  throws Throwable  {
165       HeatTemplate heatTemplate0 = new HeatTemplate();
166       heatTemplate0.setAsdcResourceName("!\7fIMW$RE2UtEWIEeJc5");
167       String string0 = heatTemplate0.getAsdcResourceName();
168       assertEquals("!\7fIMW$RE2UtEWIEeJc5", string0);
169   }
170
171   @Test(timeout = 4000)
172   public void test18()  throws Throwable  {
173       HeatTemplate heatTemplate0 = new HeatTemplate();
174       heatTemplate0.setAsdcLabel("<JH|c2");
175       String string0 = heatTemplate0.getAsdcLabel();
176       assertEquals("<JH|c2", string0);
177   }
178
179   @Test(timeout = 4000)
180   public void test19()  throws Throwable  {
181       HeatTemplate heatTemplate0 = new HeatTemplate();
182       heatTemplate0.setAsdcLabel("");
183       String string0 = heatTemplate0.getAsdcLabel();
184       assertEquals("", string0);
185   }
186
187   @Test(timeout = 4000)
188   public void test20()  throws Throwable  {
189       HeatTemplate heatTemplate0 = new HeatTemplate();
190       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
191       linkedHashSet0.add((HeatTemplateParam) null);
192       heatTemplate0.setParameters(linkedHashSet0);
193       // Undeclared exception!
194       try { 
195         heatTemplate0.toString();
196         fail("Expecting exception: NullPointerException");
197       
198       } catch(NullPointerException e) {
199          //
200          // no message in exception (getMessage() returned null)
201          //
202          verifyException("org.openecomp.mso.db.catalog.beans.HeatTemplate", e);
203       }
204   }
205
206   @Test(timeout = 4000)
207   public void test21()  throws Throwable  {
208       HeatTemplate heatTemplate0 = new HeatTemplate();
209       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
210       HeatTemplateParam heatTemplateParam0 = new HeatTemplateParam();
211       heatTemplateParam0.setRequired(true);
212       linkedHashSet0.add(heatTemplateParam0);
213       heatTemplate0.setParameters(linkedHashSet0);
214       String string0 = heatTemplate0.toString();
215       assertEquals("Template=null,version=null,path=null,body=(Not defined),timeout=0,asdcUuid=null,asdcResourceName=null,description=null,params=[null(reqd)]", string0);
216   }
217
218   @Test(timeout = 4000)
219   public void test22()  throws Throwable  {
220       HeatTemplate heatTemplate0 = new HeatTemplate();
221       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
222       HeatTemplateParam heatTemplateParam0 = new HeatTemplateParam();
223       linkedHashSet0.add(heatTemplateParam0);
224       heatTemplate0.setParameters(linkedHashSet0);
225       String string0 = heatTemplate0.toString();
226       assertEquals("Template=null,version=null,path=null,body=(Not defined),timeout=0,asdcUuid=null,asdcResourceName=null,description=null,params=[null]", string0);
227   }
228
229   @Test(timeout = 4000)
230   public void test23()  throws Throwable  {
231       HeatTemplate heatTemplate0 = new HeatTemplate();
232       LocalDateTime localDateTime0 = MockLocalDateTime.now();
233       Timestamp timestamp0 = Timestamp.valueOf(localDateTime0);
234       heatTemplate0.setCreated(timestamp0);
235       String string0 = heatTemplate0.toString();
236       assertEquals("Template=null,version=null,path=null,body=(Not defined),timeout=0,asdcUuid=null,asdcResourceName=null,description=null,created=2/14/14 8:21 PM", string0);
237   }
238
239   @Test(timeout = 4000)
240   public void test24()  throws Throwable  {
241       HeatTemplate heatTemplate0 = new HeatTemplate();
242       heatTemplate0.setTemplateBody("]");
243       String string0 = heatTemplate0.toString();
244       assertEquals("Template=null,version=null,path=null,body=(1 chars),timeout=0,asdcUuid=null,asdcResourceName=null,description=null", string0);
245   }
246
247   @Test(timeout = 4000)
248   public void test27()  throws Throwable  {
249       HeatTemplate heatTemplate0 = new HeatTemplate();
250       heatTemplate0.setTemplateBody("]");
251       String string0 = heatTemplate0.getHeatTemplate();
252       assertEquals("]", string0);
253   }
254
255   @Test(timeout = 4000)
256   public void test28()  throws Throwable  {
257       HeatTemplate heatTemplate0 = new HeatTemplate();
258       String string0 = heatTemplate0.getAsdcLabel();
259       assertNull(string0);
260   }
261
262   @Test(timeout = 4000)
263   public void test29()  throws Throwable  {
264       HeatTemplate heatTemplate0 = new HeatTemplate();
265       String string0 = heatTemplate0.getTemplatePath();
266       assertNull(string0);
267   }
268
269   @Test(timeout = 4000)
270   public void test30()  throws Throwable  {
271       HeatTemplate heatTemplate0 = new HeatTemplate();
272       Set<HeatNestedTemplate> set0 = heatTemplate0.getFiles();
273       assertNull(set0);
274   }
275
276   @Test(timeout = 4000)
277   public void test31()  throws Throwable  {
278       HeatTemplate heatTemplate0 = new HeatTemplate();
279       heatTemplate0.setTemplateBody("");
280       String string0 = heatTemplate0.getHeatTemplate();
281       assertNull(string0);
282   }
283
284   @Test(timeout = 4000)
285   public void test32()  throws Throwable  {
286       HeatTemplate heatTemplate0 = new HeatTemplate();
287       Timestamp timestamp0 = heatTemplate0.getCreated();
288       assertNull(timestamp0);
289   }
290
291   @Test(timeout = 4000)
292   public void test33()  throws Throwable  {
293       HeatTemplate heatTemplate0 = new HeatTemplate();
294       Set<HeatTemplateParam> set0 = heatTemplate0.getParameters();
295       assertNull(set0);
296   }
297
298   @Test(timeout = 4000)
299   public void test34()  throws Throwable  {
300       HeatTemplate heatTemplate0 = new HeatTemplate();
301       String string0 = heatTemplate0.getDescription();
302       assertNull(string0);
303   }
304
305   @Test(timeout = 4000)
306   public void test35()  throws Throwable  {
307       HeatTemplate heatTemplate0 = new HeatTemplate();
308       heatTemplate0.setAsdcResourceName("");
309       String string0 = heatTemplate0.getAsdcResourceName();
310       assertEquals("", string0);
311   }
312
313   @Test(timeout = 4000)
314   public void test36()  throws Throwable  {
315       HeatTemplate heatTemplate0 = new HeatTemplate();
316       String string0 = heatTemplate0.getAsdcUuid();
317       assertNull(string0);
318   }
319
320   @Test(timeout = 4000)
321   public void test37()  throws Throwable  {
322       HeatTemplate heatTemplate0 = new HeatTemplate();
323       LinkedHashSet<HeatNestedTemplate> linkedHashSet0 = new LinkedHashSet<HeatNestedTemplate>();
324       heatTemplate0.setFiles(linkedHashSet0);
325       Set<HeatNestedTemplate> set0 = heatTemplate0.getFiles();
326       assertTrue(set0.isEmpty());
327   }
328
329   @Test(timeout = 4000)
330   public void test38()  throws Throwable  {
331       HeatTemplate heatTemplate0 = new HeatTemplate();
332       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
333       heatTemplate0.setParameters(linkedHashSet0);
334       String string0 = heatTemplate0.toString();
335       assertEquals("Template=null,version=null,path=null,body=(Not defined),timeout=0,asdcUuid=null,asdcResourceName=null,description=null", string0);
336   }
337
338   @Test(timeout = 4000)
339   public void test39()  throws Throwable  {
340       HeatTemplate heatTemplate0 = new HeatTemplate();
341       heatTemplate0.setTemplatePath("");
342       String string0 = heatTemplate0.getTemplatePath();
343       assertEquals("", string0);
344   }
345
346   @Test(timeout = 4000)
347   public void test40()  throws Throwable  {
348       HeatTemplate heatTemplate0 = new HeatTemplate();
349       Timestamp timestamp0 = new Timestamp(0L);
350       heatTemplate0.setCreated(timestamp0);
351       Timestamp timestamp1 = heatTemplate0.getCreated();
352       assertSame(timestamp1, timestamp0);
353   }
354
355   @Test(timeout = 4000)
356   public void test41()  throws Throwable  {
357       HeatTemplate heatTemplate0 = new HeatTemplate();
358       String string0 = heatTemplate0.getAsdcResourceName();
359       assertNull(string0);
360   }
361
362   @Test(timeout = 4000)
363   public void test42()  throws Throwable  {
364       HeatTemplate heatTemplate0 = new HeatTemplate();
365       int int0 = heatTemplate0.getId();
366       assertEquals(0, int0);
367   }
368
369   @Test(timeout = 4000)
370   public void test43()  throws Throwable  {
371       HeatTemplate heatTemplate0 = new HeatTemplate();
372       String string0 = heatTemplate0.getTemplateName();
373       assertNull(string0);
374   }
375
376   @Test(timeout = 4000)
377   public void test44()  throws Throwable  {
378       HeatTemplate heatTemplate0 = new HeatTemplate();
379       String string0 = heatTemplate0.getTemplateBody();
380       assertNull(string0);
381   }
382
383   @Test(timeout = 4000)
384   public void test45()  throws Throwable  {
385       HeatTemplate heatTemplate0 = new HeatTemplate();
386       int int0 = heatTemplate0.getTimeoutMinutes();
387       assertEquals(0, int0);
388   }
389
390   @Test(timeout = 4000)
391   public void test46()  throws Throwable  {
392       HeatTemplate heatTemplate0 = new HeatTemplate();
393       heatTemplate0.setAsdcUuid("");
394       String string0 = heatTemplate0.getAsdcUuid();
395       assertEquals("", string0);
396   }
397 }