/** * Deletes the current cache file from disk. */ private void deleteCacheFromDisk() { File file = fileResolver.getClassHashCacheFile().getAbsoluteFile(); if (file.exists()) { if (!file.delete()) { log.warn("Unable to delete the existing class cache file: " + file.getAbsolutePath()); } } }
File file = fileResolver.getClassHashCacheFile().getAbsoluteFile();
File file = fileResolver.getClassHashCacheFile().getAbsoluteFile();
@BeforeMethod public void setup() { doReturn(new File(TEST_CACHE_FILE)).when(fileResolver).getClassHashCacheFile(); when(prototypesProvider.createSerializer()).thenReturn(serializationManager); }