diff --git a/spring-data-redis/src/test/java/org/springframework/data/keyvalue/redis/config/NamespaceTest.java b/spring-data-redis/src/test/java/org/springframework/data/keyvalue/redis/config/NamespaceTest.java index 16fc89d36..523334dc3 100644 --- a/spring-data-redis/src/test/java/org/springframework/data/keyvalue/redis/config/NamespaceTest.java +++ b/spring-data-redis/src/test/java/org/springframework/data/keyvalue/redis/config/NamespaceTest.java @@ -17,12 +17,11 @@ package org.springframework.data.keyvalue.redis.config; import static org.junit.Assert.*; -import java.util.concurrent.TimeUnit; - import org.junit.After; import org.junit.Before; import org.junit.Test; import org.springframework.context.support.GenericXmlApplicationContext; +import org.springframework.data.keyvalue.redis.core.StringRedisTemplate; import org.springframework.data.keyvalue.redis.listener.RedisMessageListenerContainer; /** @@ -47,6 +46,14 @@ public class NamespaceTest { public void testSanityTest() throws Exception { RedisMessageListenerContainer container = ctx.getBean(RedisMessageListenerContainer.class); assertTrue(container.isRunning()); - Thread.sleep(TimeUnit.SECONDS.toMillis(1)); + //Thread.sleep(TimeUnit.SECONDS.toMillis(1)); + } + + @Test + public void testWithMessages() throws Exception { + StringRedisTemplate template = ctx.getBean(StringRedisTemplate.class); + template.convertAndSend("x1", "[X]test"); + template.convertAndSend("z1", "[Z]test"); + //Thread.sleep(TimeUnit.SECONDS.toMillis(5)); } } diff --git a/spring-data-redis/src/test/resources/org/springframework/data/keyvalue/redis/config/namespace.xml b/spring-data-redis/src/test/resources/org/springframework/data/keyvalue/redis/config/namespace.xml index c0ca557cc..2ae0ace02 100644 --- a/spring-data-redis/src/test/resources/org/springframework/data/keyvalue/redis/config/namespace.xml +++ b/spring-data-redis/src/test/resources/org/springframework/data/keyvalue/redis/config/namespace.xml @@ -12,7 +12,7 @@ - + @@ -23,4 +23,8 @@ + + + + \ No newline at end of file