Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java88 File cacheTest = new File(context.getCacheDir(), "__test__"); in shouldWriteToCacheDir() local
90 assertThat(cacheTest.getAbsolutePath()) in shouldWriteToCacheDir()
92 assertThat(cacheTest.getAbsolutePath()) in shouldWriteToCacheDir()
95 try (FileOutputStream fos = new FileOutputStream(cacheTest)) { in shouldWriteToCacheDir()
98 assertThat(cacheTest.exists()).isTrue(); in shouldWriteToCacheDir()
104 File cacheTest = new File(context.getExternalCacheDir(), "__test__"); in shouldWriteToExternalCacheDir() local
106 assertThat(cacheTest.getAbsolutePath()) in shouldWriteToExternalCacheDir()
108 assertThat(cacheTest.getAbsolutePath()) in shouldWriteToExternalCacheDir()
111 try (FileOutputStream fos = new FileOutputStream(cacheTest)) { in shouldWriteToExternalCacheDir()
115 assertThat(cacheTest.exists()).isTrue(); in shouldWriteToExternalCacheDir()