Class InboundMonitoringRule
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.inboundservices.util.InboundMonitoringRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class InboundMonitoringRule
extends org.junit.rules.ExternalResource
A rule for enabling/disabling inbound request monitoring in integration tests.
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()protected voidbefore()static InboundMonitoringRuledisabled()Creates a rule that disables inbound request monitoring feature.static InboundMonitoringRuleenabled()Creates a rule that enables inbound request monitoring feature.Methods inherited from class org.junit.rules.ExternalResource
apply
-
Method Details
-
disabled
Creates a rule that disables inbound request monitoring feature.- Returns:
- a monitoring rule with monitoring disabled.
-
enabled
Creates a rule that enables inbound request monitoring feature.- Returns:
- a monitoring rule with monitoring enabled.
-
before
protected void before()- Overrides:
beforein classorg.junit.rules.ExternalResource
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-