use of org.springframework.ws.transport.http.ClientHttpRequestMessageSender in project spring-boot by spring-projects.
the class HttpWebServiceMessageSenderBuilderSimpleIntegrationTests method assertSimpleClientRequestFactory.
private SimpleClientHttpRequestFactory assertSimpleClientRequestFactory(WebServiceMessageSender messageSender) {
assertThat(messageSender).isInstanceOf(ClientHttpRequestMessageSender.class);
ClientHttpRequestMessageSender sender = (ClientHttpRequestMessageSender) messageSender;
ClientHttpRequestFactory requestFactory = sender.getRequestFactory();
assertThat(requestFactory).isInstanceOf(SimpleClientHttpRequestFactory.class);
return (SimpleClientHttpRequestFactory) requestFactory;
}
use of org.springframework.ws.transport.http.ClientHttpRequestMessageSender in project spring-boot by spring-projects.
the class WebServiceTemplateBuilderTests method messageSendersShouldReplaceExisting.
@Test
void messageSendersShouldReplaceExisting() {
WebServiceTemplate template = this.builder.messageSenders(new ClientHttpRequestMessageSender()).messageSenders(this.messageSender).build();
assertThat(template.getMessageSenders()).containsOnly(this.messageSender);
}
use of org.springframework.ws.transport.http.ClientHttpRequestMessageSender in project spring-boot by spring-projects.
the class WebServiceTemplateBuilderTests method assertHttpComponentsRequestFactory.
private void assertHttpComponentsRequestFactory(WebServiceMessageSender messageSender) {
assertThat(messageSender).isInstanceOf(ClientHttpRequestMessageSender.class);
ClientHttpRequestMessageSender sender = (ClientHttpRequestMessageSender) messageSender;
ClientHttpRequestFactory requestFactory = sender.getRequestFactory();
assertThat(requestFactory).isInstanceOf(HttpComponentsClientHttpRequestFactory.class);
}
Aggregations