Package ejava.examples.ejbwar.inventory
Class JAXBMarshallingTest
- java.lang.Object
-
- ejava.examples.ejbwar.inventory.MarshallingTestBase
-
- ejava.examples.ejbwar.inventory.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 Summary
Constructors Constructor Description JAXBMarshallingTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> String
marshal(T object)
protected <T> T
unmarshal(String string, Class<T> type)
-
Methods inherited from class ejava.examples.ejbwar.inventory.MarshallingTestBase
assertProductEquals, category, product
-
-
-
-
Method Detail
-
marshal
protected <T> String marshal(T object) throws javax.xml.bind.JAXBException
- Specified by:
marshal
in classMarshallingTestBase
- Throws:
javax.xml.bind.JAXBException
-
unmarshal
protected <T> T unmarshal(String string, Class<T> type) throws javax.xml.bind.JAXBException
- Specified by:
unmarshal
in classMarshallingTestBase
- Throws:
javax.xml.bind.JAXBException
-
-