bfd4aa8e099781b88a4f42bfd3afecdc3b6119dc
[so.git] / mso-catalog-db / src / test / java / org / openecomp / mso / db / catalog / CatalogDatabaseESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 08:18:49 GMT 2016
4  */
5
6 package org.openecomp.mso.db.catalog;
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.MockitoExtension.*;
12 import static org.evosuite.runtime.EvoAssertions.*;
13
14 import org.openecomp.mso.db.catalog.beans.HeatEnvironment;
15 import org.openecomp.mso.db.catalog.beans.HeatFiles;
16 import org.openecomp.mso.db.catalog.beans.HeatTemplate;
17 import org.openecomp.mso.db.catalog.beans.HeatTemplateParam;
18 import org.openecomp.mso.db.catalog.beans.Service;
19 import org.openecomp.mso.db.catalog.beans.ServiceRecipe;
20 import org.openecomp.mso.db.catalog.beans.VfModuleToHeatFiles;
21 import org.openecomp.mso.db.catalog.beans.VnfComponentsRecipe;
22 import org.openecomp.mso.db.catalog.beans.VnfRecipe;
23 import org.openecomp.mso.db.catalog.beans.VnfResource;
24 import org.openecomp.mso.logger.MessageEnum;
25 import org.openecomp.mso.logger.MsoLogger;
26 import java.time.chrono.ChronoLocalDate;
27 import java.util.HashMap;
28 import java.util.Iterator;
29 import java.util.LinkedHashSet;
30 import java.util.List;
31 import java.util.Set;
32 import org.evosuite.runtime.EvoRunner;
33 import org.evosuite.runtime.EvoRunnerParameters;
34 import org.evosuite.runtime.PrivateAccess;
35 import org.evosuite.runtime.ViolatedAssumptionAnswer;
36 import org.evosuite.runtime.mock.java.time.chrono.MockJapaneseDate;
37 import org.evosuite.runtime.mock.java.time.chrono.MockThaiBuddhistDate;
38 import org.hibernate.Query;
39 import org.hibernate.Session;
40 import org.junit.runner.RunWith;
41
42 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
43 public class CatalogDatabaseESTest extends CatalogDatabaseESTestscaffolding {
44
45   @Test(timeout = 4000)
46   public void test00()  throws Throwable  {
47       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
48       VfModuleToHeatFiles vfModuleToHeatFiles0 = mock(VfModuleToHeatFiles.class, new ViolatedAssumptionAnswer());
49       List<VfModuleToHeatFiles> list0 = (List<VfModuleToHeatFiles>) mock(List.class, new ViolatedAssumptionAnswer());
50       doReturn(vfModuleToHeatFiles0).when(list0).get(anyInt());
51       doReturn(false).when(list0).isEmpty();
52       doReturn(1, 1).when(list0).size();
53       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
54       Query query1 = mock(Query.class, new ViolatedAssumptionAnswer());
55       doReturn(list0).when(query1).list();
56       doReturn(query0).when(query1).setParameter(anyString() , any());
57       List<ChronoLocalDate> list1 = (List<ChronoLocalDate>) mock(List.class, new ViolatedAssumptionAnswer());
58       Query query2 = mock(Query.class, new ViolatedAssumptionAnswer());
59       Query query3 = mock(Query.class, new ViolatedAssumptionAnswer());
60       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
61       doReturn("YF}DP?7kbDc>q", (String) null, "", "").when(session0).toString();
62       doReturn(query1).when(session0).createQuery(anyString());
63       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
64       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
65       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
66       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
67       // Undeclared exception!
68       try { 
69         catalogDatabase0.getHeatTemplate((String) null);
70         fail("Expecting exception: ClassCastException");
71       
72       } catch(ClassCastException e) {
73          //
74          // org.openecomp.mso.db.catalog.beans.VfModuleToHeatFiles$$EnhancerByMockitoWithCGLIB$$309d9392 cannot be cast to org.openecomp.mso.db.catalog.beans.HeatTemplate
75          //
76          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
77       }
78   }
79
80   @Test(timeout = 4000)
81   public void test01()  throws Throwable  {
82       MessageEnum messageEnum0 = MessageEnum.APIH_GENERATED_REQUEST_ID;
83       MessageEnum messageEnum1 = MessageEnum.APIH_DUPLICATE_CHECK_EXC;
84       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
85       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
86       doReturn((String) null).when(session0).toString();
87       doReturn((Query) null).when(session0).createQuery(anyString());
88       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
89       Session session1 = mock(Session.class, new ViolatedAssumptionAnswer());
90       HeatTemplate heatTemplate0 = mock(HeatTemplate.class, new ViolatedAssumptionAnswer());
91       // Undeclared exception!
92       try { 
93         catalogDatabase0.getVfModuleType((String) null, (String) null);
94         fail("Expecting exception: NullPointerException");
95       
96       } catch(NullPointerException e) {
97          //
98          // no message in exception (getMessage() returned null)
99          //
100          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
101       }
102   }
103
104   @Test(timeout = 4000)
105   public void test02()  throws Throwable  {
106       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
107       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
108       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
109       VnfComponentsRecipe vnfComponentsRecipe0 = mock(VnfComponentsRecipe.class, new ViolatedAssumptionAnswer());
110       List<VnfComponentsRecipe> list0 = (List<VnfComponentsRecipe>) mock(List.class, new ViolatedAssumptionAnswer());
111       doReturn(true).when(list0).isEmpty();
112       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
113       Query query1 = mock(Query.class, new ViolatedAssumptionAnswer());
114       doReturn(list0).when(query1).list();
115       doReturn(query0).when(query1).setParameter(anyString() , any());
116       List<MockThaiBuddhistDate> list1 = (List<MockThaiBuddhistDate>) mock(List.class, new ViolatedAssumptionAnswer());
117       Query query2 = mock(Query.class, new ViolatedAssumptionAnswer());
118       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
119       Query query3 = mock(Query.class, new ViolatedAssumptionAnswer());
120       doReturn(query2, query2, query2, query2).when(query3).setParameter(anyString() , any());
121       doReturn(serviceRecipe0).when(query3).uniqueResult();
122       Query query4 = mock(Query.class, new ViolatedAssumptionAnswer());
123       doReturn((List) null).when(query4).list();
124       doReturn((Query) null, (Query) null, (Query) null).when(query4).setParameter(anyString() , any());
125       Session session1 = mock(Session.class, new ViolatedAssumptionAnswer());
126       doReturn("F4D:=_l\"v%zem^./^", "", "", ",volTemplateId=", ", fileName=null").when(session1).toString();
127       doReturn(",volTemplateId=").when(session1).save(any());
128       doReturn(query1, query3, query4).when(session1).createQuery(anyString());
129       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session1);
130       catalogDatabase0.getHeatEnvironment((-1));
131       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
132       Session session2 = mock(Session.class, new ViolatedAssumptionAnswer());
133       HeatTemplate heatTemplate0 = mock(HeatTemplate.class, new ViolatedAssumptionAnswer());
134       doReturn("~+(<.").when(heatTemplate0).getAsdcResourceName();
135       doReturn("qOWRn", "@;i!EF=FjdS;").when(heatTemplate0).getTemplateName();
136       doReturn("o~%Y*9E5Pu.f").when(heatTemplate0).getVersion();
137       Iterator<HeatTemplateParam> iterator0 = (Iterator<HeatTemplateParam>) mock(Iterator.class, new ViolatedAssumptionAnswer());
138       HeatFiles heatFiles0 = mock(HeatFiles.class, new ViolatedAssumptionAnswer());
139       doReturn("").when(heatFiles0).getAsdcResourceName();
140       doReturn("@;i!EF=FjdS;", "~+(<.").when(heatFiles0).getFileName();
141       doReturn((-1)).when(heatFiles0).getVnfResourceId();
142       doReturn("i#C").when(heatFiles0).getVersion();
143       catalogDatabase0.saveHeatFiles(heatFiles0);
144       Set<HeatTemplateParam> set0 = (Set<HeatTemplateParam>) mock(Set.class, new ViolatedAssumptionAnswer());
145       // Undeclared exception!
146       try { 
147         catalogDatabase0.saveHeatTemplate(heatTemplate0, set0);
148         fail("Expecting exception: NullPointerException");
149       
150       } catch(NullPointerException e) {
151       }
152   }
153
154   @Test(timeout = 4000)
155   public void test03()  throws Throwable  {
156       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
157       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
158       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
159       MockJapaneseDate mockJapaneseDate0 = new MockJapaneseDate();
160       List<MockJapaneseDate> list0 = (List<MockJapaneseDate>) mock(List.class, new ViolatedAssumptionAnswer());
161       doReturn(true).when(list0).isEmpty();
162       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
163       Query query1 = mock(Query.class, new ViolatedAssumptionAnswer());
164       doReturn(list0).when(query1).list();
165       doReturn(query0).when(query1).setParameter(anyString() , any());
166       List<HeatFiles> list1 = (List<HeatFiles>) mock(List.class, new ViolatedAssumptionAnswer());
167       doReturn((Object) null).when(list1).get(anyInt());
168       doReturn(false).when(list1).isEmpty();
169       doReturn(0).when(list1).size();
170       Query query2 = mock(Query.class, new ViolatedAssumptionAnswer());
171       Query query3 = mock(Query.class, new ViolatedAssumptionAnswer());
172       doReturn(list1).when(query3).list();
173       doReturn(query2, query2, query2).when(query3).setParameter(anyString() , any());
174       Session session1 = mock(Session.class, new ViolatedAssumptionAnswer());
175       doReturn("F4D:=_l\"v%zem^./^", "po=vr", "po=vr", "po=vr").when(session1).toString();
176       doReturn("po=vr").when(session1).save(any());
177       doReturn(query1, query3).when(session1).createQuery(anyString());
178       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session1);
179       catalogDatabase0.getHeatEnvironment((-1));
180       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
181       Session session2 = mock(Session.class, new ViolatedAssumptionAnswer());
182       HeatTemplate heatTemplate0 = mock(HeatTemplate.class, new ViolatedAssumptionAnswer());
183       doReturn("").when(heatTemplate0).getAsdcResourceName();
184       doReturn(0).when(heatTemplate0).getId();
185       doReturn("", "RDu8*C_[t4L").when(heatTemplate0).getTemplateName();
186       doReturn((String) null).when(heatTemplate0).getVersion();
187       Iterator<HeatTemplateParam> iterator0 = (Iterator<HeatTemplateParam>) mock(Iterator.class, new ViolatedAssumptionAnswer());
188       doReturn(true).when(iterator0).hasNext();
189       doReturn((Object) null).when(iterator0).next();
190       Set<HeatTemplateParam> set0 = (Set<HeatTemplateParam>) mock(Set.class, new ViolatedAssumptionAnswer());
191       doReturn(iterator0).when(set0).iterator();
192       // Undeclared exception!
193       try { 
194         catalogDatabase0.saveHeatTemplate(heatTemplate0, set0);
195         fail("Expecting exception: NullPointerException");
196       
197       } catch(NullPointerException e) {
198          //
199          // no message in exception (getMessage() returned null)
200          //
201          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
202       }
203   }
204
205   @Test(timeout = 4000)
206   public void test04()  throws Throwable  {
207       MessageEnum messageEnum0 = MessageEnum.RA_DB_INVALID_STATUS;
208       MessageEnum messageEnum1 = MessageEnum.LOGGER_UPDATE_SUC;
209       MessageEnum messageEnum2 = MessageEnum.ASDC_ARTIFACT_DOWNLOAD_FAIL;
210       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
211       HashMap<String, String> hashMap0 = new HashMap<String, String>();
212       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
213       doReturn((String) null).when(session0).toString();
214       doReturn((Query) null).when(session0).createQuery(anyString());
215       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
216       // Undeclared exception!
217       try { 
218         catalogDatabase0.getService(hashMap0, "Successfully. No template found");
219         fail("Expecting exception: NullPointerException");
220       
221       } catch(NullPointerException e) {
222          //
223          // no message in exception (getMessage() returned null)
224          //
225          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
226       }
227   }
228
229   @Test(timeout = 4000)
230   public void test05()  throws Throwable  {
231       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
232       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
233       doReturn((String) null).when(session0).toString();
234       doReturn((Query) null).when(session0).createQuery(anyString());
235       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
236       // Undeclared exception!
237       try { 
238         catalogDatabase0.getNestedTemplates(2377);
239         fail("Expecting exception: NullPointerException");
240       
241       } catch(NullPointerException e) {
242          //
243          // no message in exception (getMessage() returned null)
244          //
245          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
246       }
247   }
248
249   @Test(timeout = 4000)
250   public void test06()  throws Throwable  {
251       MessageEnum messageEnum0 = MessageEnum.APIH_QUERY_PARAM_WRONG;
252       MessageEnum messageEnum1 = MessageEnum.RA_SEND_REQUEST_SDNC;
253       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
254       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
255       doReturn((String) null).when(session0).toString();
256       doReturn((Query) null).when(session0).createQuery(anyString());
257       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
258       // Undeclared exception!
259       try { 
260         catalogDatabase0.getVnfComponentsRecipe("Generic exception searching for vnf_id=", (String) null, (String) null, (String) null);
261         fail("Expecting exception: NullPointerException");
262       
263       } catch(NullPointerException e) {
264          //
265          // no message in exception (getMessage() returned null)
266          //
267          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
268       }
269   }
270
271   @Test(timeout = 4000)
272   public void test07()  throws Throwable  {
273       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
274       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
275       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
276       List<VnfRecipe> list0 = (List<VnfRecipe>) mock(List.class, new ViolatedAssumptionAnswer());
277       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
278       Query query1 = mock(Query.class, new ViolatedAssumptionAnswer());
279       doReturn(query0, query0).when(query1).setParameter(anyString() , any());
280       doReturn((Object) null).when(query1).uniqueResult();
281       Query query2 = mock(Query.class, new ViolatedAssumptionAnswer());
282       doReturn((List) null).when(query2).list();
283       doReturn((Query) null).when(query2).setParameter(anyString() , any());
284       Session session1 = mock(Session.class, new ViolatedAssumptionAnswer());
285       doReturn("F4D:=_l\"v%zem^./^", "getVfModuleRecipe").when(session1).toString();
286       doReturn(query1, query2).when(session1).createQuery(anyString());
287       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session1);
288       catalogDatabase0.getVnfComponent(187, "");
289       // Undeclared exception!
290       try { 
291         catalogDatabase0.getHeatEnvironment((-1));
292         fail("Expecting exception: NullPointerException");
293       
294       } catch(NullPointerException e) {
295       }
296   }
297
298   @Test(timeout = 4000)
299   public void test08()  throws Throwable  {
300       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
301       // Undeclared exception!
302       try { 
303         catalogDatabase0.getNetworkRecipe("735uWxa&iIbU.4]O$", ",hpGX76\"X~ow4", (String) null);
304         fail("Expecting exception: NullPointerException");
305       
306       } catch(NullPointerException e) {
307          //
308          // no message in exception (getMessage() returned null)
309          //
310          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
311       }
312   }
313
314   @Test(timeout = 4000)
315   public void test09()  throws Throwable  {
316       MessageEnum messageEnum0 = MessageEnum.APIH_PROPERTY_LOAD_SUC;
317       MessageEnum messageEnum1 = MessageEnum.ASDC_ARTIFACT_DOWNLOAD_FAIL;
318       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
319       HashMap<String, String> hashMap0 = new HashMap<String, String>();
320       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
321       doReturn((String) null).when(session0).toString();
322       doReturn((Query) null).when(session0).createQuery(anyString());
323       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
324       // Undeclared exception!
325       try { 
326         catalogDatabase0.getVnfComponentsRecipeByVfModuleId("", "(3", "");
327         fail("Expecting exception: NullPointerException");
328       
329       } catch(NullPointerException e) {
330          //
331          // no message in exception (getMessage() returned null)
332          //
333          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
334       }
335   }
336
337   @Test(timeout = 4000)
338   public void test10()  throws Throwable  {
339       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
340       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
341       doReturn((String) null, (String) null).when(session0).toString();
342       doReturn((Query) null).when(session0).createQuery(anyString());
343       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
344       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
345       // Undeclared exception!
346       try { 
347         catalogDatabase0.getVnfComponentsRecipe("B4@1", "v@\7f(U", "", (String) null, "");
348         fail("Expecting exception: NullPointerException");
349       
350       } catch(NullPointerException e) {
351          //
352          // no message in exception (getMessage() returned null)
353          //
354          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
355       }
356   }
357
358   @Test(timeout = 4000)
359   public void test11()  throws Throwable  {
360       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
361       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
362       doReturn((String) null).when(session0).toString();
363       doReturn((Query) null).when(session0).createQuery(anyString());
364       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
365       // Undeclared exception!
366       try { 
367         catalogDatabase0.getService((String) null);
368         fail("Expecting exception: NullPointerException");
369       
370       } catch(NullPointerException e) {
371          //
372          // no message in exception (getMessage() returned null)
373          //
374          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
375       }
376   }
377
378   @Test(timeout = 4000)
379   public void test12()  throws Throwable  {
380       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
381       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
382       doReturn((String) null).when(session0).toString();
383       doReturn((Query) null).when(session0).createQuery(anyString());
384       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
385       // Undeclared exception!
386       try { 
387         catalogDatabase0.getVfModuleModelName("", "RiY");
388         fail("Expecting exception: NullPointerException");
389       
390       } catch(NullPointerException e) {
391          //
392          // no message in exception (getMessage() returned null)
393          //
394          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
395       }
396   }
397
398   @Test(timeout = 4000)
399   public void test13()  throws Throwable  {
400       MessageEnum messageEnum0 = MessageEnum.RA_UPDATE_TENANT_ERR;
401       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
402       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
403       doReturn((String) null).when(session0).toString();
404       doReturn((Query) null).when(session0).createQuery(anyString());
405       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
406       VnfRecipe vnfRecipe0 = mock(VnfRecipe.class, new ViolatedAssumptionAnswer());
407       Service service0 = new Service();
408       // Undeclared exception!
409       try { 
410         catalogDatabase0.saveService(service0);
411         fail("Expecting exception: NullPointerException");
412       
413       } catch(NullPointerException e) {
414          //
415          // no message in exception (getMessage() returned null)
416          //
417          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
418       }
419   }
420
421   @Test(timeout = 4000)
422   public void test14()  throws Throwable  {
423       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
424       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
425       doReturn((String) null).when(session0).toString();
426       doReturn((Query) null).when(session0).createQuery(anyString());
427       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
428       // Undeclared exception!
429       try { 
430         catalogDatabase0.getNetworkRecipe("735uWxa&iIbU.4]O$", ",hpGX76\"X~ow4", "");
431         fail("Expecting exception: NullPointerException");
432       
433       } catch(NullPointerException e) {
434          //
435          // no message in exception (getMessage() returned null)
436          //
437          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
438       }
439   }
440
441   @Test(timeout = 4000)
442   public void test15()  throws Throwable  {
443       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
444       HeatTemplate heatTemplate0 = mock(HeatTemplate.class, new ViolatedAssumptionAnswer());
445       VnfResource vnfResource0 = mock(VnfResource.class, new ViolatedAssumptionAnswer());
446       // Undeclared exception!
447       try { 
448         catalogDatabase0.saveService((Service) null);
449         fail("Expecting exception: NullPointerException");
450       
451       } catch(NullPointerException e) {
452          //
453          // no message in exception (getMessage() returned null)
454          //
455          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
456       }
457   }
458
459   @Test(timeout = 4000)
460   public void test16()  throws Throwable  {
461       MessageEnum messageEnum0 = MessageEnum.RA_CREATE_NETWORK_EXC;
462       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
463       HeatTemplate heatTemplate0 = new HeatTemplate();
464       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
465       // Undeclared exception!
466       try { 
467         catalogDatabase0.saveHeatTemplate((HeatTemplate) null, (Set<HeatTemplateParam>) linkedHashSet0);
468         fail("Expecting exception: NullPointerException");
469       
470       } catch(NullPointerException e) {
471          //
472          // no message in exception (getMessage() returned null)
473          //
474          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
475       }
476   }
477
478   @Test(timeout = 4000)
479   public void test17()  throws Throwable  {
480       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
481       VnfResource vnfResource0 = mock(VnfResource.class, new ViolatedAssumptionAnswer());
482       doReturn((-1)).when(vnfResource0).getId();
483       doReturn("#5|%>JWRPJfP)S@").when(vnfResource0).getVnfType();
484       // Undeclared exception!
485       try { 
486         catalogDatabase0.saveOrUpdateVnfResource(vnfResource0);
487         fail("Expecting exception: NullPointerException");
488       
489       } catch(NullPointerException e) {
490          //
491          // no message in exception (getMessage() returned null)
492          //
493          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
494       }
495   }
496
497   @Test(timeout = 4000)
498   public void test18()  throws Throwable  {
499       MessageEnum messageEnum0 = MessageEnum.RA_ANALYZE_ERROR_EXC;
500       MsoLogger.StatusCode.values();
501       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
502       // Undeclared exception!
503       try { 
504         catalogDatabase0.saveVnfRecipe((VnfRecipe) null);
505         fail("Expecting exception: NullPointerException");
506       
507       } catch(NullPointerException e) {
508          //
509          // no message in exception (getMessage() returned null)
510          //
511          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
512       }
513   }
514
515   @Test(timeout = 4000)
516   public void test19()  throws Throwable  {
517       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
518       Service service0 = mock(Service.class, new ViolatedAssumptionAnswer());
519       doReturn((String) null).when(service0).getServiceName();
520       doReturn((String) null, (String) null).when(service0).getServiceNameVersionId();
521       doReturn((String) null).when(service0).getServiceVersion();
522       // Undeclared exception!
523       try { 
524         catalogDatabase0.saveService(service0);
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.db.catalog.CatalogDatabase", e);
532       }
533   }
534
535   @Test(timeout = 4000)
536   public void test20()  throws Throwable  {
537       MessageEnum messageEnum0 = MessageEnum.APIH_BAD_ORDER;
538       MessageEnum messageEnum1 = MessageEnum.RA_SEND_VNF_NOTIF_ERR;
539       MessageEnum messageEnum2 = MessageEnum.APIH_DB_ATTRIBUTE_NOT_FOUND;
540       MessageEnum messageEnum3 = MessageEnum.RA_VNF_NOT_EXIST;
541       MsoLogger.ErrorCode msoLogger_ErrorCode0 = MsoLogger.ErrorCode.PermissionError;
542       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
543       HeatEnvironment heatEnvironment0 = new HeatEnvironment();
544       // Undeclared exception!
545       try { 
546         catalogDatabase0.saveHeatEnvironment(heatEnvironment0);
547         fail("Expecting exception: NullPointerException");
548       
549       } catch(NullPointerException e) {
550          //
551          // no message in exception (getMessage() returned null)
552          //
553          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
554       }
555   }
556
557   @Test(timeout = 4000)
558   public void test21()  throws Throwable  {
559       MessageEnum messageEnum0 = MessageEnum.APIH_GENERAL_METRICS;
560       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
561       // Undeclared exception!
562       try { 
563         catalogDatabase0.saveHeatEnvironment((HeatEnvironment) null);
564         fail("Expecting exception: NullPointerException");
565       
566       } catch(NullPointerException e) {
567          //
568          // no message in exception (getMessage() returned null)
569          //
570          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
571       }
572   }
573
574   @Test(timeout = 4000)
575   public void test22()  throws Throwable  {
576       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
577       // Undeclared exception!
578       try { 
579         catalogDatabase0.getVnfRecipe((String) null, (String) null, (String) null);
580         fail("Expecting exception: NullPointerException");
581       
582       } catch(NullPointerException e) {
583          //
584          // no message in exception (getMessage() returned null)
585          //
586          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
587       }
588   }
589
590   @Test(timeout = 4000)
591   public void test23()  throws Throwable  {
592       MsoLogger.ErrorCode.values();
593       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
594       // Undeclared exception!
595       try { 
596         catalogDatabase0.rollback();
597         fail("Expecting exception: NullPointerException");
598       
599       } catch(NullPointerException e) {
600          //
601          // no message in exception (getMessage() returned null)
602          //
603          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
604       }
605   }
606
607   @Test(timeout = 4000)
608   public void test24()  throws Throwable  {
609       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
610       // Undeclared exception!
611       try { 
612         catalogDatabase0.getAllHeatTemplates();
613         fail("Expecting exception: NullPointerException");
614       
615       } catch(NullPointerException e) {
616          //
617          // no message in exception (getMessage() returned null)
618          //
619          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
620       }
621   }
622
623   @Test(timeout = 4000)
624   public void test25()  throws Throwable  {
625       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
626       // Undeclared exception!
627       try { 
628         catalogDatabase0.getHeatFilesForVfModule((-1539));
629         fail("Expecting exception: NullPointerException");
630       
631       } catch(NullPointerException e) {
632          //
633          // no message in exception (getMessage() returned null)
634          //
635          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
636       }
637   }
638
639   @Test(timeout = 4000)
640   public void test26()  throws Throwable  {
641       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
642       // Undeclared exception!
643       try { 
644         catalogDatabase0.getHeatEnvironment(0);
645         fail("Expecting exception: NullPointerException");
646       
647       } catch(NullPointerException e) {
648          //
649          // no message in exception (getMessage() returned null)
650          //
651          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
652       }
653   }
654
655   @Test(timeout = 4000)
656   public void test27()  throws Throwable  {
657       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
658       // Undeclared exception!
659       try { 
660         catalogDatabase0.getAllHeatEnvironment();
661         fail("Expecting exception: NullPointerException");
662       
663       } catch(NullPointerException e) {
664          //
665          // no message in exception (getMessage() returned null)
666          //
667          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
668       }
669   }
670
671   @Test(timeout = 4000)
672   public void test28()  throws Throwable  {
673       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
674       // Undeclared exception!
675       try { 
676         catalogDatabase0.commit();
677         fail("Expecting exception: NullPointerException");
678       
679       } catch(NullPointerException e) {
680          //
681          // no message in exception (getMessage() returned null)
682          //
683          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
684       }
685   }
686
687   @Test(timeout = 4000)
688   public void test29()  throws Throwable  {
689       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
690       HeatFiles heatFiles0 = new HeatFiles();
691       heatFiles0.setVersion("E0)WE F/LaV~i2U01");
692       heatFiles0.setFileName("uIZl|");
693       // Undeclared exception!
694       try { 
695         catalogDatabase0.saveHeatFiles(heatFiles0);
696         fail("Expecting exception: NullPointerException");
697       
698       } catch(NullPointerException e) {
699          //
700          // no message in exception (getMessage() returned null)
701          //
702          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
703       }
704   }
705
706   @Test(timeout = 4000)
707   public void test30()  throws Throwable  {
708       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
709       // Undeclared exception!
710       try { 
711         catalogDatabase0.saveVnfComponentsRecipe((VnfComponentsRecipe) null);
712         fail("Expecting exception: NullPointerException");
713       
714       } catch(NullPointerException e) {
715          //
716          // no message in exception (getMessage() returned null)
717          //
718          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
719       }
720   }
721
722   @Test(timeout = 4000)
723   public void test31()  throws Throwable  {
724       MessageEnum messageEnum0 = MessageEnum.INIT_LOGGER_FAIL;
725       MessageEnum messageEnum1 = MessageEnum.ASDC_CREATE_SERVICE;
726       MessageEnum messageEnum2 = MessageEnum.NO_PROPERTIES;
727       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
728       // Undeclared exception!
729       try { 
730         catalogDatabase0.healthCheck();
731         fail("Expecting exception: NullPointerException");
732       
733       } catch(NullPointerException e) {
734          //
735          // no message in exception (getMessage() returned null)
736          //
737          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
738       }
739   }
740
741   @Test(timeout = 4000)
742   public void test32()  throws Throwable  {
743       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
744       catalogDatabase0.close();
745       // Undeclared exception!
746       try { 
747         catalogDatabase0.getHeatTemplate(1197);
748         fail("Expecting exception: NullPointerException");
749       
750       } catch(NullPointerException e) {
751          //
752          // no message in exception (getMessage() returned null)
753          //
754          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
755       }
756   }
757
758   @Test(timeout = 4000)
759   public void test33()  throws Throwable  {
760       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
761       // Undeclared exception!
762       try { 
763         catalogDatabase0.getAllNetworkResources();
764         fail("Expecting exception: NullPointerException");
765       
766       } catch(NullPointerException e) {
767          //
768          // no message in exception (getMessage() returned null)
769          //
770          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
771       }
772   }
773
774   @Test(timeout = 4000)
775   public void test34()  throws Throwable  {
776       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
777       // Undeclared exception!
778       try { 
779         catalogDatabase0.getVnfComponentsRecipe("Ikrt3T$WS\"UMs#Q", "Ikrt3T$WS\"UMs#Q", "Ikrt3T$WS\"UMs#Q", "");
780         fail("Expecting exception: NullPointerException");
781       
782       } catch(NullPointerException e) {
783          //
784          // no message in exception (getMessage() returned null)
785          //
786          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
787       }
788   }
789
790   @Test(timeout = 4000)
791   public void test35()  throws Throwable  {
792       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
793       // Undeclared exception!
794       try { 
795         catalogDatabase0.getHeatTemplate((String) null);
796         fail("Expecting exception: NullPointerException");
797       
798       } catch(NullPointerException e) {
799          //
800          // no message in exception (getMessage() returned null)
801          //
802          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
803       }
804   }
805
806   @Test(timeout = 4000)
807   public void test36()  throws Throwable  {
808       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
809       // Undeclared exception!
810       try { 
811         catalogDatabase0.getVnfComponent(1987, "R$9=*_j3~I=:_");
812         fail("Expecting exception: NullPointerException");
813       
814       } catch(NullPointerException e) {
815          //
816          // no message in exception (getMessage() returned null)
817          //
818          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
819       }
820   }
821
822   @Test(timeout = 4000)
823   public void test37()  throws Throwable  {
824       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
825       // Undeclared exception!
826       try { 
827         catalogDatabase0.getHeatFiles(0, "r#j>oJCQI5r'@)jSH", "K6#W1{s", "vRm");
828         fail("Expecting exception: NullPointerException");
829       
830       } catch(NullPointerException e) {
831          //
832          // no message in exception (getMessage() returned null)
833          //
834          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
835       }
836   }
837
838   @Test(timeout = 4000)
839   public void test38()  throws Throwable  {
840       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
841       // Undeclared exception!
842       try { 
843         catalogDatabase0.getVnfResourcesByRole("");
844         fail("Expecting exception: NullPointerException");
845       
846       } catch(NullPointerException e) {
847          //
848          // no message in exception (getMessage() returned null)
849          //
850          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
851       }
852   }
853
854   @Test(timeout = 4000)
855   public void test39()  throws Throwable  {
856       MessageEnum messageEnum0 = MessageEnum.RA_ASYNC_DELETE_VNF;
857       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
858       // Undeclared exception!
859       try { 
860         catalogDatabase0.getAllVnfResources();
861         fail("Expecting exception: NullPointerException");
862       
863       } catch(NullPointerException e) {
864          //
865          // no message in exception (getMessage() returned null)
866          //
867          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
868       }
869   }
870
871   @Test(timeout = 4000)
872   public void test40()  throws Throwable  {
873       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
874       List<VfModuleToHeatFiles> list0 = (List<VfModuleToHeatFiles>) mock(List.class, new ViolatedAssumptionAnswer());
875       doReturn((Object) null).when(list0).get(anyInt());
876       doReturn(false).when(list0).isEmpty();
877       doReturn(0, 0).when(list0).size();
878       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
879       Query query1 = mock(Query.class, new ViolatedAssumptionAnswer());
880       doReturn(list0).when(query1).list();
881       doReturn(query0).when(query1).setParameter(anyString() , any());
882       Query query2 = mock(Query.class, new ViolatedAssumptionAnswer());
883       doReturn((List) null).when(query2).list();
884       doReturn((Query) null).when(query2).setParameter(anyString() , any());
885       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
886       doReturn("YF}DP?7kbDc>q", (String) null, "", "", "").when(session0).toString();
887       doReturn(query1, query2).when(session0).createQuery(anyString());
888       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
889       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
890       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
891       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
892       catalogDatabase0.getHeatTemplate((String) null);
893       // Undeclared exception!
894       try { 
895         catalogDatabase0.getHeatEnvironment(148);
896         fail("Expecting exception: NullPointerException");
897       
898       } catch(NullPointerException e) {
899       }
900   }
901
902   @Test(timeout = 4000)
903   public void test41()  throws Throwable  {
904       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
905       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
906       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
907       List<VnfComponentsRecipe> list0 = (List<VnfComponentsRecipe>) mock(List.class, new ViolatedAssumptionAnswer());
908       doReturn((Object) null).when(list0).get(anyInt());
909       doReturn(false).when(list0).isEmpty();
910       doReturn(0).when(list0).size();
911       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
912       Query query1 = mock(Query.class, new ViolatedAssumptionAnswer());
913       doReturn(list0).when(query1).list();
914       doReturn(query0).when(query1).setParameter(anyString() , any());
915       Query query2 = mock(Query.class, new ViolatedAssumptionAnswer());
916       doReturn((Query) null, (Query) null, (Query) null, (Query) null).when(query2).setParameter(anyString() , any());
917       doReturn((Object) null).when(query2).uniqueResult();
918       Session session1 = mock(Session.class, new ViolatedAssumptionAnswer());
919       doReturn("F4D:=_l\"v%zem^./^", "", "", ",volTemplateId=", (String) null).when(session1).toString();
920       doReturn(",volTemplateId=").when(session1).save(any());
921       doReturn(query1, query2, (Query) null).when(session1).createQuery(anyString());
922       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session1);
923       catalogDatabase0.getHeatEnvironment((-1));
924       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
925       Session session2 = mock(Session.class, new ViolatedAssumptionAnswer());
926       HeatTemplate heatTemplate0 = mock(HeatTemplate.class, new ViolatedAssumptionAnswer());
927       doReturn("~+(<.").when(heatTemplate0).getAsdcResourceName();
928       doReturn("qOWRn", "@;i!EF=FjdS;").when(heatTemplate0).getTemplateName();
929       doReturn("o~%Y*9E5Pu.f").when(heatTemplate0).getVersion();
930       Iterator<HeatTemplateParam> iterator0 = (Iterator<HeatTemplateParam>) mock(Iterator.class, new ViolatedAssumptionAnswer());
931       HeatFiles heatFiles0 = mock(HeatFiles.class, new ViolatedAssumptionAnswer());
932       doReturn((String) null).when(heatFiles0).getAsdcResourceName();
933       doReturn((String) null, (String) null).when(heatFiles0).getFileName();
934       doReturn(0).when(heatFiles0).getVnfResourceId();
935       doReturn((String) null).when(heatFiles0).getVersion();
936       catalogDatabase0.saveHeatFiles(heatFiles0);
937       Set<HeatTemplateParam> set0 = (Set<HeatTemplateParam>) mock(Set.class, new ViolatedAssumptionAnswer());
938       // Undeclared exception!
939       try { 
940         catalogDatabase0.saveHeatTemplate(heatTemplate0, set0);
941         fail("Expecting exception: NullPointerException");
942       
943       } catch(NullPointerException e) {
944          //
945          // no message in exception (getMessage() returned null)
946          //
947          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
948       }
949   }
950
951   @Test(timeout = 4000)
952   public void test42()  throws Throwable  {
953       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
954       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
955       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
956       List<HeatTemplateParam> list0 = (List<HeatTemplateParam>) mock(List.class, new ViolatedAssumptionAnswer());
957       doReturn((Object) null).when(list0).get(anyInt());
958       doReturn(false).when(list0).isEmpty();
959       doReturn(0).when(list0).size();
960       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
961       Query query1 = mock(Query.class, new ViolatedAssumptionAnswer());
962       doReturn(list0).when(query1).list();
963       doReturn(query0).when(query1).setParameter(anyString() , any());
964       Query query2 = mock(Query.class, new ViolatedAssumptionAnswer());
965       doReturn((List) null).when(query2).list();
966       doReturn((Query) null, (Query) null, (Query) null).when(query2).setParameter(anyString() , any());
967       Session session1 = mock(Session.class, new ViolatedAssumptionAnswer());
968       doReturn("F4D:=_l\"v%zem^./^", "", "ASDC_PROPERTIES_NOT_FOUND").when(session1).toString();
969       doReturn(query1, query2).when(session1).createQuery(anyString());
970       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session1);
971       catalogDatabase0.getHeatEnvironment((-1));
972       PrivateAccess.callMethod((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "getSession");
973       Session session2 = mock(Session.class, new ViolatedAssumptionAnswer());
974       HeatTemplate heatTemplate0 = mock(HeatTemplate.class, new ViolatedAssumptionAnswer());
975       doReturn("-wAG8.gOR.b_dq\7f").when(heatTemplate0).getAsdcResourceName();
976       doReturn("", "f:DC0FeMtZ").when(heatTemplate0).getTemplateName();
977       doReturn("F4D:=_l\"v%zem^./^").when(heatTemplate0).getVersion();
978       Iterator<HeatTemplateParam> iterator0 = (Iterator<HeatTemplateParam>) mock(Iterator.class, new ViolatedAssumptionAnswer());
979       Set<HeatTemplateParam> set0 = (Set<HeatTemplateParam>) mock(Set.class, new ViolatedAssumptionAnswer());
980       // Undeclared exception!
981       try { 
982         catalogDatabase0.saveHeatTemplate(heatTemplate0, set0);
983         fail("Expecting exception: NullPointerException");
984       
985       } catch(NullPointerException e) {
986       }
987   }
988
989   @Test(timeout = 4000)
990   public void test43()  throws Throwable  {
991       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
992       Session session0 = mock(Session.class, new ViolatedAssumptionAnswer());
993       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session0);
994       Query query0 = mock(Query.class, new ViolatedAssumptionAnswer());
995       doReturn((List) null).when(query0).list();
996       doReturn((Query) null).when(query0).setParameter(anyString() , any());
997       Session session1 = mock(Session.class, new ViolatedAssumptionAnswer());
998       doReturn("F4D:=_l\"v%zem^./^").when(session1).toString();
999       doReturn(query0).when(session1).createQuery(anyString());
1000       PrivateAccess.setVariable((Class<CatalogDatabase>) CatalogDatabase.class, catalogDatabase0, "session", (Object) session1);
1001       // Undeclared exception!
1002       try { 
1003         catalogDatabase0.getHeatEnvironment((-1));
1004         fail("Expecting exception: NullPointerException");
1005       
1006       } catch(NullPointerException e) {
1007       }
1008   }
1009
1010   @Test(timeout = 4000)
1011   public void test44()  throws Throwable  {
1012       MessageEnum messageEnum0 = MessageEnum.GENERAL_EXCEPTION_ARG;
1013       MessageEnum messageEnum1 = MessageEnum.RA_EVALUATE_XPATH_ERROR;
1014       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1015       String string0 = ", vnfResourceId=";
1016       String string1 = "";
1017       String string2 = "U`9Z8:QQUr-c(T@_/)";
1018       String string3 = "$q')fpKG]Q&i\"'{x";
1019       // Undeclared exception!
1020       try { 
1021         catalogDatabase0.getNetworkResource("FT>Ri6U\"Ks<.H/g[");
1022         fail("Expecting exception: NullPointerException");
1023       
1024       } catch(NullPointerException e) {
1025          //
1026          // no message in exception (getMessage() returned null)
1027          //
1028          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1029       }
1030   }
1031
1032   @Test(timeout = 4000)
1033   public void test45()  throws Throwable  {
1034       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1035       int int0 = 1030;
1036       // Undeclared exception!
1037       try { 
1038         catalogDatabase0.getAllVfModules();
1039         fail("Expecting exception: NullPointerException");
1040       
1041       } catch(NullPointerException e) {
1042          //
1043          // no message in exception (getMessage() returned null)
1044          //
1045          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1046       }
1047   }
1048
1049   @Test(timeout = 4000)
1050   public void test46()  throws Throwable  {
1051       MsoLogger.ResponseCode msoLogger_ResponseCode0 = MsoLogger.ResponseCode.DataNotFound;
1052       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1053       // Undeclared exception!
1054       try { 
1055         catalogDatabase0.getVfModuleType("serviceVersion", "serviceVersion");
1056         fail("Expecting exception: NullPointerException");
1057       
1058       } catch(NullPointerException e) {
1059          //
1060          // no message in exception (getMessage() returned null)
1061          //
1062          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1063       }
1064   }
1065
1066   @Test(timeout = 4000)
1067   public void test47()  throws Throwable  {
1068       MsoLogger.ResponseCode msoLogger_ResponseCode0 = MsoLogger.ResponseCode.Conflict;
1069       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1070       // Undeclared exception!
1071       try { 
1072         catalogDatabase0.getNestedTemplates(2377);
1073         fail("Expecting exception: NullPointerException");
1074       
1075       } catch(NullPointerException e) {
1076          //
1077          // no message in exception (getMessage() returned null)
1078          //
1079          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1080       }
1081   }
1082
1083   @Test(timeout = 4000)
1084   public void test48()  throws Throwable  {
1085       MessageEnum messageEnum0 = MessageEnum.APIH_SDNC_RESPONSE_ERROR;
1086       MessageEnum messageEnum1 = MessageEnum.ASDC_ARTIFACT_DOWNLOAD_SUC;
1087       MessageEnum messageEnum2 = MessageEnum.RA_UPDATE_NETWORK_ERR;
1088       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1089       String string0 = null;
1090       // Undeclared exception!
1091       try { 
1092         catalogDatabase0.getVnfResource((String) null, (String) null);
1093         fail("Expecting exception: NullPointerException");
1094       
1095       } catch(NullPointerException e) {
1096          //
1097          // no message in exception (getMessage() returned null)
1098          //
1099          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1100       }
1101   }
1102
1103   @Test(timeout = 4000)
1104   public void test49()  throws Throwable  {
1105       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1106       String string0 = ", description=";
1107       // Undeclared exception!
1108       try { 
1109         catalogDatabase0.getServiceRecipe((-1319), ", description=");
1110         fail("Expecting exception: NullPointerException");
1111       
1112       } catch(NullPointerException e) {
1113          //
1114          // no message in exception (getMessage() returned null)
1115          //
1116          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1117       }
1118   }
1119
1120   @Test(timeout = 4000)
1121   public void test50()  throws Throwable  {
1122       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1123       String string0 = ",hpGX76\"X~ow4";
1124       String string1 = "735uWxa&iIbU.4]O$";
1125       String string2 = "APIH_ERROR_FROM_BPEL_SERVER";
1126       // Undeclared exception!
1127       try { 
1128         catalogDatabase0.getNetworkRecipe("735uWxa&iIbU.4]O$", ",hpGX76\"X~ow4", "");
1129         fail("Expecting exception: NullPointerException");
1130       
1131       } catch(NullPointerException e) {
1132          //
1133          // no message in exception (getMessage() returned null)
1134          //
1135          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1136       }
1137   }
1138
1139   @Test(timeout = 4000)
1140   public void test51()  throws Throwable  {
1141       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1142       String string0 = ",hpGX76\"X~ow4";
1143       String string1 = "APIH_ERROR_FROM_BPEL_SERVER";
1144       // Undeclared exception!
1145       try { 
1146         catalogDatabase0.getNetworkRecipe("", ",hpGX76\"X~ow4");
1147         fail("Expecting exception: NullPointerException");
1148       
1149       } catch(NullPointerException e) {
1150          //
1151          // no message in exception (getMessage() returned null)
1152          //
1153          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1154       }
1155   }
1156
1157   @Test(timeout = 4000)
1158   public void test52()  throws Throwable  {
1159       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1160       String string0 = "$iJG7Jh~P";
1161       String string1 = "b4v5f&LOV|\\";
1162       String string2 = "";
1163       String string3 = null;
1164       // Undeclared exception!
1165       try { 
1166         catalogDatabase0.getVnfResource((String) null);
1167         fail("Expecting exception: NullPointerException");
1168       
1169       } catch(NullPointerException e) {
1170          //
1171          // no message in exception (getMessage() returned null)
1172          //
1173          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1174       }
1175   }
1176
1177   @Test(timeout = 4000)
1178   public void test53()  throws Throwable  {
1179       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1180       String string0 = "Ikrt3T$WS\"UMs#Q";
1181       String string1 = null;
1182       // Undeclared exception!
1183       try { 
1184         catalogDatabase0.getServiceByUUID("Ikrt3T$WS\"UMs#Q");
1185         fail("Expecting exception: NullPointerException");
1186       
1187       } catch(NullPointerException e) {
1188          //
1189          // no message in exception (getMessage() returned null)
1190          //
1191          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1192       }
1193   }
1194
1195   @Test(timeout = 4000)
1196   public void test54()  throws Throwable  {
1197       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1198       String string0 = "v@\7f(U";
1199       // Undeclared exception!
1200       try { 
1201         catalogDatabase0.getVnfComponentsRecipe("!4@@1", "v@\7f(U", "", (String) null, "");
1202         fail("Expecting exception: NullPointerException");
1203       
1204       } catch(NullPointerException e) {
1205          //
1206          // no message in exception (getMessage() returned null)
1207          //
1208          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1209       }
1210   }
1211
1212   @Test(timeout = 4000)
1213   public void test55()  throws Throwable  {
1214       MessageEnum messageEnum0 = MessageEnum.RA_DB_INVALID_STATUS;
1215       MessageEnum messageEnum1 = MessageEnum.LOGGER_UPDATE_SUC;
1216       MessageEnum messageEnum2 = MessageEnum.ASDC_ARTIFACT_DOWNLOAD_FAIL;
1217       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1218       HashMap<String, String> hashMap0 = new HashMap<String, String>();
1219       // Undeclared exception!
1220       try { 
1221         catalogDatabase0.getService(hashMap0, "Successfully. No template found");
1222         fail("Expecting exception: NullPointerException");
1223       
1224       } catch(NullPointerException e) {
1225          //
1226          // no message in exception (getMessage() returned null)
1227          //
1228          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1229       }
1230   }
1231
1232   @Test(timeout = 4000)
1233   public void test56()  throws Throwable  {
1234       MessageEnum messageEnum0 = MessageEnum.APIH_PROPERTY_LOAD_SUC;
1235       MessageEnum messageEnum1 = MessageEnum.ASDC_ARTIFACT_DOWNLOAD_FAIL;
1236       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1237       // Undeclared exception!
1238       try { 
1239         catalogDatabase0.getVnfComponentsRecipeByVfModuleId("", "(3", "");
1240         fail("Expecting exception: NullPointerException");
1241       
1242       } catch(NullPointerException e) {
1243          //
1244          // no message in exception (getMessage() returned null)
1245          //
1246          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1247       }
1248   }
1249
1250   @Test(timeout = 4000)
1251   public void test57()  throws Throwable  {
1252       MsoLogger.ResponseCode msoLogger_ResponseCode0 = MsoLogger.ResponseCode.ServiceNotAvailable;
1253       MessageEnum messageEnum0 = MessageEnum.RA_CONFIG_LOAD;
1254       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1255       String string0 = "";
1256       String string1 = "RiY";
1257       // Undeclared exception!
1258       try { 
1259         catalogDatabase0.getHeatEnvironment("", "RiY", "RiY");
1260         fail("Expecting exception: NullPointerException");
1261       
1262       } catch(NullPointerException e) {
1263          //
1264          // no message in exception (getMessage() returned null)
1265          //
1266          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1267       }
1268   }
1269
1270   @Test(timeout = 4000)
1271   public void test58()  throws Throwable  {
1272       MessageEnum messageEnum0 = MessageEnum.RA_CREATE_NETWORK_EXC;
1273       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1274       int int0 = 4811;
1275       HeatTemplate heatTemplate0 = new HeatTemplate();
1276       LinkedHashSet<HeatTemplateParam> linkedHashSet0 = new LinkedHashSet<HeatTemplateParam>();
1277       // Undeclared exception!
1278       try { 
1279         catalogDatabase0.saveHeatTemplate(heatTemplate0, (Set<HeatTemplateParam>) linkedHashSet0);
1280         fail("Expecting exception: NullPointerException");
1281       
1282       } catch(NullPointerException e) {
1283          //
1284          // no message in exception (getMessage() returned null)
1285          //
1286          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1287       }
1288   }
1289
1290   @Test(timeout = 4000)
1291   public void test59()  throws Throwable  {
1292       MessageEnum messageEnum0 = MessageEnum.APIH_QUERY_PARAM_WRONG;
1293       MessageEnum messageEnum1 = MessageEnum.RA_SEND_REQUEST_SDNC;
1294       CatalogDatabase catalogDatabase0 = new CatalogDatabase();
1295       // Undeclared exception!
1296       try { 
1297         catalogDatabase0.getVnfComponentsRecipe("Generic exception searching for vnf_id=", (String) null, (String) null, (String) null);
1298         fail("Expecting exception: NullPointerException");
1299       
1300       } catch(NullPointerException e) {
1301          //
1302          // no message in exception (getMessage() returned null)
1303          //
1304          verifyException("org.openecomp.mso.db.catalog.CatalogDatabase", e);
1305       }
1306   }
1307 }