users@jersey.java.net

[Jersey] Jersey Test Framework, InMemory and _at_Context injection

From: Alexis THOMAS <fr.alexisthomas_at_gmail.com>
Date: Wed, 9 Nov 2011 14:58:37 +0100

Hello,

nice to be able to use brand new 1.10 version of Jersey ;)

I'm facing an already discussed problem while dealing with Test Framework
InMemory and a @Context annotation inside a Jersey WebService
all right when using the webservice, and the "@Context HttpServletRequest"
from my method signature to get the remoteAddr
but not so good when running tests

Problem was mentionned here earlier in 2011 :
http://jersey.576304.n2.nabble.com/Servlet-context-injection-fail-while-using-jersey-test-framework-td6484324.html
"Have you added the support for these injections?"
-> how to get rid of the problem? how to add the support for these
injections? how to inject them?

Thanks in advance,

Alexis THOMAS