Search in sources :

Example 1 with DestinationProvider

use of org.springframework.ws.client.support.destination.DestinationProvider in project spring-boot by spring-projects.

the class WebServiceTemplateBuilderTests method setDestinationProvider.

@Test
void setDestinationProvider() {
    DestinationProvider destinationProvider = () -> URI.create("http://localhost:8080");
    WebServiceTemplate webServiceTemplate = this.builder.setDestinationProvider(destinationProvider).build();
    assertThat(webServiceTemplate.getDestinationProvider()).isEqualTo(destinationProvider);
}
Also used : WebServiceTemplate(org.springframework.ws.client.core.WebServiceTemplate) DestinationProvider(org.springframework.ws.client.support.destination.DestinationProvider) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 WebServiceTemplate (org.springframework.ws.client.core.WebServiceTemplate)1 DestinationProvider (org.springframework.ws.client.support.destination.DestinationProvider)1