add warning regarding RedisTemplate initialization
DATAREDIS-112
This commit is contained in:
@@ -57,6 +57,13 @@ public class TemplateTest {
|
||||
return CollectionTestParams.testParams();
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testTemplateNotInitialized() throws Exception {
|
||||
RedisTemplate tpl = new RedisTemplate();
|
||||
tpl.setConnectionFactory(template.getConnectionFactory());
|
||||
tpl.exec();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testKeys() throws Exception {
|
||||
assertTrue(template.keys("*") != null);
|
||||
|
||||
Reference in New Issue
Block a user