Home
last modified time | relevance | path

Searched refs:cacheTest (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DContextTest.java104 File cacheTest = new File(context.getCacheDir(), "__test__"); in shouldWriteToCacheDir() local
106 assertThat(cacheTest.getPath(), CoreMatchers.containsString("android-cache")); in shouldWriteToCacheDir()
110 fos = new FileOutputStream(cacheTest); in shouldWriteToCacheDir()
116 assertTrue(cacheTest.exists()); in shouldWriteToCacheDir()
122 File cacheTest = new File(context.getExternalCacheDir(), "__test__"); in shouldWriteToExternalCacheDir() local
124 assertThat(cacheTest.getPath(), containsString("android-external-cache")); in shouldWriteToExternalCacheDir()
128 fos = new FileOutputStream(cacheTest); in shouldWriteToExternalCacheDir()
135 assertTrue(cacheTest.exists()); in shouldWriteToExternalCacheDir()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java87 File cacheTest = new File(context.getCacheDir(), "__test__"); in shouldWriteToCacheDir() local
89 assertThat(cacheTest.getAbsolutePath()) in shouldWriteToCacheDir()
93 try (FileOutputStream fos = new FileOutputStream(cacheTest)) { in shouldWriteToCacheDir()
96 assertThat(cacheTest).exists(); in shouldWriteToCacheDir()
102 File cacheTest = new File(context.getExternalCacheDir(), "__test__"); in shouldWriteToExternalCacheDir() local
104 assertThat(cacheTest.getAbsolutePath()) in shouldWriteToExternalCacheDir()
108 try (FileOutputStream fos = new FileOutputStream(cacheTest)) { in shouldWriteToExternalCacheDir()
112 assertThat(cacheTest).exists(); in shouldWriteToExternalCacheDir()