Class AbstractObjectifyJUnit

  • Direct Known Subclasses:
    ObjectifyExtension, ObjectifyRule

    public abstract class AbstractObjectifyJUnit
    extends java.lang.Object
    Abstract JUnit functionality for running Objectify with local Datastore.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <E> E consistent​(java.util.function.Supplier<E> getEntity, java.util.function.Function<E,​java.lang.Boolean> checkConsistency)
      Obtains consistent entity.
      <E> E get​(java.lang.Class<E> type)
      Obtains the first entity.
      <E> java.util.List<E> get​(java.lang.Class<E> type, int expectedSize, java.util.function.Supplier<java.util.List<E>> loader)
      Obtains a list of entities.
      <E> java.util.List<E> get​(java.lang.Class<E> type, int expectedSize, AbstractObjectifyJUnit.QueryLoader<E> loader)
      Obtains a list of entities.
      <E> E get​(java.lang.Class<E> type, long id)
      Obtains an entity.
      <E> E get​(java.lang.Class<E> type, AbstractObjectifyJUnit.ResultLoader<E> loader)
      Obtains an entity.
      com.googlecode.objectify.Objectify ofy()
      Obtains the Objectify.
      protected void setupLocalDataStore()
      Sets up the local data store.
      <E> void store​(E... entities)
      Stores the entities.
      protected void tearDownLocalDataStore()
      Tears down the local data store.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait