Search in sources :

Example 6 with RedisServiceInfo

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);
}
Also used : RedisServiceInfo(org.springframework.cloud.service.common.RedisServiceInfo) CloudTestUtil.getTestCloudConnector(org.springframework.cloud.CloudTestUtil.getTestCloudConnector) Properties(java.util.Properties) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 RedisServiceInfo (org.springframework.cloud.service.common.RedisServiceInfo)6 RedisConnectionFactory (org.springframework.data.redis.connection.RedisConnectionFactory)3 ServiceInfo (org.springframework.cloud.service.ServiceInfo)2 HashMap (java.util.HashMap)1 Properties (java.util.Properties)1 CloudTestUtil.getTestCloudConnector (org.springframework.cloud.CloudTestUtil.getTestCloudConnector)1