users@jersey.java.net

Re: [Jersey] creating UriInfo in unittests

From: Beatriz Nombela <beaotx_at_gmail.com>
Date: Wed, 28 Apr 2010 22:14:47 +0200

Hi,

In my unit tests I use to mock that kind of objects injected in
runtime, like UriInfo or SecurityContext. I simulate them with mockito
framework (http://mockito.org/).

hth
Best regards.

On Wed, Apr 28, 2010 at 9:52 PM, tarjei <tarjei_at_nu.no> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi, small question today :)
>
> How do I create a UriInfo object in a unittest?
>
>
> Regards,
> Tarjei Huse
> Mobil: 920 63 413
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iD8DBQFL2JHjYVRKCnSvzfIRAiMjAKC294aHVfBGiIs3803Vlt8TMzF3FACfRUfz
> 5J1fOGyEBWR+rHglLZOWXt4=
> =8COM
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>



-- 
Beatriz Nombela Escobar
beaotx_at_gmail.com