@Test public void testUseProxy() { given(config.useProxy()).willReturn(true); then(rest.useProxy()).isEqualTo(true); given(config.useProxy()).willReturn(false); then(rest.useProxy()).isEqualTo(false); }
@Override public Boolean useProxy() { return configuration.useProxy(); }
DefaultRestEndPoint implements RestEndPoint { @Override public Boolean useProxy() { return configuration.useProxy(); } }
DefaultRestEndPoint implements RestEndPoint { @Override public Boolean useProxy() { return configuration.useProxy(); } @Inject  DefaultRestEndPoint(RestEndPoint.Configuration configuration); }
DefaultRestEndPoint implements RestEndPoint { @Override public Boolean useProxy() { return configuration.useProxy(); } @Inject  DefaultRestEndPoint(RestEndPoint.Configuration configuration); @Override URI getRestEndPointURI(); @Override Boolean useProxy(); @Override int getRetries(); @Override RetryPolicy getRetryPolicy(); }
DefaultRestEndPoint implements RestEndPoint { @Override public Boolean useProxy() { return configuration.useProxy(); } @Inject  DefaultRestEndPoint(RestEndPoint.Configuration configuration); @Override URI getRestEndPointURI(); @Override Boolean useProxy(); @Override int getRetries(); @Override RetryPolicy getRetryPolicy();  }