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
|
/*
* This file was automatically generated by EvoSuite
* Mon Nov 14 09:15:19 GMT 2016
*/
package org.openecomp.mso.adapters.vnfrest;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.openecomp.mso.openstack.beans.VnfStatus;
import java.util.HashMap;
import java.util.Map;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
public class QueryVfModuleResponseESTest extends QueryVfModuleResponseESTestscaffolding {
@Test(timeout = 4000)
public void test00() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
queryVfModuleResponse0.setVnfId("K@Avo(l_W.<jd$");
String string0 = queryVfModuleResponse0.getVnfId();
assertEquals("K@Avo(l_W.<jd$", string0);
}
@Test(timeout = 4000)
public void test01() throws Throwable {
VnfStatus vnfStatus0 = VnfStatus.UNKNOWN;
HashMap<String, String> hashMap0 = new HashMap<String, String>();
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse("", "", "/iul.p>pa`w<:0tL", vnfStatus0, (Map<String, String>) hashMap0);
String string0 = queryVfModuleResponse0.getVnfId();
assertEquals("/iul.p>pa`w<:0tL", queryVfModuleResponse0.getVfModuleStackId());
assertEquals("", string0);
assertEquals("", queryVfModuleResponse0.getVfModuleId());
}
@Test(timeout = 4000)
public void test02() throws Throwable {
VnfStatus vnfStatus0 = VnfStatus.UNKNOWN;
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse("", "", "", vnfStatus0, (Map<String, String>) null);
String string0 = queryVfModuleResponse0.getVfModuleStackId();
assertEquals("", string0);
}
@Test(timeout = 4000)
public void test03() throws Throwable {
VnfStatus vnfStatus0 = VnfStatus.UNKNOWN;
HashMap<String, String> hashMap0 = new HashMap<String, String>();
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse("", "", "/iul.p>pa`w<:0tL", vnfStatus0, (Map<String, String>) hashMap0);
queryVfModuleResponse0.getVfModuleOutputs();
assertEquals("", queryVfModuleResponse0.getVnfId());
assertEquals("/iul.p>pa`w<:0tL", queryVfModuleResponse0.getVfModuleStackId());
assertEquals("", queryVfModuleResponse0.getVfModuleId());
}
@Test(timeout = 4000)
public void test04() throws Throwable {
VnfStatus vnfStatus0 = VnfStatus.UNKNOWN;
HashMap<String, String> hashMap0 = new HashMap<String, String>();
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse("", "", "q'&!##_pFRAIJ4uo]*=", vnfStatus0, (Map<String, String>) hashMap0);
hashMap0.put("q'&!##_pFRAIJ4uo]*=", "");
queryVfModuleResponse0.getVfModuleOutputs();
assertEquals("", queryVfModuleResponse0.getVfModuleId());
assertEquals("q'&!##_pFRAIJ4uo]*=", queryVfModuleResponse0.getVfModuleStackId());
assertEquals("", queryVfModuleResponse0.getVnfId());
}
@Test(timeout = 4000)
public void test05() throws Throwable {
VnfStatus vnfStatus0 = VnfStatus.FAILED;
HashMap<String, String> hashMap0 = new HashMap<String, String>();
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse("C5aGYYh%|7be0.E!NHp", "C5aGYYh%|7be0.E!NHp", "C5aGYYh%|7be0.E!NHp", vnfStatus0, (Map<String, String>) hashMap0);
String string0 = queryVfModuleResponse0.getVfModuleId();
assertEquals("C5aGYYh%|7be0.E!NHp", string0);
}
@Test(timeout = 4000)
public void test06() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
VnfStatus vnfStatus0 = VnfStatus.NOTFOUND;
queryVfModuleResponse0.setVnfStatus(vnfStatus0);
VnfStatus vnfStatus1 = queryVfModuleResponse0.getVnfStatus();
assertSame(vnfStatus1, vnfStatus0);
}
@Test(timeout = 4000)
public void test07() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
String string0 = queryVfModuleResponse0.getVfModuleId();
assertNull(string0);
}
@Test(timeout = 4000)
public void test08() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
queryVfModuleResponse0.setVfModuleId("\"Sdeh");
assertNull(queryVfModuleResponse0.getVfModuleStackId());
}
@Test(timeout = 4000)
public void test09() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
String string0 = queryVfModuleResponse0.getVnfId();
assertNull(string0);
}
@Test(timeout = 4000)
public void test10() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
Map<String, String> map0 = queryVfModuleResponse0.getVfModuleOutputs();
assertNull(map0);
}
@Test(timeout = 4000)
public void test11() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
queryVfModuleResponse0.setVfModuleStackId("\"Sdeh");
String string0 = queryVfModuleResponse0.getVfModuleStackId();
assertEquals("\"Sdeh", string0);
}
@Test(timeout = 4000)
public void test12() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
// Undeclared exception!
try {
queryVfModuleResponse0.toJsonString();
fail("Expecting exception: VerifyError");
} catch(VerifyError e) {
//
// (class: org/codehaus/jackson/map/MapperConfig, method: <clinit> signature: ()V) Bad type in putfield/putstatic
//
verifyException("org.codehaus.jackson.map.ObjectMapper", e);
}
}
@Test(timeout = 4000)
public void test13() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
HashMap<String, String> hashMap0 = new HashMap<String, String>();
queryVfModuleResponse0.setVfModuleOutputs(hashMap0);
assertNull(queryVfModuleResponse0.getVfModuleId());
}
@Test(timeout = 4000)
public void test14() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
String string0 = queryVfModuleResponse0.getVfModuleStackId();
assertNull(string0);
}
@Test(timeout = 4000)
public void test15() throws Throwable {
VnfStatus vnfStatus0 = VnfStatus.ACTIVE;
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse((String) null, "", "", vnfStatus0, (Map<String, String>) null);
String string0 = queryVfModuleResponse0.getVfModuleId();
assertEquals("", string0);
}
@Test(timeout = 4000)
public void test16() throws Throwable {
QueryVfModuleResponse queryVfModuleResponse0 = new QueryVfModuleResponse();
queryVfModuleResponse0.getVnfStatus();
}
}
|