]
Norman Richards closed JBSEAM-3957.
-----------------------------------
Resolution: Cannot Reproduce Bug
Please reopen if you can provide an example to reproduce. Thanks!
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
Assignee: Norman Richards
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: