Class LocalMemcacheServiceTestConfig
java.lang.Object
com.google.appengine.tools.development.testing.LocalMemcacheServiceTestConfig
- All Implemented Interfaces:
LocalServiceTestConfig
Config for accessing the local memcache service in tests.
tearDown() wipes out all cache entries so that memcache is empty
at the end of every test.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalMemcacheServicesetMaxSize(long maxSize, LocalMemcacheServiceTestConfig.SizeUnit maxSizeUnits) Sets the maximum size of the cachevoidsetUp()Set up the local service.voidtearDown()Tear down the local service.
-
Constructor Details
-
LocalMemcacheServiceTestConfig
public LocalMemcacheServiceTestConfig()
-
-
Method Details
-
setUp
public void setUp()Description copied from interface:LocalServiceTestConfigSet up the local service.- Specified by:
setUpin interfaceLocalServiceTestConfig
-
tearDown
public void tearDown()Description copied from interface:LocalServiceTestConfigTear down the local service.- Specified by:
tearDownin interfaceLocalServiceTestConfig
-
getMaxSize
-
getMaxSizeUnits
-
setMaxSize
public LocalMemcacheServiceTestConfig setMaxSize(long maxSize, LocalMemcacheServiceTestConfig.SizeUnit maxSizeUnits) Sets the maximum size of the cache- Parameters:
maxSize-maxSizeUnits-- Returns:
this(for chaining)
-
getLocalMemcacheService
-