[
https://issues.jboss.org/browse/ARQ-1975?page=com.atlassian.jira.plugin.s...
]
Aslak Knutsen commented on ARQ-1975:
------------------------------------
[~mjobanek] This is a separate issue. In ARQ-540 we want to support injecting
@ArquillianResource URL in container. Currently it's only supported on the client
side. That can be useful to get the URL of another deployment context. This issue is to
support @ArquillianResource ServletContext, which would be the ServletContext used/created
by the ServletTestRunner and the in container test is running within.
Adds ServletContext as Arquillian Resource
------------------------------------------
Key: ARQ-1975
URL:
https://issues.jboss.org/browse/ARQ-1975
Project: Arquillian
Issue Type: Feature Request
Components: Test Protocol SPIs and Implementation
Reporter: Alex Soto
Assignee: Alex Soto
Fix For: 1.1.9.Final
Adds ServletContext as Arquillian Resource so it can be used in the tests. In case of
in-container tests, ServletContxt used is the one provided by the Servlet protocol.
In case of client test, it only works in case of embedded containers and they are the
responsible of provide the instance by producing the instance:
{code:java}
@Inject
@ApplicationScoped
private InstanceProducer<ServletContext> servletContextInstanceProducer;
servletContextInstanceProducer.set(servletContext);
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)