Esempio n. 1
0
 public static void resetStaticState() {
   ShadowWrangler.getInstance().silence();
   Robolectric.application = new Application();
   ShadowBitmapFactory.reset();
   ShadowDrawable.reset();
   ShadowMediaStore.reset();
   ShadowLog.reset();
   ShadowContext.clearFilesAndCache();
   ShadowLooper.resetThreadLoopers();
 }
Esempio n. 2
0
 public static void resetStaticState() {
   ShadowWrangler.getInstance().silence();
   Robolectric.application = new Application();
   ShadowBitmapFactory.reset();
   ShadowDrawable.reset();
   ShadowMediaStore.reset();
   ShadowLog.reset();
   ShadowContext.clearFilesAndCache();
   ShadowLooper.resetThreadLoopers();
   ShadowDialog.reset();
   ShadowContentResolver.reset();
   ShadowLocalBroadcastManager.reset();
   ShadowMimeTypeMap.reset();
   ShadowPowerManager.reset();
   ShadowStatFs.reset();
   ShadowTypeface.reset();
 }