Class Removable

java.lang.Object
org.operaton.bpm.engine.test.util.Removable

public final class Removable extends Object
Class modeling the corresponding entity removal of Domain Classes.
  • Method Details

    • of

      public static Removable of(ProcessEngineTestRule rule)
      Static Creation method.
      Parameters:
      rule - the process engine test rule, non-null.
      Returns:
      the Removable
    • of

      public static Removable of(ProcessEngine engine)
    • remove

      public void remove(Class<?> clazz) throws org.operaton.bpm.engine.test.util.EntityRemoveException
      Removes the associated mapped entities from the db for the given class.
      Parameters:
      clazz - the given class to delete associated entities for
      Throws:
      org.operaton.bpm.engine.test.util.EntityRemoveException - in case anything fails during the process of deletion
    • remove

      public void remove(Class<?>[] classes) throws org.operaton.bpm.engine.test.util.EntityRemoveException
      Removes the associated mapped entities from the db for the given classes.
      Parameters:
      classes - the given classes to delete associated entities for
      Throws:
      org.operaton.bpm.engine.test.util.EntityRemoveException - in case anything fails during the process of deletion for any of the classes
    • removeAll

      public void removeAll() throws org.operaton.bpm.engine.test.util.EntityRemoveException
      Removes associated mapped entities for all known classes.
      Throws:
      org.operaton.bpm.engine.test.util.EntityRemoveException - in case anything fails during the process of deletion for any of the classes
    • isInitialized

      public boolean isInitialized()