Class BaseContext
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.integrationservices.util.BaseContext
- All Implemented Interfaces:
org.junit.rules.TestRule
- Direct Known Subclasses:
IntegrationObjectItemsContext,IntegrationObjectsContext,RequestPersistenceContext
public abstract class BaseContext
extends org.junit.rules.ExternalResource
The base class to contexts to provide common functionality, such as setup and clean up after tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()protected <T extends ItemModel>
Collection<T>Retrieves all model items existing in the persistent storage.protected <T> TgetService(String name, Class<T> type) protected <T extends ItemModel>
voidMethods inherited from class org.junit.rules.ExternalResource
after, apply
-
Constructor Details
-
BaseContext
public BaseContext()
-
-
Method Details
-
getService
-
modelService
-
flexibleSearch
-
before
public void before()- Overrides:
beforein classorg.junit.rules.ExternalResource
-
removeAll
-
findAll
Retrieves all model items existing in the persistent storage.- Returns:
- a collection of all items or an empty collection, if there are no items in the persistent storage.
-