/** * Fully reset the state, not only the one related to * latest test case execution */ public static void fullReset(){ resetRuntime(); /* * System properties have to be treated very specially because * we want to keep track of them when they are accessed in * static blocks, and also from non-instrumented classes */ synchronized (readProperties) { readProperties.clear(); } }
System.resetRuntime(); MockThread.reset(); ThreadCounter.getInstance().resetSingleton();