Class SamplePostPersistHook
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.odata2webservices.odata.persistence.hooks.SamplePostPersistHook
- All Implemented Interfaces:
PostPersistHook,PostPersistHook,org.junit.rules.TestRule
public class SamplePostPersistHook
extends org.junit.rules.ExternalResource
implements PostPersistHook, PostPersistHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()voidvoidExecutes this hook after persisting the given item.voidexecute(ItemModel item, PersistenceContext context) Executes this hook after persisting the given item.voidgivenDoesInExecute(Consumer<ItemModel> proc) booleanvoidMethods inherited from class org.junit.rules.ExternalResource
apply, before
-
Constructor Details
-
SamplePostPersistHook
public SamplePostPersistHook()
-
-
Method Details
-
execute
Description copied from interface:PostPersistHookExecutes this hook after persisting the given item.- Specified by:
executein interfacePostPersistHook- Parameters:
item- an item to execute this hook with
-
execute
Description copied from interface:PostPersistHookExecutes this hook after persisting the given item.- Specified by:
executein interfacePostPersistHook- Parameters:
item- an item to execute this hook with.context- to provide information about the item to be persisted.- See Also:
-
isExecuted
public boolean isExecuted() -
givenDoesInExecute
-
doesInExecute
-
after
public void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
setHookRegistry
-