@Test public void testHttpClient() { final String proxyHost = "test.proxy"; final int proxyPort = 5555; ServiceFactory serviceFactory = mock(ServiceFactory.class); HttpClient httpClient = mock(HttpClient.class); when(serviceFactory.createHttpClient(true, proxyHost, proxyPort)).thenReturn(httpClient); ToolConfiguration.ConfigurationBuilder configurationBuilder = defaultToolConfigurationBuilder() .setProxyHost(proxyHost) .setProxyPort(proxyPort); AntennaContext context = createContext(new AntennaContext.ContextBuilder(serviceFactory), configurationBuilder); assertThat(context.getHttpClient()).isEqualTo(httpClient); }
public HttpClient getHttpClient() { return serviceFactory.createHttpClient(toolConfiguration.useProxy(), toolConfiguration.getProxyHost(), toolConfiguration.getProxyPort()); }
AntennaContext { public HttpClient getHttpClient() { return serviceFactory.createHttpClient(toolConfiguration.useProxy(), toolConfiguration.getProxyHost(), toolConfiguration.getProxyPort()); } }
AntennaContext { public HttpClient getHttpClient() { return serviceFactory.createHttpClient(toolConfiguration.useProxy(), toolConfiguration.getProxyHost(), toolConfiguration.getProxyPort()); } private  AntennaContext(ContextBuilder builder); }
AntennaContext { public HttpClient getHttpClient() { return serviceFactory.createHttpClient(toolConfiguration.useProxy(), toolConfiguration.getProxyHost(), toolConfiguration.getProxyPort()); } private  AntennaContext(ContextBuilder builder); Configuration getConfiguration(); ToolConfiguration getToolConfiguration(); IProject getProject(); IProcessingReporter getProcessingReporter(); Optional<T> getGeneric(Class<? extends T> clazz); void setDebug(boolean debug); boolean getDebug(); HttpClient getHttpClient(); ObjectMapper getObjectMapper(); }
AntennaContext { public HttpClient getHttpClient() { return serviceFactory.createHttpClient(toolConfiguration.useProxy(), toolConfiguration.getProxyHost(), toolConfiguration.getProxyPort()); } private  AntennaContext(ContextBuilder builder); Configuration getConfiguration(); ToolConfiguration getToolConfiguration(); IProject getProject(); IProcessingReporter getProcessingReporter(); Optional<T> getGeneric(Class<? extends T> clazz); void setDebug(boolean debug); boolean getDebug(); HttpClient getHttpClient(); ObjectMapper getObjectMapper();  }