Skip to content

Commit 2ce340f

Browse files
committed
add test case
1 parent cb75fb8 commit 2ce340f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

perseo-main/src/test/java/com/telefonica/iot/perseo/UtilsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,12 @@ public void testEvent2JSONObject() {
141141
HashMap<String, Object> m = new HashMap();
142142
m.put("one", "1");
143143
m.put("two", 2);
144+
m.put("nulo", null);
144145
EventBean event = new EventBeanMock(m);
145146
JSONObject result = Utils.Event2JSONObject(event);
146147
assertEquals(result.get("one"), "1");
147148
assertEquals(result.get("two"), 2);
149+
assertEquals(result.get("nulo"), null);
148150
}
149151

150152
/**

0 commit comments

Comments
 (0)