Skip to content

Commit

Permalink
Add a test wrt FasterXML#74, but only for 2.10 since databind only su…
Browse files Browse the repository at this point in the history
…pports deser alias there
  • Loading branch information
cowtowncoder committed Feb 7, 2019
1 parent c19e363 commit d59a4f0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.fasterxml.jackson.module.mrbean;

import java.io.Serializable;
import java.util.*;

import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -53,4 +54,12 @@ public void testStringLike() throws Exception
CharSequence seq = MAPPER.readValue(quote("abc"), CharSequence.class);
assertEquals("abc", (String) seq);
}

// [modules-base#74]: more types to skip
public void testSerializable() throws Exception
{
// Serializable value = MAPPER.readValue(quote("abc"), Serializable.class);
Serializable value = new ObjectMapper().readValue(quote("abc"), Serializable.class);
assertEquals("abc", (String) value);
}
}

0 comments on commit d59a4f0

Please sign in to comment.