Cache { public long getCacheSize() { return cacheSize; } 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 testGetCacheSize() throws Exception { assertTrue(cache.getCacheSize() >= Cache.MIN_DISK_CACHE_SIZE); }