[arquillian-issues] [JBoss JIRA] (ARQ-1975) Adds ServletContext as Arquillian Resource
Aslak Knutsen (JIRA)
issues at jboss.org
Tue Sep 1 14:14:05 EDT 2015
[ https://issues.jboss.org/browse/ARQ-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aslak Knutsen updated ARQ-1975:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Pushed upstream https://github.com/arquillian/arquillian-core/commit/d1e996420d1c9703f23dcca09199472c878ab9ce
> 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)
More information about the arquillian-issues
mailing list