Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1975

Adds ServletContext as Arquillian Resource

XMLWordPrintable

      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);
      
      

              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: