DATAREDIS-75
+ fix NPE in properties impl.
This commit is contained in:
@@ -176,11 +176,11 @@ public class RedisPropertiesTests extends RedisMapTests {
|
||||
|
||||
@Test
|
||||
public void testPropertyNames() throws Exception {
|
||||
String key1="foo";
|
||||
String key2="x";
|
||||
String key1 = "foo";
|
||||
String key2 = "x";
|
||||
String key3 = "d";
|
||||
|
||||
String val ="o";
|
||||
String val = "o";
|
||||
|
||||
defaults.setProperty(key3, val);
|
||||
props.setProperty(key1, val);
|
||||
@@ -195,6 +195,12 @@ public class RedisPropertiesTests extends RedisMapTests {
|
||||
assertFalse(names.hasMoreElements());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDefaultInit() throws Exception {
|
||||
RedisProperties redisProperties = new RedisProperties("foo", template);
|
||||
redisProperties.propertyNames();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringPropertyNames() throws Exception {
|
||||
String key1 = "foo";
|
||||
|
||||
Reference in New Issue
Block a user