use of org.springframework.cloud.service.common.RedisServiceInfo in project spring-cloud-connectors by spring-cloud.
the class CloudTest method servicePropsRedis.
@Test
public void servicePropsRedis() {
String serviceId = "my-redis";
RedisServiceInfo redisServiceInfo = createRedisService(serviceId);
CloudConnector stubCloudConnector = getTestCloudConnector(redisServiceInfo);
Cloud testCloud = new Cloud(stubCloudConnector, serviceCreators);
Properties cloudProperties = testCloud.getCloudProperties();
assertBasicProps("cloud.services.my-redis", redisServiceInfo, cloudProperties);
assertBasicProps("cloud.services.redis", redisServiceInfo, cloudProperties);
}
Aggregations