Skip to content

Commit

Permalink
Fix /configprops tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Nov 19, 2014
1 parent 6ad626d commit 0757d24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void testEmptyMapIsNotAdded() throws Exception {
Map<String, Object> map = (Map<String, Object>) nestedProperties
.get("properties");
assertNotNull(map);
assertEquals(2, map.size());
assertEquals(3, map.size());
assertEquals(null, (map.get("map")));
}

Expand Down Expand Up @@ -206,7 +206,8 @@ public void testMapWithMetadata() throws Exception {
Map<String, Object> map = (Map<String, Object>) nestedProperties
.get("properties");
assertNotNull(map);
assertEquals(2, map.size());
// Only one property is mapped in metadata so the others are ignored
assertEquals(1, map.size());
assertEquals("foo", ((Map<String, Object>) map.get("map")).get("name"));
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{"properties": [
{
"name": "bar.name",
"type": "java.util.Map",
"dataType": "java.lang.String"
},
{
"name": "spam.map.name",
"type": "java.util.Map",
"dataType": "java.lang.String"
} ]}

0 comments on commit 0757d24

Please sign in to comment.