From d59a4f060f8954c55e340d9fc08aa084288afc1f Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Wed, 6 Feb 2019 19:37:59 -0800 Subject: [PATCH] Add a test wrt #74, but only for 2.10 since databind only supports deser alias there --- .../fasterxml/jackson/module/mrbean/TestJDKTypes.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mrbean/src/test/java/com/fasterxml/jackson/module/mrbean/TestJDKTypes.java b/mrbean/src/test/java/com/fasterxml/jackson/module/mrbean/TestJDKTypes.java index 2a83d84a..5c4537d2 100644 --- a/mrbean/src/test/java/com/fasterxml/jackson/module/mrbean/TestJDKTypes.java +++ b/mrbean/src/test/java/com/fasterxml/jackson/module/mrbean/TestJDKTypes.java @@ -1,5 +1,6 @@ package com.fasterxml.jackson.module.mrbean; +import java.io.Serializable; import java.util.*; import com.fasterxml.jackson.databind.ObjectMapper; @@ -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); + } }