Class 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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after()  
      protected void before()  
      static InboundMonitoringRule disabled()
      Creates a rule that disables inbound request monitoring feature.
      static InboundMonitoringRule enabled()
      Creates a rule that enables inbound request monitoring feature.
      • Methods inherited from class org.junit.rules.ExternalResource

        apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • disabled

        public static InboundMonitoringRule disabled()
        Creates a rule that disables inbound request monitoring feature.
        Returns:
        a monitoring rule with monitoring disabled.
      • enabled

        public static InboundMonitoringRule enabled()
        Creates a rule that enables inbound request monitoring feature.
        Returns:
        a monitoring rule with monitoring enabled.
      • before

        protected void before()
        Overrides:
        before in class org.junit.rules.ExternalResource
      • after

        protected void after()
        Overrides:
        after in class org.junit.rules.ExternalResource