@Test public void testGetCachePath () { Cache cache = new Cache("../temp/"); assertEquals("../temp/test2/", cache.getCachePath("test2")); assertEquals(true, cache.getCachePath("test").endsWith("/")); }
public String getCachePath (String dirName) { return CACHE_PATH + dirName + "/"; }
Cache { public String getCachePath (String dirName) { return CACHE_PATH + dirName + "/"; } }
Cache { public String getCachePath (String dirName) { return CACHE_PATH + dirName + "/"; } protected  Cache(String path); }
Cache { public String getCachePath (String dirName) { return CACHE_PATH + dirName + "/"; } protected  Cache(String path); static void init(String path); static Cache getInstance(); String getPath(); void createDirIfAbsent(String dirName); String getCachePath(String dirName); String getCacheFilePath(String filePath); void clear(); }
Cache { public String getCachePath (String dirName) { return CACHE_PATH + dirName + "/"; } protected  Cache(String path); static void init(String path); static Cache getInstance(); String getPath(); void createDirIfAbsent(String dirName); String getCachePath(String dirName); String getCacheFilePath(String filePath); void clear();  }