From: erik Date: Tue, 1 Aug 2006 11:52:26 +0000 (+0000) Subject: (no commit message) X-Git-Tag: BEFORE_MAVEN_MIGRATION~61 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;ds=inline;h=ef29662b210a8f1ded4c94c56eae52b90c1cb436;p=utils --- diff --git a/support/test/org/wamblee/cache/CachedObjectTest.java b/support/test/org/wamblee/cache/CachedObjectTest.java index 23706f30..07ea337f 100644 --- a/support/test/org/wamblee/cache/CachedObjectTest.java +++ b/support/test/org/wamblee/cache/CachedObjectTest.java @@ -58,7 +58,7 @@ public class CachedObjectTest extends TestCase { return aValue + 10; } - private CachedObject createCached(Cache aCache) { + private CachedObject createCached(Cache aCache) { return new CachedObject(aCache, OBJECT_KEY, _computation); } @@ -68,14 +68,14 @@ public class CachedObjectTest extends TestCase { * */ public void testComputation() { - CachedObject cached = createCached(new ZeroCache()); + CachedObject cached = createCached(new ZeroCache()); int value = cached.get(); assertEquals(compute(OBJECT_KEY), value); assertEquals(1, _ncomputations); } public void testInvalidateCache() { - CachedObject cached = createCached(new ForeverCache()); + CachedObject cached = createCached(new ForeverCache()); int value = cached.get(); assertEquals(compute(OBJECT_KEY), value); assertEquals(1, _ncomputations); @@ -86,7 +86,7 @@ public class CachedObjectTest extends TestCase { } public void testBehaviorEhCache() throws CacheException, IOException { - Cache cache = new EhCache(new TestResource(CachedObjectTest.class, EHCACHE_CONFIG), "test"); + Cache cache = new EhCache(new TestResource(CachedObjectTest.class, EHCACHE_CONFIG), "test"); CachedObject cached = createCached(cache); assertTrue( cache == cached.getCache()); @@ -118,7 +118,7 @@ public class CachedObjectTest extends TestCase { } public void testBehaviorEhCacheDefault() throws CacheException, IOException { - Cache cache = new EhCache(new TestResource(CachedObjectTest.class, EHCACHE_CONFIG), "undefined"); + Cache cache = new EhCache(new TestResource(CachedObjectTest.class, EHCACHE_CONFIG), "undefined"); CachedObject cached = createCached(cache); assertTrue( cache == cached.getCache()); @@ -145,7 +145,7 @@ public class CachedObjectTest extends TestCase { public void testBehaviorForeverCache() { - CachedObject cached = createCached(new ForeverCache()); + CachedObject cached = createCached(new ForeverCache()); int value = cached.get(); assertEquals(compute(OBJECT_KEY), value); assertEquals(1, _ncomputations); @@ -157,7 +157,7 @@ public class CachedObjectTest extends TestCase { } public void testBehaviorZeroCache() { - CachedObject cached = createCached(new ZeroCache()); + CachedObject cached = createCached(new ZeroCache()); int value = cached.get(); assertEquals(compute(OBJECT_KEY), value); assertEquals(1, _ncomputations);