2 * Scaffolding file used to store all the setups needed to run
3 * tests automatically generated by EvoSuite
4 * Mon Nov 14 13:47:41 GMT 2016
7 package com.att.camunda.bpm.plugin.urnmap.resources;
9 import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
10 import org.junit.BeforeClass;
11 import org.junit.Before;
12 import org.junit.After;
13 import org.junit.AfterClass;
14 import org.evosuite.runtime.sandbox.Sandbox;
17 public class URNResourceESTestscaffolding {
20 public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
22 private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
24 private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
27 public static void initEvoSuiteFramework() {
28 org.evosuite.runtime.RuntimeSettings.className = "com.att.camunda.bpm.plugin.urnmap.resources.URNResource";
29 org.evosuite.runtime.GuiSupport.initialize();
30 org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
31 org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
32 org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
33 org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
34 org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
35 org.evosuite.runtime.classhandling.JDKClassResetter.init();
37 org.evosuite.runtime.Runtime.getInstance().resetRuntime();
41 public static void clearEvoSuiteFramework(){
42 Sandbox.resetDefaultSecurityManager();
43 java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
47 public void initTestCase(){
48 threadStopper.storeCurrentThreads();
49 threadStopper.startRecordingTime();
50 org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
51 org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
53 org.evosuite.runtime.GuiSupport.setHeadless();
54 org.evosuite.runtime.Runtime.getInstance().resetRuntime();
55 org.evosuite.runtime.agent.InstrumentingAgent.activate();
59 public void doneWithTestCase(){
60 threadStopper.killAndJoinClientThreads();
61 org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
62 org.evosuite.runtime.classhandling.JDKClassResetter.reset();
64 org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
65 org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
66 org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
70 private static void initializeClasses() {
71 org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(URNResourceESTestscaffolding.class.getClassLoader() ,
72 "org.h2.store.LobStorage",
73 "com.mysql.jdbc.VersionedStringProperty",
74 "com.mysql.jdbc.StatementInterceptorV2",
75 "com.mysql.jdbc.ConnectionPropertiesImpl$ConnectionProperty",
76 "org.h2.engine.SessionInterface",
77 "org.h2.index.BaseIndex",
78 "com.mysql.jdbc.ConnectionPropertiesImpl$LongConnectionProperty",
79 "org.h2.store.fs.FileNioMemData",
80 "org.h2.store.fs.FileNioMem",
81 "org.h2.store.fs.FilePathCrypt$FileCrypt",
83 "org.h2.engine.RightOwner",
84 "org.h2.table.TableView",
85 "com.mysql.jdbc.JDBC4ClientInfoProvider",
86 "com.mysql.jdbc.CachedResultSetMetaData",
87 "org.h2.store.fs.FileMem$1",
88 "com.mysql.jdbc.ConnectionFeatureNotAvailableException",
89 "org.h2.security.BlockCipher",
90 "org.h2.command.CommandInterface",
91 "com.mysql.jdbc.MysqlIO",
92 "com.mysql.jdbc.Connection",
93 "com.att.eelf.i18n.EELFMsgs",
94 "com.mysql.jdbc.ConnectionPropertiesImpl",
95 "org.h2.constant.DbSettings",
96 "com.mysql.jdbc.SingleByteCharsetConverter",
97 "com.mysql.jdbc.PingTarget",
98 "org.h2.index.PageIndex",
99 "org.h2.util.BitField",
100 "org.h2.value.ValueNull",
101 "org.h2.value.ValueShort",
102 "com.mysql.jdbc.SocketFactory",
103 "org.h2.value.ValueDecimal",
104 "com.mysql.jdbc.PacketTooBigException",
105 "com.mysql.jdbc.log.StandardLogger",
106 "com.mysql.jdbc.ConnectionImpl$3",
107 "com.mysql.jdbc.ConnectionImpl$2",
108 "com.mysql.jdbc.ConnectionImpl$5",
109 "com.mysql.jdbc.ConnectionImpl$4",
110 "com.mysql.jdbc.ConnectionImpl$7",
111 "com.mysql.jdbc.ConnectionImpl$6",
112 "org.h2.util.SmallLRUCache",
113 "org.h2.mvstore.Chunk",
114 "com.mysql.jdbc.ConnectionImpl$9",
115 "com.mysql.jdbc.ConnectionImpl$8",
116 "com.mysql.jdbc.log.Log",
117 "com.mysql.jdbc.ConnectionPropertiesImpl$MemorySizeConnectionProperty",
118 "com.mysql.jdbc.StringUtils",
119 "org.h2.mvstore.MVStore",
120 "org.h2.engine.DbObjectBase",
121 "org.h2.store.FileLock",
122 "com.mysql.jdbc.ResultSetImpl",
123 "org.h2.schema.Sequence",
124 "org.h2.value.Value",
125 "org.h2.store.fs.FilePathMem",
126 "com.mysql.jdbc.ConnectionPropertiesImpl$BooleanConnectionProperty",
127 "org.h2.store.fs.FilePath",
128 "org.h2.engine.DatabaseCloser",
129 "org.h2.expression.ExpressionColumn",
130 "com.mysql.jdbc.Statement",
131 "com.mysql.jdbc.Buffer",
132 "org.h2.store.fs.FilePathNioMem",
133 "com.mysql.jdbc.ParameterBindings",
134 "org.h2.security.SecureFileStore",
135 "org.h2.store.fs.FileMem",
136 "com.mysql.jdbc.BufferRow",
137 "org.h2.expression.Expression",
138 "org.h2.store.fs.FileSplit",
139 "org.h2.util.Utils$1",
140 "org.h2.value.CompareMode",
142 "com.mysql.jdbc.exceptions.MySQLTimeoutException",
143 "org.h2.command.dml.SetTypes",
144 "org.openecomp.mso.logger.MsoLogger$ErrorCode",
145 "org.h2.jdbcx.JdbcDataSourceFactory",
146 "com.mysql.jdbc.Util",
147 "org.camunda.bpm.cockpit.Cockpit",
148 "org.h2.value.ValueString",
149 "org.h2.value.ValueJavaObject",
150 "org.h2.store.PageStore",
151 "com.mysql.jdbc.ConnectionPropertiesImpl$XmlMap",
152 "org.h2.schema.Schema",
153 "org.h2.engine.SettingsBase",
154 "com.mysql.jdbc.CommunicationsException",
155 "org.h2.value.CompareModeDefault",
156 "org.h2.engine.SessionWithState",
157 "org.h2.table.TableLinkConnection",
158 "org.h2.message.Trace",
159 "org.h2.engine.Comment",
161 "org.camunda.bpm.engine.ProcessEngine",
162 "org.h2.value.ValueInt",
163 "org.h2.util.CacheWriter",
164 "com.mysql.jdbc.CompressedInputStream",
165 "org.h2.result.ResultInterface",
166 "org.h2.util.StringUtils",
167 "org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginResource",
168 "org.h2.table.IndexColumn",
169 "org.openecomp.mso.logger.MsoLogger$Catalog",
170 "org.h2.value.CompareModeIcu4J",
171 "com.mysql.jdbc.ResultSetRow",
172 "com.mysql.jdbc.ConnectionImpl",
173 "com.mysql.jdbc.log.NullLogger",
174 "org.camunda.bpm.cockpit.db.QueryService",
175 "org.camunda.bpm.engine.ProcessEngineServices",
176 "com.mysql.jdbc.JDBC4PreparedStatement",
177 "org.h2.schema.SchemaObject",
178 "org.h2.store.FileStore",
179 "org.h2.engine.SessionRemote",
180 "org.h2.value.ValueUuid",
181 "org.h2.mvstore.type.DataType",
182 "org.h2.index.IndexType",
183 "org.h2.value.ValueDate",
184 "org.h2.result.SearchRow",
185 "org.h2.table.Table",
186 "com.att.camunda.bpm.plugin.urnmap.db.URNData",
187 "org.h2.store.fs.FileMemData",
188 "org.h2.value.ValueFloat",
189 "org.openecomp.mso.entity.MsoRequest",
190 "org.camunda.bpm.webapp.AppRuntimeDelegate",
191 "org.h2.value.Transfer",
192 "com.mysql.jdbc.Messages",
193 "org.h2.store.fs.FileDisk",
194 "com.mysql.jdbc.NetworkResources",
195 "org.h2.result.RowList",
196 "com.mysql.jdbc.CallableStatement$CallableStatementParamInfo",
197 "org.h2.constant.ErrorCode",
198 "com.mysql.jdbc.Collation",
199 "org.h2.message.TraceObject",
200 "com.mysql.jdbc.ByteArrayRow",
201 "org.h2.store.fs.FileChannelOutputStream",
202 "org.h2.value.ValueBoolean",
203 "org.h2.value.ValueLobDb",
204 "org.h2.util.SourceCompiler",
205 "org.h2.engine.UserDataType",
206 "org.h2.constraint.Constraint",
207 "org.h2.table.TableBase",
208 "org.h2.jdbcx.JdbcConnectionPool",
209 "com.mysql.jdbc.authentication.Sha256PasswordPlugin",
210 "org.h2.value.ValueLong",
211 "org.h2.engine.DbObject",
212 "com.mysql.jdbc.JDBC4CallableStatement",
213 "org.h2.util.SortedProperties",
214 "org.h2.value.ValueStringIgnoreCase",
215 "org.h2.table.PlanItem",
216 "org.h2.jdbcx.JdbcXAConnection",
217 "org.h2.engine.UserAggregate",
218 "org.h2.message.DbException",
219 "com.mysql.jdbc.JDBC4ServerPreparedStatement",
220 "org.h2.mvstore.MVMapConcurrent",
221 "com.mysql.jdbc.Extension",
222 "org.hsqldb.jdbc.JDBCDriver",
223 "org.h2.engine.Database",
224 "org.h2.api.DatabaseEventListener",
225 "org.h2.jdbcx.JdbcDataSource",
226 "org.h2.schema.TriggerObject",
227 "org.h2.store.DataReader",
228 "com.mysql.jdbc.StatementImpl",
229 "org.hsqldb.jdbc.JDBCDriver$1",
230 "org.h2.value.ValueBytes",
231 "org.h2.value.ValueResultSet",
232 "com.att.eelf.i18n.EELFResolvableErrorEnum",
233 "org.h2.value.ValueDouble",
234 "com.mysql.jdbc.CallableStatement$CallableStatementParam",
235 "org.h2.schema.SchemaObjectBase",
236 "com.att.eelf.configuration.EELFLogger$Level",
237 "com.mysql.jdbc.StatementImpl$CancelTask$1",
238 "org.h2.mvstore.Page",
239 "org.h2.index.PageDelegateIndex",
240 "org.h2.store.fs.FileBase",
241 "com.mysql.jdbc.StatementImpl$CancelTask",
242 "com.att.camunda.bpm.plugin.urnmap.resources.URNResource",
243 "org.h2.message.TraceWriter",
244 "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES",
245 "com.att.eelf.configuration.EELFLogger",
246 "org.h2.table.Column",
247 "org.h2.engine.Session",
248 "org.h2.engine.Mode",
249 "com.mysql.jdbc.exceptions.MySQLTransientException",
250 "org.h2.engine.Setting",
251 "org.h2.util.SourceCompiler$1",
252 "org.h2.value.ValueArray",
253 "com.mysql.jdbc.MySQLConnection",
254 "org.h2.util.TempFileDeleter",
255 "org.h2.store.fs.FileNioMem$1",
256 "com.mysql.jdbc.AuthenticationPlugin",
257 "org.h2.util.MathUtils",
258 "org.h2.mvstore.DataUtils",
259 "org.h2.store.fs.FilePathSplit",
260 "org.h2.value.ValueStringFixed",
261 "com.mysql.jdbc.JDBC4Connection",
262 "com.mysql.jdbc.NonRegisteringDriver$1",
263 "org.h2.engine.User",
264 "org.h2.value.ValueTimestamp",
265 "org.h2.value.Value$ValueBlob",
266 "org.h2.store.fs.FilePathWrapper",
267 "org.h2.constant.SysProperties",
268 "com.mysql.jdbc.IterateBlock",
269 "org.h2.table.RegularTable",
270 "com.mysql.jdbc.Util$RandStructcture",
271 "org.h2.store.fs.FileChannelInputStream",
272 "com.mysql.jdbc.exceptions.MySQLStatementCancelledException",
273 "com.mysql.jdbc.PreparedStatement",
274 "org.h2.compress.Compressor",
275 "com.mysql.jdbc.util.LRUCache",
276 "com.mysql.jdbc.util.ReadAheadInputStream",
277 "org.h2.index.Index",
278 "com.mysql.jdbc.MysqlDataTruncation",
279 "com.mysql.jdbc.CharsetMapping",
280 "org.h2.store.fs.FilePathDisk",
281 "org.h2.mvstore.MVMap",
282 "com.mysql.jdbc.Field",
283 "com.att.eelf.configuration.SLF4jWrapper",
284 "com.mysql.jdbc.PreparedStatement$BatchVisitor",
285 "org.h2.store.DataHandler",
286 "org.h2.jdbc.JdbcConnection",
287 "org.openecomp.mso.logger.MsoLogger",
288 "com.mysql.jdbc.ConnectionPropertiesImpl$StringConnectionProperty",
289 "com.mysql.jdbc.ConnectionProperties",
291 "org.h2.engine.Role",
292 "com.mysql.jdbc.Driver",
293 "org.h2.value.ValueByte",
294 "com.mysql.jdbc.ServerPreparedStatement",
295 "org.camunda.bpm.cockpit.db.CommandExecutor",
296 "com.mysql.jdbc.exceptions.MySQLNonTransientException",
297 "org.camunda.bpm.cockpit.CockpitRuntimeDelegate",
298 "org.camunda.bpm.webapp.plugin.resource.AbstractAppPluginResource",
299 "com.mysql.jdbc.MysqlSavepoint",
300 "com.mysql.jdbc.CallableStatement",
301 "com.mysql.jdbc.RowData",
302 "org.h2.value.Value$ValueClob",
303 "com.att.eelf.i18n.EELFResourceManager",
304 "org.h2.value.ValueJavaObject$NotSerialized",
305 "org.h2.value.CaseInsensitiveMap",
306 "com.mysql.jdbc.CallableStatement$CallableStatementParamInfoJDBC3",
307 "org.h2.util.IOUtils",
308 "com.mysql.jdbc.PreparedStatement$ParseInfo",
309 "org.h2.message.TraceSystem",
310 "org.openecomp.mso.logger.MessageEnum",
311 "org.openecomp.mso.logger.MsoLogger$ResponseCode",
312 "org.openecomp.mso.logger.MsoLogger$StatusCode",
313 "com.att.eelf.configuration.EELFManager",
314 "com.mysql.jdbc.StreamingNotifiable",
315 "com.mysql.jdbc.ResultSetInternalMethods",
316 "org.h2.command.Prepared",
317 "com.mysql.jdbc.ConnectionPropertiesImpl$IntegerConnectionProperty",
318 "com.mysql.jdbc.NonRegisteringDriver",
319 "org.h2.jdbc.JdbcSQLException",
320 "org.h2.mvstore.MVMap$MapBuilder",
321 "org.h2.engine.ConnectionInfo",
322 "com.att.eelf.i18n.EELFResourceManager$1",
323 "com.mysql.jdbc.ExceptionInterceptor",
324 "org.h2.value.ValueTime"
328 private static void resetClasses() {
329 org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(URNResourceESTestscaffolding.class.getClassLoader());
331 org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
332 "org.openecomp.mso.logger.MsoLogger$Catalog",
333 "org.openecomp.mso.logger.MsoLogger",
334 "com.att.eelf.i18n.EELFResourceManager",
335 "com.att.eelf.i18n.EELFMsgs",
336 "com.att.eelf.i18n.EELFResourceManager$RESOURCE_TYPES",
337 "com.att.eelf.configuration.EELFLogger$Level",
338 "com.att.eelf.configuration.EELFManager",
339 "org.openecomp.mso.logger.MessageEnum",
340 "com.att.camunda.bpm.plugin.urnmap.resources.URNResource",
341 "org.camunda.bpm.cockpit.Cockpit",
342 "org.h2.jdbcx.JdbcConnectionPool",
343 "org.h2.message.TraceObject",
344 "com.mysql.jdbc.NonRegisteringDriver",
345 "com.mysql.jdbc.Driver",
346 "org.hsqldb.jdbc.JDBCDriver",
348 "org.h2.jdbcx.JdbcDataSource",
349 "org.h2.jdbcx.JdbcDataSourceFactory",
350 "org.h2.message.TraceSystem",
352 "org.h2.util.MathUtils",
353 "org.h2.constant.SysProperties",
354 "org.h2.message.Trace",
355 "org.h2.util.StringUtils",
356 "org.h2.value.Value",
357 "org.h2.value.ValueDecimal",
358 "org.h2.jdbcx.JdbcXAConnection",
359 "org.h2.mvstore.MVStore",
360 "com.mysql.jdbc.Messages",
361 "com.mysql.jdbc.ConnectionPropertiesImpl",
362 "com.mysql.jdbc.Util",
363 "com.mysql.jdbc.ConnectionImpl",
364 "com.mysql.jdbc.JDBC4Connection",
365 "com.mysql.jdbc.ConnectionPropertiesImpl$ConnectionProperty",
366 "com.mysql.jdbc.ConnectionPropertiesImpl$BooleanConnectionProperty",
367 "com.mysql.jdbc.ConnectionPropertiesImpl$IntegerConnectionProperty",
368 "com.mysql.jdbc.ConnectionPropertiesImpl$MemorySizeConnectionProperty",
369 "com.mysql.jdbc.ConnectionPropertiesImpl$StringConnectionProperty",
370 "com.mysql.jdbc.ConnectionPropertiesImpl$LongConnectionProperty",
371 "com.mysql.jdbc.StringUtils",
372 "com.mysql.jdbc.CharsetMapping",
373 "com.mysql.jdbc.log.StandardLogger",
374 "org.h2.engine.SessionRemote",
375 "org.h2.mvstore.DataUtils",
376 "org.h2.message.DbException",
377 "org.h2.constant.ErrorCode",
378 "org.h2.jdbc.JdbcSQLException",
379 "org.h2.command.dml.SetTypes",
380 "org.h2.engine.ConnectionInfo",
381 "org.h2.engine.Database",
382 "org.h2.util.BitField",
383 "org.h2.engine.Mode",
384 "org.h2.store.fs.FilePath",
385 "org.h2.store.fs.FilePathDisk",
386 "org.h2.store.fs.FilePathMem",
387 "org.h2.store.fs.FilePathNioMem",
388 "org.h2.store.fs.FilePathSplit",
389 "org.h2.constant.DbSettings",
390 "org.h2.value.CompareMode",
391 "org.h2.store.FileLock",
392 "org.h2.util.SortedProperties",
393 "org.h2.table.Table",
394 "com.mysql.jdbc.StatementImpl",
395 "com.mysql.jdbc.PreparedStatement",
396 "com.mysql.jdbc.MysqlIO",
397 "com.mysql.jdbc.CallableStatement"