Class OutboundMonitoringRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class OutboundMonitoringRule
    extends org.junit.rules.ExternalResource
    A rule for enabling/disabling outbound request monitoring in integration tests.
    • Method Summary

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

        apply, before
      • Methods inherited from class java.lang.Object

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

      • disabled

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

        public static OutboundMonitoringRule enabled()
        Creates a rule that enables outbound request monitoring feature.
        Returns:
        a monitoring rule with monitoring enabled.
      • after

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