Class JacksonTest

    • Field Detail

      • logger

        private org.slf4j.Logger logger
      • mapper

        com.fasterxml.jackson.databind.ObjectMapper mapper
    • Constructor Detail

      • JacksonTest

        public JacksonTest()
    • Method Detail

      • marshal

        protected <T> String marshal​(T object)
                              throws com.fasterxml.jackson.core.JsonGenerationException,
                                     com.fasterxml.jackson.databind.JsonMappingException,
                                     IOException
        Specified by:
        marshal in class MarshallingTest
        Throws:
        com.fasterxml.jackson.core.JsonGenerationException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException
      • demarshal

        protected <T> T demarshal​(Class<T> type,
                                  String buffer)
                           throws com.fasterxml.jackson.core.JsonParseException,
                                  com.fasterxml.jackson.databind.JsonMappingException,
                                  IOException
        Specified by:
        demarshal in class MarshallingTest
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException