> -----Original Message-----
> From: Johan Edstrom [mailto:[email protected]] On Behalf Of Johan
> Edstrom
> Sent: Wednesday, December 16, 2009 6:54 PM
> To: [email protected]
> Subject: Re: Practical to write unit tests that can simulate the
> container and verify XML/JSON data?
> 
> It is quite practical for integration testing, I do it quite often on
> the SOAP side.
> 
> On Dec 16, 2009, at 7:18 PM, Arulazi Dhesiaseelan wrote:
> 
> > Yes, it is practical and I have done it before.
> >
> > You could use the embedded Jetty server to deploy your resources
> (start your
> > server in your setup()) and then you can invoke the resources in the
> test
> > and then finally dispose the server in teardown.

Ok, then I guess I'll add to my question.

Can either of you map out more details about how I would do this?  Any
links to concise descriptions of pieces of this would be fine also.

> > On Wed, Dec 16, 2009 at 7:01 PM, KARR, DAVID (ATTCINW)
> <[email protected]>wrote:
> >
> >> Is it practical to write unit tests that can simulate the
container,
> >> call the jax-rs server with a REST query, and verify the XML/JSON
> >> response that it gets?  This would all be in a standalone
container.
> >>
> >
> >
> >
> > --
> > http://aruld.info
> 
> Johan Edstrom
> 
> [email protected]
> 
> They that can give up essential liberty to purchase a little temporary
> safety, deserve neither liberty nor safety.
> 
> Benjamin Franklin, Historical Review of Pennsylvania, 1759
> 
> 
> 
> 

Reply via email to