[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2860) Allow subclass of BaseSeamTest to provide an alternate MockServletContext implementation
Pete Muir (JIRA)
jira-events at lists.jboss.org
Thu Jul 31 11:30:26 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir closed JBSEAM-2860.
-----------------------------
Fix Version/s: 2.1.0.BETA1
(was: The future)
Resolution: Done
Assignee: Pete Muir
I implemented this slightly differently - the ServletContext creation is delegated to
protected ServletContext createServletContext(), which in turn calls initServletContext.
> Allow subclass of BaseSeamTest to provide an alternate MockServletContext implementation
> ----------------------------------------------------------------------------------------
>
> Key: JBSEAM-2860
> URL: https://jira.jboss.org/jira/browse/JBSEAM-2860
> Project: Seam
> Issue Type: Feature Request
> Affects Versions: 2.1.0.A1
> Reporter: Clint Popetz
> Assignee: Pete Muir
> Fix For: 2.1.0.BETA1
>
> 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list