Skip to content

Commit

Permalink
... add basic test for FasterXML#2755 (can not easily test problem, b…
Browse files Browse the repository at this point in the history
…ut can verify copying)
  • Loading branch information
cowtowncoder committed Jun 12, 2020
1 parent 97ed5c9 commit 25c4274
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ public void testCopy() throws Exception
assertFalse(m2.isEnabled(DeserializationFeature.UNWRAP_ROOT_VALUE));

// // Also, underlying JsonFactory instances should be distinct

assertNotSame(m.getFactory(), m2.getFactory());

// [databind#2755]: also need to copy this:
assertNotSame(m.getSubtypeResolver(), m2.getSubtypeResolver());

// [databind#122]: Need to ensure mix-ins are not shared
assertEquals(0, m.getSerializationConfig().mixInCount());
assertEquals(0, m2.getSerializationConfig().mixInCount());
Expand Down

0 comments on commit 25c4274

Please sign in to comment.