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

Maximiliano Carrizo (JIRA) jira-events at lists.jboss.org
Mon Feb 16 07:02:44 EST 2009


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