Initial OpenECOMP MSO commit
[so.git] / mso-catalog-db / src / test / java / org / openecomp / mso / db / catalog / beans / ServiceRecipeESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 08:20:36 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.shaded.org.mockito.Mockito.*;
11
12 import java.sql.Timestamp;
13 import org.evosuite.runtime.EvoRunner;
14 import org.evosuite.runtime.EvoRunnerParameters;
15 import org.evosuite.runtime.ViolatedAssumptionAnswer;
16 import org.junit.runner.RunWith;
17
18 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
19 public class ServiceRecipeESTest extends ServiceRecipeESTestscaffolding {
20
21   @Test(timeout = 4000)
22   public void test00()  throws Throwable  {
23       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
24       Integer integer0 = new Integer(0);
25       serviceRecipe0.setServiceTimeoutInterim(integer0);
26       Integer integer1 = serviceRecipe0.getServiceTimeoutInterim();
27       assertEquals(0, (int)integer1);
28   }
29
30   @Test(timeout = 4000)
31   public void test01()  throws Throwable  {
32       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
33       Integer integer0 = new Integer(536);
34       serviceRecipe0.setServiceTimeoutInterim(integer0);
35       Integer integer1 = serviceRecipe0.getServiceTimeoutInterim();
36       assertEquals(536, (int)integer1);
37   }
38
39   @Test(timeout = 4000)
40   public void test02()  throws Throwable  {
41       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
42       Integer integer0 = new Integer((-1032));
43       serviceRecipe0.setServiceTimeoutInterim(integer0);
44       Integer integer1 = serviceRecipe0.getServiceTimeoutInterim();
45       assertEquals((-1032), (int)integer1);
46   }
47
48   @Test(timeout = 4000)
49   public void test03()  throws Throwable  {
50       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
51       serviceRecipe0.setServiceParamXSD("*9+?bc]Ov");
52       String string0 = serviceRecipe0.getServiceParamXSD();
53       assertEquals("*9+?bc]Ov", string0);
54   }
55
56   @Test(timeout = 4000)
57   public void test04()  throws Throwable  {
58       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
59       serviceRecipe0.setServiceId(1643);
60       int int0 = serviceRecipe0.getServiceId();
61       assertEquals(1643, int0);
62   }
63
64   @Test(timeout = 4000)
65   public void test05()  throws Throwable  {
66       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
67       serviceRecipe0.setServiceId((-1639));
68       int int0 = serviceRecipe0.getServiceId();
69       assertEquals((-1639), int0);
70   }
71
72   @Test(timeout = 4000)
73   public void test06()  throws Throwable  {
74       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
75       serviceRecipe0.setRecipeTimeout(536);
76       int int0 = serviceRecipe0.getRecipeTimeout();
77       assertEquals(536, int0);
78   }
79
80   @Test(timeout = 4000)
81   public void test07()  throws Throwable  {
82       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
83       serviceRecipe0.setRecipeTimeout((-1));
84       int int0 = serviceRecipe0.getRecipeTimeout();
85       assertEquals((-1), int0);
86   }
87
88   @Test(timeout = 4000)
89   public void test08()  throws Throwable  {
90       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
91       serviceRecipe0.setOrchestrationUri("R~N]`p<1UH\7fw6JYz");
92       String string0 = serviceRecipe0.getOrchestrationUri();
93       assertEquals("R~N]`p<1UH\7fw6JYz", string0);
94   }
95
96   @Test(timeout = 4000)
97   public void test09()  throws Throwable  {
98       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
99       serviceRecipe0.setId(1);
100       int int0 = serviceRecipe0.getId();
101       assertEquals(1, int0);
102   }
103
104   @Test(timeout = 4000)
105   public void test10()  throws Throwable  {
106       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
107       serviceRecipe0.setDescription("wLV^;f35^#");
108       String string0 = serviceRecipe0.getDescription();
109       assertEquals("wLV^;f35^#", string0);
110   }
111
112   @Test(timeout = 4000)
113   public void test11()  throws Throwable  {
114       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
115       serviceRecipe0.setAction("@T7x,XN.)\7f]mDZ");
116       String string0 = serviceRecipe0.getAction();
117       assertEquals("@T7x,XN.)\7f]mDZ", string0);
118   }
119
120   @Test(timeout = 4000)
121   public void test12()  throws Throwable  {
122       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
123       serviceRecipe0.setAction("");
124       String string0 = serviceRecipe0.getAction();
125       assertEquals("", string0);
126   }
127
128   @Test(timeout = 4000)
129   public void test13()  throws Throwable  {
130       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
131       Timestamp timestamp0 = mock(Timestamp.class, new ViolatedAssumptionAnswer());
132       doReturn(0L).when(timestamp0).getTime();
133       serviceRecipe0.setCreated(timestamp0);
134       String string0 = serviceRecipe0.toString();
135       assertEquals("RECIPE: null,uri=null,created=1/1/70 12:00 AM", string0);
136   }
137
138   @Test(timeout = 4000)
139   public void test14()  throws Throwable  {
140       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
141       String string0 = serviceRecipe0.toString();
142       assertEquals("RECIPE: null,uri=null", string0);
143   }
144
145   @Test(timeout = 4000)
146   public void test15()  throws Throwable  {
147       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
148       String string0 = serviceRecipe0.getOrchestrationUri();
149       assertNull(string0);
150   }
151
152   @Test(timeout = 4000)
153   public void test16()  throws Throwable  {
154       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
155       String string0 = serviceRecipe0.getAction();
156       assertNull(string0);
157   }
158
159   @Test(timeout = 4000)
160   public void test17()  throws Throwable  {
161       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
162       Timestamp timestamp0 = serviceRecipe0.getCreated();
163       assertNull(timestamp0);
164   }
165
166   @Test(timeout = 4000)
167   public void test18()  throws Throwable  {
168       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
169       String string0 = serviceRecipe0.getServiceParamXSD();
170       assertNull(string0);
171   }
172
173   @Test(timeout = 4000)
174   public void test19()  throws Throwable  {
175       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
176       serviceRecipe0.setId((-642));
177       int int0 = serviceRecipe0.getId();
178       assertEquals((-642), int0);
179   }
180
181   @Test(timeout = 4000)
182   public void test20()  throws Throwable  {
183       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
184       serviceRecipe0.setDescription("");
185       String string0 = serviceRecipe0.getDescription();
186       assertEquals("", string0);
187   }
188
189   @Test(timeout = 4000)
190   public void test21()  throws Throwable  {
191       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
192       String string0 = serviceRecipe0.getDescription();
193       assertNull(string0);
194   }
195
196   @Test(timeout = 4000)
197   public void test22()  throws Throwable  {
198       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
199       int int0 = serviceRecipe0.getServiceId();
200       assertEquals(0, int0);
201   }
202
203   @Test(timeout = 4000)
204   public void test23()  throws Throwable  {
205       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
206       Integer integer0 = serviceRecipe0.getServiceTimeoutInterim();
207       assertNull(integer0);
208   }
209
210   @Test(timeout = 4000)
211   public void test24()  throws Throwable  {
212       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
213       int int0 = serviceRecipe0.getRecipeTimeout();
214       assertEquals(0, int0);
215   }
216
217   @Test(timeout = 4000)
218   public void test25()  throws Throwable  {
219       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
220       serviceRecipe0.setOrchestrationUri("");
221       String string0 = serviceRecipe0.getOrchestrationUri();
222       assertEquals("", string0);
223   }
224
225   @Test(timeout = 4000)
226   public void test26()  throws Throwable  {
227       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
228       int int0 = serviceRecipe0.getId();
229       assertEquals(0, int0);
230   }
231
232   @Test(timeout = 4000)
233   public void test27()  throws Throwable  {
234       ServiceRecipe serviceRecipe0 = new ServiceRecipe();
235       serviceRecipe0.setServiceParamXSD("");
236       String string0 = serviceRecipe0.getServiceParamXSD();
237       assertEquals("", string0);
238   }
239 }