Class ProxyServerPropertiesRule

java.lang.Object
org.junit.rules.ExternalResource
com.atlassian.crowd.acceptance.utils.proxy.ProxyServerPropertiesRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class ProxyServerPropertiesRule extends org.junit.rules.ExternalResource
Provides set system proxy settings. Properties are restored after ended tests.
  • Constructor Details

    • ProxyServerPropertiesRule

      public ProxyServerPropertiesRule(Integer proxyPort, String proxyHost, String baseUrl)
  • Method Details

    • before

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

      protected TestkitProxySettings getCurrentSettings()
    • after

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