Re: [Resteasy-users] Unit Testing Exception Mappers

2013-08-13 Thread Bill Burke
You're better off using the ResteasyDeployment api. This allows you to set up a ton of different options programmatically. On 8/13/2013 11:05 AM, Adam Hotz wrote: > Hi > Actually I found the registerProvider factory to do what I wanted. > > Regards, > Adam > > > On Fri, Aug 9, 2013 at 11:14 AM,

Re: [Resteasy-users] Unit Testing Exception Mappers

2013-08-13 Thread Adam Hotz
Hi Actually I found the registerProvider factory to do what I wanted. Regards, Adam On Fri, Aug 9, 2013 at 11:14 AM, Bill Burke wrote: > Create a a ResteasyDeployment, add necessary components to it, call > start() get the dispatch, create the mocks. > > On 8/9/2013 10:51 AM, Adam Hotz wrote:

Re: [Resteasy-users] Unit Testing Exception Mappers

2013-08-09 Thread Bill Burke
Create a a ResteasyDeployment, add necessary components to it, call start() get the dispatch, create the mocks. On 8/9/2013 10:51 AM, Adam Hotz wrote: > Hi > > I'm using RestEasy to implement a web service. I was previously using > the resteasy mock objects to mock requests and also to test my cu

[Resteasy-users] Unit Testing Exception Mappers

2013-08-09 Thread Adam Hotz
Hi I'm using RestEasy to implement a web service. I was previously using the resteasy mock objects to mock requests and also to test my custom exception mappers. I was testing the mappers by adding them to a mock dispatcher as suggested by the answer to this stack overflow question: http://stackov