Class IntegrationObjectsContext
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.integrationservices.util.BaseContext
de.hybris.platform.integrationservices.util.IntegrationObjectsContext
- All Implemented Interfaces:
org.junit.rules.TestRule
A class to provide context or to modify context about
IntegrationObjectModels
existing in the system. It's meant to be used in integration tests to set up or verify test conditions.-
Method Summary
Modifier and TypeMethodDescriptionvoidafter()static IntegrationObjectsContextcreate()givenExist(IntegrationObjectBuilder... specs) Persists the integration object specifications in the context storage.voidgivenExist(IntegrationObjectModel... models) Persists the integration object models in the context storage.Persists the integration object specifications in the context storage.Methods inherited from class de.hybris.platform.integrationservices.util.BaseContext
before, findAll, flexibleSearch, getService, modelService, removeAllMethods inherited from class org.junit.rules.ExternalResource
apply
-
Method Details
-
create
-
after
public void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
givenExist
Persists the integration object specifications in the context storage.- Parameters:
specs- specifications of theIntegrationObjectModelto create in the persistent storage.
-
givenExists
Persists the integration object specifications in the context storage.- Parameters:
spec- specifications of theIntegrationObjectModelto create in the persistent storage.
-
givenExist
Persists the integration object models in the context storage.- Parameters:
models- models of theIntegrationObjectModelto create in the persistent storage.
-