[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-295) Ability to setup UI components programmatically in SeamTest

Gavin King (JIRA) jira-events at lists.jboss.org
Mon Jun 11 15:23:24 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-295?page=all ]

Gavin King closed JBSEAM-295.
-----------------------------

    Resolution: Done

Added a method to FacesMessages

> Ability to setup UI components programmatically in SeamTest
> -----------------------------------------------------------
>
>                 Key: JBSEAM-295
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-295
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Test Harness
>    Affects Versions: 1.2.1.GA
>            Reporter: Christian Bauer
>         Assigned To: Gavin King
>            Priority: Minor
>             Fix For: 1.3.0.ALPHA
>
>
> I'd like to test for the presence of a FacesMessage for a particular component:
>             FacesMessages.instance().add("verify", "Re-enter your password");
> And in SeamTest subclass:
>                 assert getFacesContext().getMessages(???).hasNext(); // Msg for component
> As I don't have a component tree in my Script(), the add() method didn't assign the message to a component, so the only way I can test this is with getMessages().hasNext(), instead of the more accurate getMessage(???component???).hasNext().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list