Class DatastoreEmulator

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class DatastoreEmulator
    extends org.junit.rules.ExternalResource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after()  
      protected void before()  
      com.google.cloud.datastore.Datastore client()  
      com.google.cloud.datastore.DatastoreOptions options()  
      void reset()  
      • Methods inherited from class org.junit.rules.ExternalResource

        apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatastoreEmulator

        public DatastoreEmulator​(double consistency)
      • DatastoreEmulator

        public DatastoreEmulator()
    • Method Detail

      • before

        protected void before()
        Overrides:
        before in class org.junit.rules.ExternalResource
      • after

        protected void after()
        Overrides:
        after in class org.junit.rules.ExternalResource
      • options

        public com.google.cloud.datastore.DatastoreOptions options()
      • client

        public com.google.cloud.datastore.Datastore client()
      • reset

        public void reset()