public class LocalMemcacheServiceTestConfig extends java.lang.Object implements LocalServiceTestConfig
tearDown()
wipes out all cache entries so that memcache is empty
at the end of every test.Modifier and Type | Class and Description |
---|---|
static class |
LocalMemcacheServiceTestConfig.SizeUnit |
Constructor and Description |
---|
LocalMemcacheServiceTestConfig() |
Modifier and Type | Method and Description |
---|---|
static LocalMemcacheService |
getLocalMemcacheService() |
java.lang.Long |
getMaxSize() |
LocalMemcacheServiceTestConfig.SizeUnit |
getMaxSizeUnits() |
LocalMemcacheServiceTestConfig |
setMaxSize(long maxSize,
LocalMemcacheServiceTestConfig.SizeUnit maxSizeUnits)
Sets the maximum size of the cache
|
void |
setUp()
Set up the local service.
|
void |
tearDown()
Tear down the local service.
|
public void setUp()
LocalServiceTestConfig
setUp
in interface LocalServiceTestConfig
public void tearDown()
LocalServiceTestConfig
tearDown
in interface LocalServiceTestConfig
public java.lang.Long getMaxSize()
public LocalMemcacheServiceTestConfig.SizeUnit getMaxSizeUnits()
public LocalMemcacheServiceTestConfig setMaxSize(long maxSize, LocalMemcacheServiceTestConfig.SizeUnit maxSizeUnits)
maxSize
- maxSizeUnits
- this
(for chaining)public static LocalMemcacheService getLocalMemcacheService()