1 package com.fasterxml.jackson.databind.cfg; 2 3 import com.fasterxml.jackson.databind.*; 4 5 public class DatabindContextTest extends BaseMapTest 6 { 7 private final ObjectMapper MAPPER = sharedMapper(); 8 testDeserializationContext()9 public void testDeserializationContext() throws Exception 10 { 11 DeserializationContext ctxt = MAPPER.getDeserializationContext(); 12 // should be ok to try to resolve `null` 13 assertNull(ctxt.constructType((Class<?>) null)); 14 assertNull(ctxt.constructType((java.lang.reflect.Type) null)); 15 } 16 testSerializationContext()17 public void testSerializationContext() throws Exception 18 { 19 SerializerProvider ctxt = MAPPER.getSerializerProvider(); 20 assertNull(ctxt.constructType(null)); 21 } 22 } 23