Class LocalBlobstoreServiceTestConfig
java.lang.Object
com.google.appengine.tools.development.testing.LocalBlobstoreServiceTestConfig
- All Implemented Interfaces:
LocalServiceTestConfig
Config for accessing the local blobstore service in tests.
Default behavior is to configure the local blobstore to only store data
in-memory and not write anything to disk.
tearDown() wipes out
all in-memory state so that the blobstore is empty at the end of every test.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalBlobstoreServicebooleansetBackingStoreLocation(String backingStoreLocation) Sets the location for on-disk storage.setNoStorage(boolean noStorage) True to put the blobstore into "memory-only" mode.voidsetUp()Set up the local service.voidtearDown()Tear down the local service.
-
Constructor Details
-
LocalBlobstoreServiceTestConfig
public LocalBlobstoreServiceTestConfig()
-
-
Method Details
-
isNoStorage
public boolean isNoStorage() -
setNoStorage
True to put the blobstore into "memory-only" mode.- Parameters:
noStorage-- Returns:
this(for chaining)
-
getBackingStoreLocation
-
setBackingStoreLocation
Sets the location for on-disk storage.- Parameters:
backingStoreLocation-- 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
-
getLocalBlobstoreService
-