1 5 package com.opensymphony.oscache.base; 6 7 import junit.framework.TestCase; 8 9 19 public abstract class TestAbstractCacheAdministrator extends TestCase { 20 private final String CACHE_PATH_PROP = "cache.path"; 22 private final String CONTENT = "Content for the abstract cache admin test"; 23 private final String ENTRY_KEY = "Test Abstract Admin Key"; 24 private final String INVALID_PROP_NAME = "INVALID_PROP_NAME"; 25 private final String TEST_LOG = "test log"; 26 27 32 protected TestAbstractCacheAdministrator(String str) { 33 super(str); 34 } 35 36 39 public void testCacheContents() { 40 } 41 42 45 public void testGetCachePath() { 46 } 47 48 53 public void testGetProperty() { 54 assertNull(getAdmin().getProperty(INVALID_PROP_NAME)); 56 assertNull(getAdmin().getProperty("")); 57 58 try { 59 assertNull(getAdmin().getProperty(null)); 60 fail("NullPointerException expected (property Key null)."); 61 } catch (Exception e) { 62 } 63 } 64 65 68 public void testIsFileCaching() { 69 } 70 71 74 public void testIsMemoryCaching() { 75 } 76 77 81 public void testLog() { 82 86 91 } 92 93 protected abstract AbstractCacheAdministrator getAdmin(); 95 } 96 | Popular Tags |