users@jersey.java.net

Re: [Jersey] Problem using the JerseyTest class

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 15 Jul 2009 15:19:43 +0200

On Jul 15, 2009, at 3:12 PM, Naresh wrote:
>>
> Good point. Not all users would want to test wit EmbeddedGlassFish,
> they can save some download time by doing so.
> I have documented it in the blog entry's comments section. Thanks
> Tarjei.
>

For the next release of Jersey i think we should include a section in
the Jersey users guide for the test framework. This basically means
supplying some docbook, see the JSON module for how it is done.

Blogs are great but they have a tendency of getting out of date plus
it is not always obvious that they provide documentation.

Paul.

> -Naresh
>
>>
>> Again, thanks for helping.
>> Tarjei
>>
>>>
>>> Thanks,
>>> Naresh
>>>>
>>>> Now I got another problem.
>>>>
>>>> I use the Webresource to do a request like this:
>>>> SourceView sv = new SourceView();
>>>> .. set some sv attributes ..
>>>> SourceView sv2 = webResource.path("source").put(SourceView.class,
>>>> sv);
>>>>
>>>> and according to the logging, a request containing the correct
>>>> XML is
>>>> generated and PUT to the server, but in my method I get a null
>>>> instead
>>>> of the expected object.
>>>>
>>>> Any tips to why?
>>>>
>>>> The method signature looks like this:
>>>> @PUT
>>>> @Path("/")
>>>> @Consumes({
>>>> "application/xml",
>>>> "text/xml"})
>>>> public SourceView create(SourceView s) {
>>>> ...
>>>> }
>>>>
>>>>
>>>>
>>>> Kind regards,
>>>> Tarjei
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>