2 * This file was automatically generated by EvoSuite
3 * Wed Feb 22 09:32:08 GMT 2017
6 package org.openecomp.mso.db.catalog.beans;
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;
16 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
17 public class ModelRecipeESTest extends ModelRecipeESTestscaffolding {
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);
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);
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);
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);
55 public void test04() throws Throwable {
56 ModelRecipe modelRecipe0 = new ModelRecipe();
57 modelRecipe0.setOrchestrationUri("+");
58 String string0 = modelRecipe0.getOrchestrationUri();
59 assertEquals("+", string0);
63 public void test05() throws Throwable {
64 ModelRecipe modelRecipe0 = new ModelRecipe();
65 modelRecipe0.setModelParamXSD("");
66 String string0 = modelRecipe0.getModelParamXSD();
67 assertEquals("", string0);
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);
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);
89 public void test08() throws Throwable {
90 ModelRecipe modelRecipe0 = new ModelRecipe();
91 modelRecipe0.setId(2372);
92 int int0 = modelRecipe0.getId();
93 assertEquals(2372, int0);
97 public void test09() throws Throwable {
98 ModelRecipe modelRecipe0 = new ModelRecipe();
99 modelRecipe0.setId((-438));
100 int int0 = modelRecipe0.getId();
101 assertEquals((-438), int0);
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);
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);
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());
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);
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);
146 @Test(timeout = 4000)
147 public void test15() throws Throwable {
148 ModelRecipe modelRecipe0 = new ModelRecipe();
149 // Undeclared exception!
151 modelRecipe0.toString();
152 fail("Expecting exception: NullPointerException");
154 } catch(NullPointerException e) {
156 // no message in exception (getMessage() returned null)
158 verifyException("org.openecomp.mso.db.catalog.beans.ModelRecipe", e);
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);
172 @Test(timeout = 4000)
173 public void test17() throws Throwable {
174 ModelRecipe modelRecipe0 = new ModelRecipe();
175 Integer integer0 = modelRecipe0.getModelId();
176 assertNull(integer0);
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);
191 @Test(timeout = 4000)
192 public void test19() throws Throwable {
193 ModelRecipe modelRecipe0 = new ModelRecipe();
194 String string0 = modelRecipe0.getAction();
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);
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);
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);
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);
231 @Test(timeout = 4000)
232 public void test24() throws Throwable {
233 ModelRecipe modelRecipe0 = new ModelRecipe();
234 int int0 = modelRecipe0.getId();
235 assertEquals(0, int0);
238 @Test(timeout = 4000)
239 public void test25() throws Throwable {
240 ModelRecipe modelRecipe0 = new ModelRecipe();
241 String string0 = modelRecipe0.getDescription();
245 @Test(timeout = 4000)
246 public void test26() throws Throwable {
247 ModelRecipe modelRecipe0 = new ModelRecipe();
248 String string0 = modelRecipe0.getSchemaVersion();
252 @Test(timeout = 4000)
253 public void test27() throws Throwable {
254 ModelRecipe modelRecipe0 = new ModelRecipe();
255 Integer integer0 = modelRecipe0.getRecipeTimeout();
256 assertNull(integer0);
259 @Test(timeout = 4000)
260 public void test28() throws Throwable {
261 ModelRecipe modelRecipe0 = new ModelRecipe();
262 String string0 = modelRecipe0.getOrchestrationUri();
266 @Test(timeout = 4000)
267 public void test29() throws Throwable {
268 ModelRecipe modelRecipe0 = new ModelRecipe();
269 Timestamp timestamp0 = modelRecipe0.getCreated();
270 assertNull(timestamp0);
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);
281 @Test(timeout = 4000)
282 public void test31() throws Throwable {
283 ModelRecipe modelRecipe0 = new ModelRecipe();
284 String string0 = modelRecipe0.getModelParamXSD();