package com.flicklib.service;

import com.flicklib.service.cache.MemoryCacheSourceLoader;
import com.flicklib.service.cache.PersistentCacheSourceLoader;

public abstract class TestUtil {

	public static SourceLoader wrapCache(SourceLoader realLoader) {
		String rootPath = "target/cache";
		return new MemoryCacheSourceLoader(new PersistentCacheSourceLoader(realLoader, rootPath, "yyyy-MM-dd"));
		
	}
	
	public static SourceLoader createLoader() {
		return wrapCache(new UrlConnectionResolver(10000));
	}
}

@@ -269,16 +269,53 @@
 th =
+ System.getProperty(%22java.io.tmpdir%22,
  %22target
 /cac
@@ -314,14 +314,20 @@
 rget
-/
+%22)+%22/.
 cache
+/
 %22;%0A%09

move the cache path to java.io.tmpdir