@Test public void getFilesDir() throws Exception { List<File> dirs = Arrays.asList(mShadowContext.getFilesDir(), mShadowContext.getCacheDir(), mShadowContext.getDataDir()); for (File dir : dirs) { Assert.assertTrue(dir.isDirectory()); Assert.assertTrue(dir.exists()); } }
public File getFilesDir() { return getAndCreateDir("build/files/"); }
ShadowContext implements Shadow { public File getFilesDir() { return getAndCreateDir("build/files/"); } }
ShadowContext implements Shadow { public File getFilesDir() { return getAndCreateDir("build/files/"); } ShadowContext(Resources resources);  ShadowContext(Resources resources, ShadowResources shadowResources); }
ShadowContext implements Shadow { public File getFilesDir() { return getAndCreateDir("build/files/"); } ShadowContext(Resources resources);  ShadowContext(Resources resources, ShadowResources shadowResources); @NonNull final String getString(@StringRes int resId); Resources getResources(); SharedPreferences getSharedPreferences(String name, int mode); Context getApplicationContext(); File getDatabasePath(String name); AssetManager getAssets(); String getPackageName(); File getFilesDir(); File getCacheDir(); File getDataDir(); void putSQLiteDatabase(String name, SQLiteDatabase db); SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory); @TargetApi(Build.VERSION_CODES.JELLY_BEAN) SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler); boolean deleteDatabase(String name); Map<String, SQLiteDatabase> getDbMap(); @Override String toString(); @Override void setProxyObject(Object proxyObject); void setApplication(Application application); }
ShadowContext implements Shadow { public File getFilesDir() { return getAndCreateDir("build/files/"); } ShadowContext(Resources resources);  ShadowContext(Resources resources, ShadowResources shadowResources); @NonNull final String getString(@StringRes int resId); Resources getResources(); SharedPreferences getSharedPreferences(String name, int mode); Context getApplicationContext(); File getDatabasePath(String name); AssetManager getAssets(); String getPackageName(); File getFilesDir(); File getCacheDir(); File getDataDir(); void putSQLiteDatabase(String name, SQLiteDatabase db); SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory); @TargetApi(Build.VERSION_CODES.JELLY_BEAN) SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler); boolean deleteDatabase(String name); Map<String, SQLiteDatabase> getDbMap(); @Override String toString(); @Override void setProxyObject(Object proxyObject); void setApplication(Application application);  }