[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3978) Implement MockNavigationHandler#handleNavigation() for SeamTest

Dan Allen (JIRA) jira-events at lists.jboss.org
Fri Feb 27 17:29:44 EST 2009


Implement MockNavigationHandler#handleNavigation() for SeamTest
---------------------------------------------------------------

                 Key: JBSEAM-3978
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3978
             Project: Seam
          Issue Type: Feature Request
          Components: Core
    Affects Versions: 2.1.1.GA
            Reporter: Dan Allen


Provide an implementation for the MockNavigationHandler#handleNavigation() so that it is possible to verify that navigation rules fired from a SeamTest.

new FacesRequest("/book.xhtml", id) {
    ...
    @Override
    protected void invokeApplication()
    {
        invokeAction("#{hotelBooking.setBookingDetails}");
    }
    @Override
    protected void renderResponse()
    {
        assert getRenderedViewId().equals("/confirm.xhtml");
        assert Manager.instance().isLongRunningConversation();
    }
}.run();

Obviously there are still going to be limitations. The focus needs to be on covering 80% of the cases where you just need to be sure that the navigation matched. Intricate chaining that follows an action likely won't be supported.

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