de.codecentric.boot.admin.server.cloud.discovery.EurekaServiceInstanceConverter Java Examples

The following examples show how to use de.codecentric.boot.admin.server.cloud.discovery.EurekaServiceInstanceConverter. 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: AdminServerDiscoveryAutoConfiguration.java    From Moss with Apache License 2.0 4 votes vote down vote up
@Bean
@ConfigurationProperties(prefix = "spring.boot.admin.discovery.converter")
public EurekaServiceInstanceConverter serviceInstanceConverter() {
    return new EurekaServiceInstanceConverter();
}
 
Example #2
Source File: AdminServerDiscoveryAutoConfigurationTest.java    From Moss with Apache License 2.0 4 votes vote down vote up
@Test
public void eurekaServiceInstanceConverter() {
    contextRunner.withUserConfiguration(EurekaClientConfig.class)
                 .run(context -> assertThat(context).getBean(ServiceInstanceConverter.class)
                                                    .isInstanceOf(EurekaServiceInstanceConverter.class));
}
 
Example #3
Source File: MossServerDiscoveryAutoConfiguration.java    From Moss with Apache License 2.0 4 votes vote down vote up
@Bean
public EurekaServiceInstanceConverter serviceInstanceConverter() {
    return new EurekaServiceInstanceConverter();
}
 
Example #4
Source File: AdminServerDiscoveryAutoConfiguration.java    From spring-boot-admin with Apache License 2.0 4 votes vote down vote up
@Bean
@ConfigurationProperties(prefix = "spring.boot.admin.discovery.converter")
public EurekaServiceInstanceConverter serviceInstanceConverter() {
	return new EurekaServiceInstanceConverter();
}
 
Example #5
Source File: AdminServerDiscoveryAutoConfigurationTest.java    From spring-boot-admin with Apache License 2.0 4 votes vote down vote up
@Test
public void eurekaServiceInstanceConverter() {
	this.contextRunner.withUserConfiguration(EurekaClientConfig.class).run((context) -> assertThat(context)
			.getBean(ServiceInstanceConverter.class).isInstanceOf(EurekaServiceInstanceConverter.class));
}