Add unit test for [JACKSON-763]
diff --git a/src/test/org/codehaus/jackson/map/deser/TestArrayDeserialization.java b/src/test/org/codehaus/jackson/map/deser/TestArrayDeserialization.java
index 9ceb804..e7a2017 100644
--- a/src/test/org/codehaus/jackson/map/deser/TestArrayDeserialization.java
+++ b/src/test/org/codehaus/jackson/map/deser/TestArrayDeserialization.java
@@ -364,6 +364,16 @@
}
}
+ // [JACKSON-763]
+ public void testByteArraysWith763() throws Exception
+ {
+ String[] input = new String[] { "YQ==", "Yg==", "Yw==" };
+ byte[][] data = new ObjectMapper().convertValue(input, byte[][].class);
+ assertEquals("a", new String(data[0], "US-ASCII"));
+ assertEquals("b", new String(data[1], "US-ASCII"));
+ assertEquals("c", new String(data[2], "US-ASCII"));
+ }
+
public void testShortArray() throws Exception
{
ObjectMapper mapper = new ObjectMapper();