org.springframework.cloud.client.discovery.simple.SimpleDiscoveryClientAutoConfiguration Java Examples
The following examples show how to use
org.springframework.cloud.client.discovery.simple.SimpleDiscoveryClientAutoConfiguration.
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: AdminServerDiscoveryAutoConfigurationTest.java From Moss with Apache License 2.0 | 5 votes |
@Test public void customServiceInstanceConverter() { contextRunner.withUserConfiguration(SimpleDiscoveryClientAutoConfiguration.class, TestCustomServiceInstanceConverterConfig.class ) .run(context -> assertThat(context).getBean(ServiceInstanceConverter.class) .isInstanceOf(CustomServiceInstanceConverter.class)); }
Example #2
Source File: AdminServerDiscoveryAutoConfigurationTest.java From spring-boot-admin with Apache License 2.0 | 5 votes |
@Test public void customServiceInstanceConverter() { this.contextRunner .withUserConfiguration(SimpleDiscoveryClientAutoConfiguration.class, TestCustomServiceInstanceConverterConfig.class) .run((context) -> assertThat(context).getBean(ServiceInstanceConverter.class) .isInstanceOf(CustomServiceInstanceConverter.class)); }
Example #3
Source File: AdminServerDiscoveryAutoConfigurationTest.java From Moss with Apache License 2.0 | 4 votes |
@Test public void defaultServiceInstanceConverter() { contextRunner.withUserConfiguration(SimpleDiscoveryClientAutoConfiguration.class) .run(context -> assertThat(context.getBean(ServiceInstanceConverter.class)).isInstanceOf( DefaultServiceInstanceConverter.class)); }
Example #4
Source File: AdminServerDiscoveryAutoConfigurationTest.java From spring-boot-admin with Apache License 2.0 | 4 votes |
@Test public void defaultServiceInstanceConverter() { this.contextRunner.withUserConfiguration(SimpleDiscoveryClientAutoConfiguration.class) .run((context) -> assertThat(context.getBean(ServiceInstanceConverter.class)) .isInstanceOf(DefaultServiceInstanceConverter.class)); }