@Test public void testSSLDisableHostNameVerifier() throws Exception { final SSLConfigurationCallback.Builder sslConfBuilderMock = sslSettingsTestBase( ImmutableMap.<String, String>builder(). put("index." + INDEX_NAME + ".elasticsearch.ssl.disable-hostname-verification", "true"). build() ); verify(restClientSetup).getSSLConfigurationCallbackBuilder(); verify(sslConfBuilderMock).disableHostNameVerification(); verify(sslConfBuilderMock).build(); verifyNoMoreInteractions(sslConfBuilderMock); }
protected SSLConfigurationCallback.Builder getSSLConfigurationCallbackBuilder() { return SSLConfigurationCallback.Builder.create(); }
RestClientSetup { protected SSLConfigurationCallback.Builder getSSLConfigurationCallbackBuilder() { return SSLConfigurationCallback.Builder.create(); } }
RestClientSetup { protected SSLConfigurationCallback.Builder getSSLConfigurationCallbackBuilder() { return SSLConfigurationCallback.Builder.create(); }  }
RestClientSetup { protected SSLConfigurationCallback.Builder getSSLConfigurationCallbackBuilder() { return SSLConfigurationCallback.Builder.create(); }  ElasticSearchClient connect(Configuration config); }
RestClientSetup { protected SSLConfigurationCallback.Builder getSSLConfigurationCallbackBuilder() { return SSLConfigurationCallback.Builder.create(); }  ElasticSearchClient connect(Configuration config);  }