Package javax.cache.annotation

Examples of javax.cache.annotation.CacheDefaults.cacheName()


  @Test
  public void defaultCacheNameWithDefaults() {
    Method method = ReflectionUtils.findMethod(Object.class, "toString");
    CacheDefaults mock = mock(CacheDefaults.class);
    given(mock.cacheName()).willReturn("");
    assertEquals("java.lang.Object.toString()", source.determineCacheName(method, mock, ""));
  }

  @Test
  public void defaultCacheNameNoDefaults() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.