We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e18de06 + 2ce340f commit 4176fbaCopy full SHA for 4176fba
1 file changed
perseo-main/src/test/java/com/telefonica/iot/perseo/UtilsTest.java
@@ -141,10 +141,12 @@ public void testEvent2JSONObject() {
141
HashMap<String, Object> m = new HashMap();
142
m.put("one", "1");
143
m.put("two", 2);
144
+ m.put("nulo", null);
145
EventBean event = new EventBeanMock(m);
146
JSONObject result = Utils.Event2JSONObject(event);
147
assertEquals(result.get("one"), "1");
148
assertEquals(result.get("two"), 2);
149
+ assertEquals(result.get("nulo"), null);
150
}
151
152
/**
0 commit comments