Class MockDatastoreFactory


  • public class MockDatastoreFactory
    extends DatastoreFactory
    Fake Datastore factory used for testing purposes when a true Datastore service is not needed.
    • Constructor Detail

      • MockDatastoreFactory

        public MockDatastoreFactory()
    • Method Detail

      • setNextResponse

        public void setNextResponse​(com.google.protobuf.Message response)
      • setNextError

        public void setNextError​(int status,
                                 com.google.rpc.Code code,
                                 String message)
      • setNextException

        public void setNextException​(IOException exception)
      • getLastPath

        public String getLastPath()
      • getLastMimeType

        public String getLastMimeType()
      • getLastApiFormatHeaderValue

        public String getLastApiFormatHeaderValue()
      • getLastBody

        public byte[] getLastBody()
      • getLastCookies

        public List<String> getLastCookies()