Hi,
We manage to integration test our application with a succession of new
FacesRequest().run();
We would like to add some navigation test to it.
If we have:
| <pages login-view-id="/login.xhtml">
| <page view-id="/*" login-required="true">
| <navigation>
| <render view-id="foo.xhtml"/>
| </navigation>
| </page>
| </pages>
|
We would expect this to pass:
| new NonFacesRequest("/foo.xhtml") {
| @Override
| protected void renderResponse() throws Exception {
| assert "login.xhtml".equals(getRenderedViewId());
| }
|
| }.run();
|
We try few different way around it but couldn't manage to get it to work.
Is there a way using seam 1.2.1?
alex
Note: when we test inside container entering foo.xhtml inside the browser it sends us to
the login page, our configuration is ok. We just want to know if we can test redirection
using the SeamTest.* framework.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107190#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...