Package ejava.examples.ejbwar.inventory
Class JSONBMarshallingTest
- java.lang.Object
-
- ejava.examples.ejbwar.inventory.MarshallingTestBase
-
- ejava.examples.ejbwar.inventory.JSONBMarshallingTest
-
public class JSONBMarshallingTest extends MarshallingTestBase
This class provides a quick sanity check of the JSON marshaling of a domain POJOs to/from JSON based on JSON-B annotation bindings.
-
-
Constructor Summary
Constructors Constructor Description JSONBMarshallingTest()
-
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 Exception
- Specified by:
marshal
in classMarshallingTestBase
- Throws:
Exception
-
-