2 * This file was automatically generated by EvoSuite
3 * Wed Feb 22 09:32:26 GMT 2017
6 package org.openecomp.mso.db.catalog.beans;
9 import static org.junit.Assert.*;
10 import java.sql.Timestamp;
11 import java.util.HashMap;
13 import org.evosuite.runtime.EvoRunner;
14 import org.evosuite.runtime.EvoRunnerParameters;
15 import org.junit.runner.RunWith;
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class ModelESTest extends ModelESTestscaffolding {
21 public void test00() throws Throwable {
22 Model model0 = new Model();
23 HashMap<String, ServiceRecipe> hashMap0 = new HashMap<String, ServiceRecipe>();
24 ServiceRecipe serviceRecipe0 = new ServiceRecipe();
25 hashMap0.putIfAbsent("yyyy-MM-dd'T'HH:mm:ss.SSSXXX", serviceRecipe0);
26 model0.setRecipes(hashMap0);
27 Map<String, ServiceRecipe> map0 = model0.getRecipes();
28 assertEquals(1, map0.size());
32 public void test01() throws Throwable {
33 Model model0 = new Model();
34 model0.setModelVersionId("9WI;kp?]");
35 String string0 = model0.getModelVersionId();
36 assertEquals("9WI;kp?]", string0);
40 public void test02() throws Throwable {
41 Model model0 = new Model();
42 model0.setModelVersion("_Y+vZ)5
\7f9ie");
43 String string0 = model0.getModelVersion();
44 assertEquals("_Y+vZ)5
\7f9ie", string0);
48 public void test03() throws Throwable {
49 Model model0 = new Model();
50 model0.setModelType("{
\7f!
\7f]r;T");
51 String string0 = model0.getModelType();
52 assertEquals("{
\7f!
\7f]r;T", string0);
56 public void test04() throws Throwable {
57 Model model0 = new Model();
58 model0.setModelName(", description=");
59 String string0 = model0.getModelName();
60 assertEquals(", description=", string0);
64 public void test05() throws Throwable {
65 Model model0 = new Model();
66 model0.setModelInvariantId(".m");
67 String string0 = model0.getModelInvariantId();
68 assertEquals(".m", string0);
72 public void test06() throws Throwable {
73 Model model0 = new Model();
74 model0.setModelCustomizationName("|<HBAfp\"RZv\"?mz&H");
75 String string0 = model0.getModelCustomizationName();
76 assertEquals("|<HBAfp\"RZv\"?mz&H", string0);
80 public void test07() throws Throwable {
81 Model model0 = new Model();
82 model0.setModelCustomizationId("RA");
83 String string0 = model0.getModelCustomizationId();
84 assertEquals("RA", string0);
88 public void test08() throws Throwable {
89 Model model0 = new Model();
90 model0.setModelCustomizationId("");
91 String string0 = model0.getModelCustomizationId();
92 assertEquals("", string0);
96 public void test09() throws Throwable {
97 Model model0 = new Model();
98 model0.setId((-2490));
99 int int0 = model0.getId();
100 assertEquals((-2490), int0);
103 @Test(timeout = 4000)
104 public void test10() throws Throwable {
105 Model model0 = new Model();
106 Timestamp timestamp0 = new Timestamp(0L);
107 model0.setCreated(timestamp0);
108 Timestamp timestamp1 = model0.getCreated();
109 assertSame(timestamp1, timestamp0);
112 @Test(timeout = 4000)
113 public void test11() throws Throwable {
114 Model model0 = new Model();
115 Timestamp timestamp0 = new Timestamp(1L);
116 model0.setCreated(timestamp0);
117 Timestamp timestamp1 = model0.getCreated();
118 assertSame(timestamp1, timestamp0);
121 @Test(timeout = 4000)
122 public void test12() throws Throwable {
123 Model model0 = new Model();
124 String string0 = model0.toString();
125 assertEquals("Model: modelCustomizationId=null,modelCustomizationName=null,modelInvariantId=null,modelName=null,modelType=null,modelVersion=null,modelVersionId=null", string0);
128 @Test(timeout = 4000)
129 public void test13() throws Throwable {
130 Model model0 = new Model();
131 model0.setModelType("");
132 String string0 = model0.getModelType();
133 assertEquals("", string0);
136 @Test(timeout = 4000)
137 public void test14() throws Throwable {
138 Model model0 = new Model();
139 String string0 = model0.getModelInvariantId();
143 @Test(timeout = 4000)
144 public void test15() throws Throwable {
145 Model model0 = new Model();
146 Map<String, ServiceRecipe> map0 = model0.getRecipes();
150 @Test(timeout = 4000)
151 public void test16() throws Throwable {
152 Model model0 = new Model();
153 String string0 = model0.getModelCustomizationName();
157 @Test(timeout = 4000)
158 public void test17() throws Throwable {
159 Model model0 = new Model();
160 model0.setModelVersion("");
161 String string0 = model0.getModelVersion();
162 assertEquals("", string0);
165 @Test(timeout = 4000)
166 public void test18() throws Throwable {
167 Model model0 = new Model();
168 model0.setModelVersionId("");
169 String string0 = model0.getModelVersionId();
170 assertEquals("", string0);
173 @Test(timeout = 4000)
174 public void test19() throws Throwable {
175 Model model0 = new Model();
176 String string0 = model0.getModelType();
180 @Test(timeout = 4000)
181 public void test20() throws Throwable {
182 Model model0 = new Model();
183 model0.setModelInvariantId("");
184 String string0 = model0.getModelInvariantId();
185 assertEquals("", string0);
188 @Test(timeout = 4000)
189 public void test21() throws Throwable {
190 Model model0 = new Model();
191 model0.setModelName("");
192 String string0 = model0.getModelName();
193 assertEquals("", string0);
196 @Test(timeout = 4000)
197 public void test22() throws Throwable {
198 Model model0 = new Model();
199 model0.setModelCustomizationName("");
200 String string0 = model0.getModelCustomizationName();
201 assertEquals("", string0);
204 @Test(timeout = 4000)
205 public void test23() throws Throwable {
206 Model model0 = new Model();
207 Timestamp timestamp0 = new Timestamp(0L);
208 model0.setCreated(timestamp0);
209 String string0 = model0.toString();
210 assertEquals("Model: modelCustomizationId=null,modelCustomizationName=null,modelInvariantId=null,modelName=null,modelType=null,modelVersion=null,modelVersionId=null,created=1/1/70 12:00 AM", string0);
213 @Test(timeout = 4000)
214 public void test24() throws Throwable {
215 Model model0 = new Model();
216 int int0 = model0.getId();
217 assertEquals(0, int0);
220 @Test(timeout = 4000)
221 public void test25() throws Throwable {
222 Model model0 = new Model();
223 HashMap<String, ServiceRecipe> hashMap0 = new HashMap<String, ServiceRecipe>();
224 model0.setRecipes(hashMap0);
225 Map<String, ServiceRecipe> map0 = model0.getRecipes();
226 assertTrue(map0.isEmpty());
229 @Test(timeout = 4000)
230 public void test26() throws Throwable {
231 Model model0 = new Model();
232 String string0 = model0.getModelVersionId();
236 @Test(timeout = 4000)
237 public void test27() throws Throwable {
238 Model model0 = new Model();
239 String string0 = model0.getModelCustomizationId();
243 @Test(timeout = 4000)
244 public void test28() throws Throwable {
245 Model model0 = new Model();
246 String string0 = model0.getModelVersion();
250 @Test(timeout = 4000)
251 public void test29() throws Throwable {
252 Model model0 = new Model();
253 Timestamp timestamp0 = model0.getCreated();
254 assertNull(timestamp0);
257 @Test(timeout = 4000)
258 public void test30() throws Throwable {
259 Model model0 = new Model();
260 String string0 = model0.getModelName();
264 @Test(timeout = 4000)
265 public void test31() throws Throwable {
266 Model model0 = new Model();
268 int int0 = model0.getId();
269 assertEquals(2803, int0);