fix loop in loading settings from map
This commit is contained in:
parent
74a3a2d75e
commit
272dff4b63
1 changed files with 2 additions and 1 deletions
|
@ -171,8 +171,9 @@ public class SettingsTest extends Assert {
|
|||
map.put("code", code);
|
||||
map.put("name", name);
|
||||
map.put("list", list);
|
||||
map.put("null", null);
|
||||
JsonSettingsLoader loader = new JsonSettingsLoader();
|
||||
Map<String, String> result = loader.load(map);
|
||||
assertEquals("{code.a=b, code.b=c, name.a=b, name.b=c, list.0=a, list.1=b}", result.toString());
|
||||
assertEquals("{code.a=b, code.b=c, name.a=b, name.b=c, list.0=a, list.1=b, null=null}", result.toString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue