/** * Reset runtime to initial state */ public static void resetRuntime() { currentTime = 1392409281320L; // 2014-02-14, 20:21 wasTimeAccessed = false; hashKeys.clear(); restoreProperties(); needToRestoreProperties = false; //readProperties.clear(); //we cannot reset read properties here }
public void goingToEndTestCase() throws IllegalStateException { if (!executingTestCase) { throw new IllegalStateException("Trying to disable sandbox when not test case was run"); } /* * it is important to call this method here as soon as the test case * has finished executing, because properties could be used by * EvoSuite as well */ org.evosuite.runtime.System.restoreProperties(); for(File file : filesToDelete) { file.deleteOnExit(); } executingTestCase = false; }