Search in sources :

Example 1 with CoreXMLDeserializers

use of com.fasterxml.jackson.databind.ext.CoreXMLDeserializers in project jackson-databind by FasterXML.

the class TestCoreXMLTypes method testDeserializerLoading.

/*
    /**********************************************************
    /* Deserializer tests
    /**********************************************************
     */
// First things first: must be able to load the deserializers...
public void testDeserializerLoading() {
    CoreXMLDeserializers sers = new CoreXMLDeserializers();
    TypeFactory f = TypeFactory.defaultInstance();
    sers.findBeanDeserializer(f.constructType(Duration.class), null, null);
    sers.findBeanDeserializer(f.constructType(XMLGregorianCalendar.class), null, null);
    sers.findBeanDeserializer(f.constructType(QName.class), null, null);
}
Also used : CoreXMLDeserializers(com.fasterxml.jackson.databind.ext.CoreXMLDeserializers) QName(javax.xml.namespace.QName) TypeFactory(com.fasterxml.jackson.databind.type.TypeFactory)

Aggregations

CoreXMLDeserializers (com.fasterxml.jackson.databind.ext.CoreXMLDeserializers)1 TypeFactory (com.fasterxml.jackson.databind.type.TypeFactory)1 QName (javax.xml.namespace.QName)1