Class JAXBMarshallingTest


  • public class JAXBMarshallingTest
    extends MarshallingTestBase
    This class provides a quick sanity check of the JAXB marshaling of a domain POJOs to/from XML based on JAXB annotation bindings.
    • Constructor Detail

      • JAXBMarshallingTest

        public JAXBMarshallingTest()
    • Method Detail

      • marshal

        protected <T> String marshal​(T object)
                              throws javax.xml.bind.JAXBException
        Specified by:
        marshal in class MarshallingTestBase
        Throws:
        javax.xml.bind.JAXBException
      • unmarshal

        protected <T> T unmarshal​(String string,
                                  Class<T> type)
                           throws javax.xml.bind.JAXBException
        Specified by:
        unmarshal in class MarshallingTestBase
        Throws:
        javax.xml.bind.JAXBException