コード例 #1
0
 @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();
 }
コード例 #2
0
 @Before
 public void initTestCase() {
   threadStopper.storeCurrentThreads();
   threadStopper.startRecordingTime();
   org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
   org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
   setSystemProperties();
   org.evosuite.runtime.GuiSupport.setHeadless();
   org.evosuite.runtime.Runtime.getInstance().resetRuntime();
   org.evosuite.runtime.agent.InstrumentingAgent.activate();
 }
コード例 #3
0
 @BeforeClass
 public static void initEvoSuiteFramework() {
   org.evosuite.runtime.RuntimeSettings.className = "com.chiralbehaviors.CoRE.domain.Unit";
   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();
 }
コード例 #4
0
 @AfterClass
 public static void clearEvoSuiteFramework() {
   Sandbox.resetDefaultSecurityManager();
   java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
 }