1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
/*
* This file was automatically generated by EvoSuite
* Mon Feb 20 14:10:44 GMT 2017
*/
package org.openecomp.mso.adapters.vnfrest;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.MockitoExtension.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.runner.RunWith;
import org.openecomp.mso.adapters.vnfrest.VfModuleRollback;
import org.openecomp.mso.entity.MsoRequest;
import org.openecomp.mso.openstack.beans.VnfRollback;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
public class VfModuleRollbackESTest extends VfModuleRollbackESTestscaffolding {
@Test(timeout = 4000)
public void test00() throws Throwable {
VnfRollback vnfRollback0 = mock(VnfRollback.class, new ViolatedAssumptionAnswer());
doReturn((String) null).when(vnfRollback0).getCloudSiteId();
doReturn((MsoRequest) null).when(vnfRollback0).getMsoRequest();
doReturn((String) null).when(vnfRollback0).getTenantId();
doReturn(false).when(vnfRollback0).getVnfCreated();
doReturn((String) null).when(vnfRollback0).getVnfId();
VfModuleRollback vfModuleRollback0 = new VfModuleRollback(vnfRollback0, "Gf(%P^Jj)\u0005JzrF?~", "Gf(%P^Jj)\u0005JzrF?~", "Gf(%P^Jj)\u0005JzrF?~");
vfModuleRollback0.setVfModuleCreated(true);
boolean boolean0 = vfModuleRollback0.isVfModuleCreated();
assertTrue(boolean0);
}
@Test(timeout = 4000)
public void test01() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setVnfId("G\"nvy<Sfjr`hfI8Zl");
vfModuleRollback0.getVnfId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test02() throws Throwable {
VnfRollback vnfRollback0 = mock(VnfRollback.class, new ViolatedAssumptionAnswer());
doReturn((String) null).when(vnfRollback0).getCloudSiteId();
doReturn((MsoRequest) null).when(vnfRollback0).getMsoRequest();
doReturn((String) null).when(vnfRollback0).getTenantId();
doReturn(false).when(vnfRollback0).getVnfCreated();
doReturn((String) null).when(vnfRollback0).getVnfId();
VfModuleRollback vfModuleRollback0 = new VfModuleRollback(vnfRollback0, "RS,v^T.EEJZW/qj~EC", "RS,v^T.EEJZW/qj~EC", "");
vfModuleRollback0.setVnfId("");
vfModuleRollback0.getVnfId();
assertEquals("RS,v^T.EEJZW/qj~EC", vfModuleRollback0.getVfModuleId());
assertEquals("RS,v^T.EEJZW/qj~EC", vfModuleRollback0.getVfModuleStackId());
assertEquals("", vfModuleRollback0.getMessageId());
}
@Test(timeout = 4000)
public void test03() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.getVfModuleStackId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test04() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setVfModuleStackId("G8yt`J");
vfModuleRollback0.getVfModuleStackId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test05() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setVfModuleId("<V0(ch?1");
vfModuleRollback0.getVfModuleId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test06() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setVfModuleId("");
vfModuleRollback0.getVfModuleId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test07() throws Throwable {
VnfRollback vnfRollback0 = mock(VnfRollback.class, new ViolatedAssumptionAnswer());
doReturn((String) null).when(vnfRollback0).getCloudSiteId();
doReturn((MsoRequest) null).when(vnfRollback0).getMsoRequest();
doReturn((String) null).when(vnfRollback0).getTenantId();
doReturn(false).when(vnfRollback0).getVnfCreated();
doReturn((String) null).when(vnfRollback0).getVnfId();
VfModuleRollback vfModuleRollback0 = new VfModuleRollback(vnfRollback0, "RS,v^T.EEJZW/qj~EC", "RS,v^T.EEJZW/qj~EC", "");
vfModuleRollback0.setTenantId("RS,v^T.EEJZW/qj~EC");
vfModuleRollback0.getTenantId();
assertEquals("", vfModuleRollback0.getMessageId());
assertEquals("RS,v^T.EEJZW/qj~EC", vfModuleRollback0.getVfModuleStackId());
assertEquals("RS,v^T.EEJZW/qj~EC", vfModuleRollback0.getVfModuleId());
}
@Test(timeout = 4000)
public void test08() throws Throwable {
MsoRequest msoRequest0 = mock(MsoRequest.class, new ViolatedAssumptionAnswer());
VfModuleRollback vfModuleRollback0 = new VfModuleRollback("", "", "", false, "72M#WP;7?8*Y~!q", "72M#WP;7?8*Y~!q", msoRequest0, "");
assertEquals("72M#WP;7?8*Y~!q", vfModuleRollback0.getTenantId());
vfModuleRollback0.setTenantId("");
vfModuleRollback0.getTenantId();
assertEquals("", vfModuleRollback0.getMessageId());
}
@Test(timeout = 4000)
public void test09() throws Throwable {
MsoRequest msoRequest0 = mock(MsoRequest.class, new ViolatedAssumptionAnswer());
doReturn((String) null).when(msoRequest0).toString();
VfModuleRollback vfModuleRollback0 = new VfModuleRollback(", vnfCreated=", ", vnfCreated=", ", vnfCreated=", false, ", vnfCreated=", "Jd,{S<BvHJAw+", msoRequest0, "Jd,{S<BvHJAw+");
vfModuleRollback0.getMsoRequest();
assertEquals("Jd,{S<BvHJAw+", vfModuleRollback0.getCloudSiteId());
assertEquals(", vnfCreated=", vfModuleRollback0.getTenantId());
assertEquals(", vnfCreated=", vfModuleRollback0.getVfModuleId());
assertEquals(", vnfCreated=", vfModuleRollback0.getVfModuleStackId());
assertEquals(", vnfCreated=", vfModuleRollback0.getVnfId());
assertEquals("Jd,{S<BvHJAw+", vfModuleRollback0.getMessageId());
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test10() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setMessageId("");
vfModuleRollback0.getMessageId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test11() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setCloudSiteId("G8yt`J");
vfModuleRollback0.getCloudSiteId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test12() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.getMessageId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test13() throws Throwable {
MsoRequest msoRequest0 = mock(MsoRequest.class, new ViolatedAssumptionAnswer());
VfModuleRollback vfModuleRollback0 = new VfModuleRollback("", "", "", false, "72M#WP;7?8*Y~!q", "72M#WP;7?8*Y~!q", msoRequest0, "");
MsoRequest msoRequest1 = mock(MsoRequest.class, new ViolatedAssumptionAnswer());
vfModuleRollback0.setMsoRequest(msoRequest1);
assertEquals("", vfModuleRollback0.getVnfId());
assertEquals("72M#WP;7?8*Y~!q", vfModuleRollback0.getCloudSiteId());
assertEquals("", vfModuleRollback0.getVfModuleStackId());
assertEquals("", vfModuleRollback0.getMessageId());
assertEquals("72M#WP;7?8*Y~!q", vfModuleRollback0.getTenantId());
assertFalse(vfModuleRollback0.isVfModuleCreated());
assertEquals("", vfModuleRollback0.getVfModuleId());
}
@Test(timeout = 4000)
public void test14() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.getTenantId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test15() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.getVnfId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test16() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.getVfModuleId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test17() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setMessageId("{2)+G6]E#s_=J_S&");
vfModuleRollback0.getMessageId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test18() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.getCloudSiteId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test19() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.setCloudSiteId("");
vfModuleRollback0.getCloudSiteId();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test20() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
vfModuleRollback0.getMsoRequest();
assertFalse(vfModuleRollback0.isVfModuleCreated());
}
@Test(timeout = 4000)
public void test21() throws Throwable {
MsoRequest msoRequest0 = mock(MsoRequest.class, new ViolatedAssumptionAnswer());
VfModuleRollback vfModuleRollback0 = new VfModuleRollback("!y-*0?6`~", "", "", true, "", "", msoRequest0, "2<6zlA_/MQ2I~c6U0");
String string0 = vfModuleRollback0.getVfModuleStackId();
assertEquals("2<6zlA_/MQ2I~c6U0", vfModuleRollback0.getMessageId());
assertEquals("", vfModuleRollback0.getTenantId());
assertEquals("", string0);
assertTrue(vfModuleRollback0.isVfModuleCreated());
assertEquals("!y-*0?6`~", vfModuleRollback0.getVnfId());
assertEquals("", vfModuleRollback0.getCloudSiteId());
assertEquals("", vfModuleRollback0.getVfModuleId());
}
@Test(timeout = 4000)
public void test22() throws Throwable {
VfModuleRollback vfModuleRollback0 = null;
try {
vfModuleRollback0 = new VfModuleRollback((VnfRollback) null, "", "VnfRollback: cloud=", "");
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
//
// no message in exception (getMessage() returned null)
//
verifyException("org.openecomp.mso.adapters.vnfrest.VfModuleRollback", e);
}
}
@Test(timeout = 4000)
public void test23() throws Throwable {
VfModuleRollback vfModuleRollback0 = new VfModuleRollback();
boolean boolean0 = vfModuleRollback0.isVfModuleCreated();
assertFalse(boolean0);
}
}
|