0 Replies Latest reply on May 18, 2007 10:05 AM by denis.diggin

    Testing redirection

    denis.diggin

      In integration tests, is it possible to determine to which view a redirection took place?

      <!-- After login go to home page -->
       <page view-id="/login.xhtml">
       <navigation>
       <redirect view-id="/home.xhtml" />
       </navigation>
       </page>
      


      Test..

      new FacesRequest("/login.xhtml") {
       protected void afterRequest() {
       // Where have I been redirected to?
       };
      }
      


      If I use "render" then getViewId() will do the trick.