Class LocalSearchServiceTestConfig
java.lang.Object
com.google.appengine.tools.development.testing.LocalSearchServiceTestConfig
- All Implemented Interfaces:
LocalServiceTestConfig
Config for accessing the local text search service in tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalSearchServicebooleanWhether search service data will be persisted.setPersistent(boolean persistent) True to persist search service data, otherwise all data will be stored in memory only.setStorageDirectory(String storageDirectory) Sets the directory to use to persist search service data, when persistence is enabled.voidsetUp()Set up the local service.voidtearDown()Tear down the local service.
-
Constructor Details
-
LocalSearchServiceTestConfig
public LocalSearchServiceTestConfig()
-
-
Method Details
-
isPersistent
public boolean isPersistent()Whether search service data will be persisted. -
setPersistent
True to persist search service data, otherwise all data will be stored in memory only.- Parameters:
persistent-- Returns:
this(for chaining)
-
setStorageDirectory
Sets the directory to use to persist search service data, when persistence is enabled.- Parameters:
storageDirectory- the directory for storing data- Returns:
this(for chaining)
-
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
-
getLocalSearchService
-