/** * <p> * After the test case is executed, if any SUT thread is still running, we * will wait for their termination. To identify which thread belong to SUT, * before test case execution we should check which are the threads that are * running. * </p> * <p> * WARNING: The sandbox might prevent accessing thread informations, so best * to call this method from outside this class * </p> */ public void storeCurrentThreads() { threadStopper.storeCurrentThreads(); }
@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(); }
stopper.storeCurrentThreads(); stopper.startRecordingTime(); stopper.storeCurrentThreads(); stopper.startRecordingTime(); stopper.killAndJoinClientThreads();