@Test public void createClientHttpRequestFactory() { ClientOptions clientOptions = mock(ClientOptions.class); SslConfiguration sslConfiguration = mock(SslConfiguration.class); SslConfiguration.KeyStoreConfiguration keyStoreConfiguration = mock(SslConfiguration.KeyStoreConfiguration.class); when(sslConfiguration.getKeyStoreConfiguration()).thenReturn(keyStoreConfiguration); when(sslConfiguration.getTrustStoreConfiguration()).thenReturn(keyStoreConfiguration); when(clientOptions.getConnectionTimeout()).thenReturn(Duration.ZERO); when(clientOptions.getReadTimeout()).thenReturn(Duration.ZERO); ClientHttpRequestFactory result = util.createClientHttpRequestFactory(clientOptions, sslConfiguration); assertThat(result).isInstanceOf(OkHttp3ClientHttpRequestFactory.class); }
ClientHttpRequestFactory createClientHttpRequestFactory(ClientOptions clientOptions, SslConfiguration sslConfiguration) { return ClientHttpRequestFactoryFactory.create(clientOptions, sslConfiguration); }
HashicorpKeyVaultServiceFactoryUtil { ClientHttpRequestFactory createClientHttpRequestFactory(ClientOptions clientOptions, SslConfiguration sslConfiguration) { return ClientHttpRequestFactoryFactory.create(clientOptions, sslConfiguration); } }
HashicorpKeyVaultServiceFactoryUtil { ClientHttpRequestFactory createClientHttpRequestFactory(ClientOptions clientOptions, SslConfiguration sslConfiguration) { return ClientHttpRequestFactoryFactory.create(clientOptions, sslConfiguration); }  }
HashicorpKeyVaultServiceFactoryUtil { ClientHttpRequestFactory createClientHttpRequestFactory(ClientOptions clientOptions, SslConfiguration sslConfiguration) { return ClientHttpRequestFactoryFactory.create(clientOptions, sslConfiguration); }   }
HashicorpKeyVaultServiceFactoryUtil { ClientHttpRequestFactory createClientHttpRequestFactory(ClientOptions clientOptions, SslConfiguration sslConfiguration) { return ClientHttpRequestFactoryFactory.create(clientOptions, sslConfiguration); }    }