LocalBlobstoreServiceTestConfig

com.google.appengine.tools.development.testing

Class LocalBlobstoreServiceTestConfig

  • java.lang.Object
    • com.google.appengine.tools.development.testing.LocalBlobstoreServiceTestConfig
  • All Implemented Interfaces:
    LocalServiceTestConfig


    public final class LocalBlobstoreServiceTestConfig
    extends java.lang.Object
    implements 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 Detail

      • LocalBlobstoreServiceTestConfig

        public LocalBlobstoreServiceTestConfig()
    • Method Detail

      • isNoStorage

        public boolean isNoStorage()
      • setNoStorage

        public LocalBlobstoreServiceTestConfig setNoStorage(boolean noStorage)
        True to put the blobstore into "memory-only" mode.
        Parameters:
        noStorage -
        Returns:
        this (for chaining)
      • getBackingStoreLocation

        public java.lang.String getBackingStoreLocation()
      • setBackingStoreLocation

        public LocalBlobstoreServiceTestConfig setBackingStoreLocation(java.lang.String backingStoreLocation)
        Sets the location for on-disk storage.
        Parameters:
        backingStoreLocation -
        Returns:
        this (for chaining)