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:

       @Inject
       @ApplicationScoped
       private InstanceProducer<ServletContext> servletContextInstanceProducer;
      
       servletContextInstanceProducer.set(servletContext);
      
      

            [ARQ-1975] Adds ServletContext as Arquillian Resource

            Aslak Knutsen added a comment - Pushed upstream https://github.com/arquillian/arquillian-core/commit/d1e996420d1c9703f23dcca09199472c878ab9ce

            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.

            Aslak Knutsen added a comment - 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.

            Yes, I have already talked about this issue with Aslak and we started some code review too, now I have finished the final PR.

            Alex Soto (Inactive) added a comment - Yes, I have already talked about this issue with Aslak and we started some code review too, now I have finished the final PR.

            Hi,
            is this the same feature as this one? https://developer.jboss.org/message/935605
            If so, there is already a jira for that: ARQ-540

            Matous Jobanek added a comment - Hi, is this the same feature as this one? https://developer.jboss.org/message/935605 If so, there is already a jira for that: ARQ-540

              asotobu@gmail.com Alex Soto (Inactive)
              asotobu@gmail.com Alex Soto (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: