View Javadoc

1   package com.atlassian.vcache.internal.test;
2   
3   import com.atlassian.vcache.RequestCache;
4   import com.atlassian.vcache.VCache;
5   
6   import org.hamcrest.Matchers;
7   import org.junit.Test;
8   
9   import static org.junit.Assert.assertThat;
10  
11  /**
12   * Base test class for the {@link RequestCache}.
13   */
14  public abstract class AbstractRequestCacheTest extends AbstractLocalCacheOperationsTest
15  {
16      protected abstract RequestCache<String, String> createCache(String name);
17  
18      @Test
19      public void testGetName() throws Exception
20      {
21          final VCache namedCache = createCache("netflix");
22          assertThat(namedCache.getName(), Matchers.is("netflix"));
23      }
24  }