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> Stringmarshal(T object)protected <T> Tunmarshal(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:
marshalin classMarshallingTestBase- Throws:
javax.xml.bind.JAXBException
-
unmarshal
protected <T> T unmarshal(String string, Class<T> type) throws javax.xml.bind.JAXBException
- Specified by:
unmarshalin classMarshallingTestBase- Throws:
javax.xml.bind.JAXBException
-
-