diff options
Diffstat (limited to 'adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceRequestESTestscaffolding.java')
-rw-r--r-- | adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceRequestESTestscaffolding.java | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceRequestESTestscaffolding.java b/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceRequestESTestscaffolding.java deleted file mode 100644 index 4de6c0ca7c..0000000000 --- a/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceRequestESTestscaffolding.java +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Scaffolding file used to store all the setups needed to run - * tests automatically generated by EvoSuite - * Mon Feb 20 14:08:11 GMT 2017 - */ - -package org.openecomp.mso.adapters.sdncrest; - -import org.evosuite.runtime.annotation.EvoSuiteClassExclude; -import org.junit.BeforeClass; -import org.junit.Before; -import org.junit.After; -import org.junit.AfterClass; -import org.evosuite.runtime.sandbox.Sandbox; - -@EvoSuiteClassExclude -public class SDNCServiceRequestESTestscaffolding { - - @org.junit.Rule - public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); - - private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); - - private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); - - @BeforeClass - public static void initEvoSuiteFramework() { - org.evosuite.runtime.RuntimeSettings.className = "org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest"; - org.evosuite.runtime.GuiSupport.initialize(); - org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; - org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; - org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; - org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; - org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); - org.evosuite.runtime.classhandling.JDKClassResetter.init(); - initializeClasses(); - org.evosuite.runtime.Runtime.getInstance().resetRuntime(); - } - - @AfterClass - public static void clearEvoSuiteFramework(){ - Sandbox.resetDefaultSecurityManager(); - java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); - } - - @Before - public void initTestCase(){ - threadStopper.storeCurrentThreads(); - threadStopper.startRecordingTime(); - org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); - org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); - org.evosuite.runtime.GuiSupport.setHeadless(); - org.evosuite.runtime.Runtime.getInstance().resetRuntime(); - org.evosuite.runtime.agent.InstrumentingAgent.activate(); - } - - @After - public void doneWithTestCase(){ - threadStopper.killAndJoinClientThreads(); - org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); - org.evosuite.runtime.classhandling.JDKClassResetter.reset(); - resetClasses(); - org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); - org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); - org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); - } - - private static void initializeClasses() { - org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(SDNCServiceRequestESTestscaffolding.class.getClassLoader() , - "org.openecomp.mso.adapters.sdncrest.ServiceInformation", - "org.openecomp.mso.adapters.sdncrest.SDNCRequestCommon", - "org.codehaus.jackson.map.annotate.JsonSerialize$Typing", - "org.codehaus.jackson.map.annotate.JsonSerialize$Inclusion", - "org.codehaus.jackson.map.JsonSerializer", - "org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", - "org.jboss.resteasy.annotations.providers.NoJackson", - "org.openecomp.mso.adapters.sdncrest.RequestInformation", - "org.codehaus.jackson.annotate.JacksonAnnotation", - "org.codehaus.jackson.map.annotate.NoClass", - "org.codehaus.jackson.map.JsonSerializer$None", - "org.codehaus.jackson.map.annotate.JsonSerialize", - "org.codehaus.jackson.map.annotate.JsonRootName" - ); - } - - private static void resetClasses() { - org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(SDNCServiceRequestESTestscaffolding.class.getClassLoader()); - - org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( - "org.codehaus.jackson.map.annotate.JsonSerialize$Inclusion", - "org.codehaus.jackson.map.annotate.JsonSerialize$Typing", - "org.openecomp.mso.adapters.sdncrest.ServiceInformation", - "org.codehaus.jackson.map.introspect.AnnotatedClass", - "org.codehaus.jackson.map.introspect.BasicClassIntrospector", - "org.codehaus.jackson.annotate.JsonAutoDetect$Visibility", - "org.codehaus.jackson.annotate.JsonMethod", - "org.codehaus.jackson.map.introspect.VisibilityChecker$Std", - "org.codehaus.jackson.map.ObjectMapper", - "org.codehaus.jackson.JsonParser$Feature", - "org.codehaus.jackson.JsonGenerator$Feature", - "org.codehaus.jackson.JsonFactory", - "org.codehaus.jackson.sym.CharsToNameCanonicalizer", - "org.codehaus.jackson.sym.BytesToNameCanonicalizer", - "org.codehaus.jackson.map.type.TypeFactory", - "org.openecomp.mso.adapters.sdncrest.RequestInformation", - "org.openecomp.mso.adapters.sdncrest.SDNCRequestCommon", - "org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest" - ); - } -} |