[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3957) FacesRequest in SeamTest doesnt work with different paths than root

Norman Richards (JIRA) jira-events at lists.jboss.org
Thu Feb 19 14:48:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-3957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12453343#action_12453343 ] 

Norman Richards commented on JBSEAM-3957:
-----------------------------------------

I'm not seeing a problem.  I can correctly execute tests using view ids with complex paths with all phases being executed.  Maybe this is something specific to your environment?   Can you attach a minimal self-contained test case that demonstrates the issue?  

> FacesRequest in SeamTest doesnt work with different paths than root
> -------------------------------------------------------------------
>
>                 Key: JBSEAM-3957
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3957
>             Project: Seam
>          Issue Type: Bug
>          Components: JSF Integration
>    Affects Versions: 2.1.1.GA
>         Environment: Kubuntu, Seam 2.1.1 GA, 1.2_04
>            Reporter: Maximiliano Carrizo
>            Priority: Minor
>
> Im developing a Use Case with SeamTest.
> This example works great:
> @Test
> public void testCreateChiefProfileEmptyFields() throws Exception{
>     new FacesRequest("/createChiefProfile.xhtml") {
>             .....
>     }
> }
> This code doesnt work ( doesnt call invokeApplication, renderResponse, etc ), and approves test because doesnt invoke any methods:
> @Test
> public void testCreateChiefProfileEmptyFields() throws Exception{
>     new FacesRequest("/pages/publicArea/profiles/chiefs/createChiefProfile.xhtml") {
>             .....
>     }
> }
> Of course, I've verified several times:
> 1) /pages/publicArea/profiles/chiefs/createChiefProfile.xhtml is correct
> 2) Both files are exactly the same
> Comment:
> Method skipToRender in AbstractSeamTest returns different values in both cases:
>   private boolean skipToRender()
>       {
>          return FacesContext.getCurrentInstance().getRenderResponse() || FacesContext.getCurrentInstance().getResponseComplete();
>       }
> With "/createChiefProfile.xhtml" , FacesContext.getCurrentInstance().getResponseComplete(); returns false, and with
> /pages/publicArea/profiles/chiefs/createChiefProfile.xhtm returns true.
> You can test this failure moving some page of Seam Test from web content root directory to another location

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