[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2860) Allow subclass of BaseSeamTest to provide an alternate MockServletContext implementation

Clint Popetz (JIRA) jira-events at lists.jboss.org
Mon Apr 7 16:56:55 EDT 2008


Allow subclass of BaseSeamTest to provide an alternate MockServletContext implementation
----------------------------------------------------------------------------------------

                 Key: JBSEAM-2860
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2860
             Project: JBoss Seam
          Issue Type: Feature Request
    Affects Versions: 2.1.0.A1
            Reporter: Clint Popetz
         Attachments: ExtendedServletContext.java, mockServletContext.diff

I'm integrating seam into an environment which has a mock servlet context based on servletunit...but BaseSeamTest doesn't provide a hook for using that. This patch provides identical behavior by default, but allows subclasses to provide an alternate servletContext implementation.

Note that BaseSeamTest wants to be able to call getInitParameters, so I've provided a subinterface "ExtendedServletContext," made BaseSeamTest use that interface, and made MockServletContext implement that interface.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list