Class SamplePostPersistHook

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

    public class SamplePostPersistHook
    extends org.junit.rules.ExternalResource
    implements PostPersistHook
    • Constructor Detail

      • SamplePostPersistHook

        public SamplePostPersistHook()
    • Method Detail

      • execute

        public void execute​(ItemModel item)
        Description copied from interface: PostPersistHook
        Executes this hook after persisting the given item.
        Specified by:
        execute in interface PostPersistHook
        Parameters:
        item - an item to execute this hook with
      • isExecuted

        public boolean isExecuted()
      • givenDoesInExecute

        public void givenDoesInExecute​(java.util.function.Consumer<ItemModel> proc)
      • after

        public void after()
        Overrides:
        after in class org.junit.rules.ExternalResource