Hi, I have the same problem with my JUnit test case. The uriInfo variable is null. And I don't understand the solution of Sergey. Could you explain with details the solution please?
My config: The interface IRestService et the implementation RestServiceImpl where uriInfo is initialized by the annotation @Context. And I use JAXRSServerFactoryBean object to start my rest server. Regards, -- View this message in context: http://cxf.547215.n5.nabble.com/Unable-to-inject-context-from-junit-test-case-tp567410p3265454.html Sent from the cxf-user mailing list archive at Nabble.com.
