users@jersey.java.net

[Jersey] JAXB to JSON in a Junit

From: Alejandro Calbazana <acalbazana_at_gmail.com>
Date: Mon, 27 Jun 2011 11:07:52 -0400

Hi,

Simple question...

I'd like to verify serialization of JAXB annotated classes to JSON in
a unit test as part of my service's test suite. Is this possible? It
looks like Jersey facilitates the processing of JAXB to JSON, but I
am not sure how to replicate this path in a junit to ensure that the
serialization that Jersey will apply will be what I expect.

Any help on this is appreciated.

Thanks,

Alejandro