fix loop in loading settings from map

This commit is contained in:
Jörg Prante 2019-11-22 14:57:36 +01:00
parent 74a3a2d75e
commit 272dff4b63

View file

@ -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());
}
}