Cache { public File getCacheDir() { return cacheDir; } Cache(Context context); @SuppressWarnings("deprecation") static long calculateDiskCacheSize(File dir); File getCacheDir(); long getCacheSize(); static final int POLICY_NONE; static final int POLICY_OFFLINE; static final int POLICY_ALL; }
@Test public void testGetCacheDir() throws Exception { assertNotNull(cache.getCacheDir()); assertTrue(cache.getCacheDir().exists()); }