Class RequestPersistenceContext
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- de.hybris.platform.integrationservices.util.BaseContext
-
- de.hybris.platform.integrationservices.util.RequestPersistenceContext
-
- All Implemented Interfaces:
org.junit.rules.TestRule
- Direct Known Subclasses:
InboundRequestPersistenceContext,OutboundRequestPersistenceContext
public abstract class RequestPersistenceContext extends BaseContext
A rule for cleaning up media created in the platform as a side effect of a test
-
-
Constructor Summary
Constructors Constructor Description RequestPersistenceContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidafter()voidbefore()java.util.List<IntegrationApiMediaModel>getAllMedia()java.lang.StringgetMediaContentAsString(IntegrationApiMediaModel model)protected abstract java.lang.StringgetMonitoringProperty()voidturnMonitoringOff()-
Methods inherited from class de.hybris.platform.integrationservices.util.BaseContext
findAll, flexibleSearch, getService, modelService, removeAll
-
-
-
-
Method Detail
-
before
public void before()
- Overrides:
beforein classBaseContext
-
after
protected void after()
- Overrides:
afterin classorg.junit.rules.ExternalResource
-
getAllMedia
public java.util.List<IntegrationApiMediaModel> getAllMedia()
-
getMediaContentAsString
public java.lang.String getMediaContentAsString(IntegrationApiMediaModel model) throws java.io.IOException
- Throws:
java.io.IOException
-
turnMonitoringOff
public void turnMonitoringOff()
-
getMonitoringProperty
protected abstract java.lang.String getMonitoringProperty()
-
-