@Test public void testUpdate() { testCacheUpdate(this.cs); }
@Test public void testCacheable() throws Exception { testCacheable(this.cs); }
@Test public void testCacheableNull() throws Exception { testCacheableNull(this.cs); }
@Test public void testConditionalUpdate() { testConditionalCacheUpdate(this.cs); }
@Test public void testCheckedException() throws Exception { testCheckedThrowable(this.cs); }
@Test public void testCheckedExceptionSync() throws Exception { testCheckedThrowableSync(this.cs); }
@Test public void testCacheableSync() throws Exception { testCacheableSync(this.cs); }
@Test public void testConditionalExpression() throws Exception { testConditionalExpression(this.cs); }
@Test public void testCacheableSyncNull() throws Exception { testCacheableSyncNull(this.cs); }
@Before public void setup() { this.ctx = getApplicationContext(); this.cs = ctx.getBean("service", CacheableService.class); this.ccs = ctx.getBean("classService", CacheableService.class); this.cm = ctx.getBean("cacheManager", CacheManager.class); Collection<String> cn = this.cm.getCacheNames(); assertTrue(cn.contains("testCache")); assertTrue(cn.contains("secondary")); assertTrue(cn.contains("primary")); }
@Test public void testClassConditionalUpdate() { testConditionalCacheUpdate(this.ccs); }
@Test public void testClassCheckedException() throws Exception { testCheckedThrowable(this.ccs); }
@Test public void testClassCheckedExceptionSync() throws Exception { testCheckedThrowableSync(this.ccs); }
@Test public void testClassUpdate() { testCacheUpdate(this.ccs); }
@Test public void testClassCacheCacheable() throws Exception { testCacheable(this.ccs); }