Package org.springframework.cache.jcache.support

Examples of org.springframework.cache.jcache.support.TestableCacheKeyGenerator


    assertCacheKeyGenerator(operation.getKeyGenerator(), TestableCacheKeyGenerator.class);
  }

  @Test
  public void customKeyGeneratorSpringBean() {
    TestableCacheKeyGenerator bean = new TestableCacheKeyGenerator();
    beanFactory.registerSingleton("fooBar", bean);
    CacheResultOperation operation =
        getCacheOperation(CacheResultOperation.class, CustomService.class, name.getMethodName(), Long.class);
    assertEquals(defaultCacheResolver, operation.getCacheResolver());
    assertNull(operation.getExceptionCacheResolver());
View Full Code Here

TOP

Related Classes of org.springframework.cache.jcache.support.TestableCacheKeyGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.