Skip to content

Commit 86f27a5

Browse files
Fixed testAddFilterWithEmptyStringId() (#4232)
1 parent ebe71f8 commit 86f27a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/ser/filter/SimpleFilterProviderTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ public void testAddFilterWithEmptyStringId() throws Exception {
8787

8888
String jsonString = MAPPER.writer(prov).writeValueAsString(bean);
8989

90-
assertEquals(a2q("{'c':null,'d':'D is filtered'}"), jsonString);
90+
Map<String, Object> actualMap = MAPPER.readValue(jsonString, Map.class);
91+
Map<String, Object> expectedMap = new LinkedHashMap<>();
92+
expectedMap.put("c", null);
93+
expectedMap.put("d", "D is filtered");
94+
95+
assertEquals(expectedMap, actualMap);
9196
}
9297

9398
public void testAddingNullFilter2ThrowsException() throws Exception {

0 commit comments

Comments
 (0)