Skip to content

Commit

Permalink
Merge pull request #202 from telefonicaid/fix/allow_null_values_json_…
Browse files Browse the repository at this point in the history
…object

add test case about use null value in an event
  • Loading branch information
mrutid authored Apr 26, 2022
2 parents e18de06 + 2ce340f commit 4176fba
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,12 @@ public void testEvent2JSONObject() {
HashMap<String, Object> m = new HashMap();
m.put("one", "1");
m.put("two", 2);
m.put("nulo", null);
EventBean event = new EventBeanMock(m);
JSONObject result = Utils.Event2JSONObject(event);
assertEquals(result.get("one"), "1");
assertEquals(result.get("two"), 2);
assertEquals(result.get("nulo"), null);
}

/**
Expand Down

0 comments on commit 4176fba

Please sign in to comment.