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
public class IntegrationObjectsContext extends BaseContext
A class to provide context or to modify context aboutIntegrationObjectModels existing in the system. It's meant to be used in integration tests to set up or verify test conditions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()static IntegrationObjectsContextcreate()IntegrationObjectModel[]givenExist(IntegrationObjectBuilder... specs)Persists the integration object specifications in the context storage.voidgivenExist(IntegrationObjectModel... models)Persists the integration object models in the context storage.IntegrationObjectModelgivenExists(IntegrationObjectBuilder spec)Persists the integration object specifications in the context storage.-
Methods inherited from class de.hybris.platform.integrationservices.util.BaseContext
before, findAll, flexibleSearch, getService, modelService, removeAll
-
-
-
-
Method Detail
-
create
public static IntegrationObjectsContext create()
-
after
public void after()
- Overrides:
afterin classorg.junit.rules.ExternalResource
-
givenExist
public IntegrationObjectModel[] givenExist(IntegrationObjectBuilder... specs)
Persists the integration object specifications in the context storage.- Parameters:
specs- specifications of theIntegrationObjectModelto create in the persistent storage.
-
givenExists
public IntegrationObjectModel givenExists(IntegrationObjectBuilder spec)
Persists the integration object specifications in the context storage.- Parameters:
spec- specifications of theIntegrationObjectModelto create in the persistent storage.
-
givenExist
public void givenExist(IntegrationObjectModel... models)
Persists the integration object models in the context storage.- Parameters:
models- models of theIntegrationObjectModelto create in the persistent storage.
-
-