View Javadoc

1   package com.atlassian.cache.ehcache;
2   
3   import com.atlassian.cache.AbstractLazyReferenceTest;
4   
5   import org.junit.Before;
6   import org.junit.Ignore;
7   import org.junit.Test;
8   
9   /**
10   * Test the Delegated Lazy Reference
11   *
12   * @since 2.0
13   */
14  public class DelegatingCachedReferenceTest extends AbstractLazyReferenceTest
15  {
16      @Before
17      public void setUp() throws Exception
18      {
19          factory = new EhCacheManager();
20          // Make sure we are not getting old caches for our test.
21          ((EhCacheManager) factory).getEh().removeAllCaches();
22      }
23  
24      @Override
25      @Test
26      @Ignore("EHCache handles null entries, so ignore this test")
27      public void testNullHandling() throws Exception
28      {
29      }
30  }