Merge "updated ARIA version"
[so.git] / mso-catalog-db / src / test / java / org / openecomp / mso / db / catalog / beans / ModelRecipeESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Wed Feb 22 09:32:08 GMT 2017
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 import java.sql.Timestamp;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.junit.runner.RunWith;
15
16 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
17 public class ModelRecipeESTest extends ModelRecipeESTestscaffolding {
18
19   @Test(timeout = 4000)
20   public void test00()  throws Throwable  {
21       ModelRecipe modelRecipe0 = new ModelRecipe();
22       modelRecipe0.setSchemaVersion("594t4m7A7,kaNK");
23       String string0 = modelRecipe0.getSchemaVersion();
24       assertEquals("594t4m7A7,kaNK", string0);
25   }
26
27   @Test(timeout = 4000)
28   public void test01()  throws Throwable  {
29       ModelRecipe modelRecipe0 = new ModelRecipe();
30       Integer integer0 = new Integer(0);
31       modelRecipe0.setRecipeTimeout(integer0);
32       Integer integer1 = modelRecipe0.getRecipeTimeout();
33       assertEquals(0, (int)integer1);
34   }
35
36   @Test(timeout = 4000)
37   public void test02()  throws Throwable  {
38       ModelRecipe modelRecipe0 = new ModelRecipe();
39       Integer integer0 = new Integer(1303);
40       modelRecipe0.setRecipeTimeout(integer0);
41       Integer integer1 = modelRecipe0.getRecipeTimeout();
42       assertEquals(1303, (int)integer1);
43   }
44
45   @Test(timeout = 4000)
46   public void test03()  throws Throwable  {
47       ModelRecipe modelRecipe0 = new ModelRecipe();
48       Integer integer0 = new Integer((-8));
49       modelRecipe0.setRecipeTimeout(integer0);
50       Integer integer1 = modelRecipe0.getRecipeTimeout();
51       assertEquals((-8), (int)integer1);
52   }
53
54   @Test(timeout = 4000)
55   public void test04()  throws Throwable  {
56       ModelRecipe modelRecipe0 = new ModelRecipe();
57       modelRecipe0.setOrchestrationUri("+");
58       String string0 = modelRecipe0.getOrchestrationUri();
59       assertEquals("+", string0);
60   }
61
62   @Test(timeout = 4000)
63   public void test05()  throws Throwable  {
64       ModelRecipe modelRecipe0 = new ModelRecipe();
65       modelRecipe0.setModelParamXSD("");
66       String string0 = modelRecipe0.getModelParamXSD();
67       assertEquals("", string0);
68   }
69
70   @Test(timeout = 4000)
71   public void test06()  throws Throwable  {
72       ModelRecipe modelRecipe0 = new ModelRecipe();
73       Integer integer0 = new Integer(1);
74       modelRecipe0.setModelId(integer0);
75       Integer integer1 = modelRecipe0.getModelId();
76       assertEquals(1, (int)integer1);
77   }
78
79   @Test(timeout = 4000)
80   public void test07()  throws Throwable  {
81       ModelRecipe modelRecipe0 = new ModelRecipe();
82       Integer integer0 = new Integer((-8));
83       modelRecipe0.setModelId(integer0);
84       Integer integer1 = modelRecipe0.getModelId();
85       assertEquals((-8), (int)integer1);
86   }
87
88   @Test(timeout = 4000)
89   public void test08()  throws Throwable  {
90       ModelRecipe modelRecipe0 = new ModelRecipe();
91       modelRecipe0.setId(2372);
92       int int0 = modelRecipe0.getId();
93       assertEquals(2372, int0);
94   }
95
96   @Test(timeout = 4000)
97   public void test09()  throws Throwable  {
98       ModelRecipe modelRecipe0 = new ModelRecipe();
99       modelRecipe0.setId((-438));
100       int int0 = modelRecipe0.getId();
101       assertEquals((-438), int0);
102   }
103
104   @Test(timeout = 4000)
105   public void test10()  throws Throwable  {
106       ModelRecipe modelRecipe0 = new ModelRecipe();
107       modelRecipe0.setDescription("D|`<b3b");
108       String string0 = modelRecipe0.getDescription();
109       assertEquals("D|`<b3b", string0);
110   }
111
112   @Test(timeout = 4000)
113   public void test11()  throws Throwable  {
114       ModelRecipe modelRecipe0 = new ModelRecipe();
115       Timestamp timestamp0 = new Timestamp(0L);
116       modelRecipe0.setCreated(timestamp0);
117       Timestamp timestamp1 = modelRecipe0.getCreated();
118       assertSame(timestamp1, timestamp0);
119   }
120
121   @Test(timeout = 4000)
122   public void test12()  throws Throwable  {
123       ModelRecipe modelRecipe0 = new ModelRecipe();
124       Timestamp timestamp0 = new Timestamp(619L);
125       modelRecipe0.setCreated(timestamp0);
126       Timestamp timestamp1 = modelRecipe0.getCreated();
127       assertEquals("1970-01-01 00:00:00.619", timestamp1.toString());
128   }
129
130   @Test(timeout = 4000)
131   public void test13()  throws Throwable  {
132       ModelRecipe modelRecipe0 = new ModelRecipe();
133       modelRecipe0.setAction("hz4FY");
134       String string0 = modelRecipe0.getAction();
135       assertEquals("hz4FY", string0);
136   }
137
138   @Test(timeout = 4000)
139   public void test14()  throws Throwable  {
140       ModelRecipe modelRecipe0 = new ModelRecipe();
141       modelRecipe0.setAction("");
142       String string0 = modelRecipe0.getAction();
143       assertEquals("", string0);
144   }
145
146   @Test(timeout = 4000)
147   public void test15()  throws Throwable  {
148       ModelRecipe modelRecipe0 = new ModelRecipe();
149       // Undeclared exception!
150       try {
151         modelRecipe0.toString();
152         fail("Expecting exception: NullPointerException");
153
154       } catch(NullPointerException e) {
155          //
156          // no message in exception (getMessage() returned null)
157          //
158          verifyException("org.openecomp.mso.db.catalog.beans.ModelRecipe", e);
159       }
160   }
161
162   @Test(timeout = 4000)
163   public void test16()  throws Throwable  {
164       ModelRecipe modelRecipe0 = new ModelRecipe();
165       Integer integer0 = new Integer(7);
166       modelRecipe0.setRecipeTimeout(integer0);
167       modelRecipe0.setModelId(integer0);
168       String string0 = modelRecipe0.toString();
169       assertEquals("ModelRecipe: modelId=7,action=null,schemaVersion=null,orchestrationUri=null,modelParamXSD=null,recipeTimeout=7", string0);
170   }
171
172   @Test(timeout = 4000)
173   public void test17()  throws Throwable  {
174       ModelRecipe modelRecipe0 = new ModelRecipe();
175       Integer integer0 = modelRecipe0.getModelId();
176       assertNull(integer0);
177   }
178
179   @Test(timeout = 4000)
180   public void test18()  throws Throwable  {
181       ModelRecipe modelRecipe0 = new ModelRecipe();
182       Integer integer0 = new Integer(0);
183       modelRecipe0.setRecipeTimeout(integer0);
184       modelRecipe0.setModelId(integer0);
185       Timestamp timestamp0 = new Timestamp((long) 0);
186       modelRecipe0.setCreated(timestamp0);
187       String string0 = modelRecipe0.toString();
188       assertEquals("ModelRecipe: modelId=0,action=null,schemaVersion=null,orchestrationUri=null,modelParamXSD=null,recipeTimeout=0,created=1/1/70 12:00 AM", string0);
189   }
190
191   @Test(timeout = 4000)
192   public void test19()  throws Throwable  {
193       ModelRecipe modelRecipe0 = new ModelRecipe();
194       String string0 = modelRecipe0.getAction();
195       assertNull(string0);
196   }
197
198   @Test(timeout = 4000)
199   public void test20()  throws Throwable  {
200       ModelRecipe modelRecipe0 = new ModelRecipe();
201       modelRecipe0.setDescription("");
202       String string0 = modelRecipe0.getDescription();
203       assertEquals("", string0);
204   }
205
206   @Test(timeout = 4000)
207   public void test21()  throws Throwable  {
208       ModelRecipe modelRecipe0 = new ModelRecipe();
209       modelRecipe0.setModelParamXSD("nb[xSaP");
210       String string0 = modelRecipe0.getModelParamXSD();
211       assertEquals("nb[xSaP", string0);
212   }
213
214   @Test(timeout = 4000)
215   public void test22()  throws Throwable  {
216       ModelRecipe modelRecipe0 = new ModelRecipe();
217       modelRecipe0.setSchemaVersion("");
218       String string0 = modelRecipe0.getSchemaVersion();
219       assertEquals("", string0);
220   }
221
222   @Test(timeout = 4000)
223   public void test23()  throws Throwable  {
224       ModelRecipe modelRecipe0 = new ModelRecipe();
225       Integer integer0 = new Integer(0);
226       modelRecipe0.setModelId(integer0);
227       Integer integer1 = modelRecipe0.getModelId();
228       assertEquals(0, (int)integer1);
229   }
230
231   @Test(timeout = 4000)
232   public void test24()  throws Throwable  {
233       ModelRecipe modelRecipe0 = new ModelRecipe();
234       int int0 = modelRecipe0.getId();
235       assertEquals(0, int0);
236   }
237
238   @Test(timeout = 4000)
239   public void test25()  throws Throwable  {
240       ModelRecipe modelRecipe0 = new ModelRecipe();
241       String string0 = modelRecipe0.getDescription();
242       assertNull(string0);
243   }
244
245   @Test(timeout = 4000)
246   public void test26()  throws Throwable  {
247       ModelRecipe modelRecipe0 = new ModelRecipe();
248       String string0 = modelRecipe0.getSchemaVersion();
249       assertNull(string0);
250   }
251
252   @Test(timeout = 4000)
253   public void test27()  throws Throwable  {
254       ModelRecipe modelRecipe0 = new ModelRecipe();
255       Integer integer0 = modelRecipe0.getRecipeTimeout();
256       assertNull(integer0);
257   }
258
259   @Test(timeout = 4000)
260   public void test28()  throws Throwable  {
261       ModelRecipe modelRecipe0 = new ModelRecipe();
262       String string0 = modelRecipe0.getOrchestrationUri();
263       assertNull(string0);
264   }
265
266   @Test(timeout = 4000)
267   public void test29()  throws Throwable  {
268       ModelRecipe modelRecipe0 = new ModelRecipe();
269       Timestamp timestamp0 = modelRecipe0.getCreated();
270       assertNull(timestamp0);
271   }
272
273   @Test(timeout = 4000)
274   public void test30()  throws Throwable  {
275       ModelRecipe modelRecipe0 = new ModelRecipe();
276       modelRecipe0.setOrchestrationUri("");
277       String string0 = modelRecipe0.getOrchestrationUri();
278       assertEquals("", string0);
279   }
280
281   @Test(timeout = 4000)
282   public void test31()  throws Throwable  {
283       ModelRecipe modelRecipe0 = new ModelRecipe();
284       String string0 = modelRecipe0.getModelParamXSD();
285       assertNull(string0);
286   }
287 }