org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration Java Examples

The following examples show how to use org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringBootAdminClientAutoConfigurationTest.java    From spring-boot-admin with Apache License 2.0 5 votes vote down vote up
@Test
public void reactiveEnvironment() {
	ReactiveWebApplicationContextRunner reactiveContextRunner = new ReactiveWebApplicationContextRunner()
			.withConfiguration(
					AutoConfigurations.of(EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class,
							WebClientAutoConfiguration.class, SpringBootAdminClientAutoConfiguration.class));
	reactiveContextRunner.withPropertyValues("spring.boot.admin.client.url:http://localhost:8081")
			.run((context) -> assertThat(context).hasSingleBean(ApplicationRegistrator.class));
}
 
Example #2
Source File: WebClientBraveTests.java    From spring-cloud-sleuth with Apache License 2.0 4 votes vote down vote up
/**
 * This uses Spring to instrument the {@link WebClient} using a
 * {@link BeanPostProcessor}.
 */
public WebClientBraveTests() {
	super(WebClientConfiguration.class, WebClientAutoConfiguration.class,
			TraceWebClientBeanPostProcessor.class);
}
 
Example #3
Source File: LoadBalancerTestUtils.java    From spring-cloud-commons with Apache License 2.0 4 votes vote down vote up
static ConfigurableApplicationContext init(Class<?>... configClasses) {
	return new SpringApplicationBuilder().web(WebApplicationType.NONE)
			.sources(ArrayUtils.add(configClasses, WebClientAutoConfiguration.class))
			.run();
}