[jboss-jira] [JBoss JIRA] Commented: (JBSEAM-295) Ability to setup UI components programmatically in SeamTest

Gavin King (JIRA) jira-events at jboss.com
Wed Jul 12 18:59:11 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBSEAM-295?page=comments#action_12339470 ] 
            
Gavin King commented on JBSEAM-295:
-----------------------------------

Agreed, this would be extremely useful....

Not quite sure how to do it though....

> 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: Core, JSF
>    Affects Versions: 1.0.1
>            Reporter: Christian Bauer
>            Priority: Minor
>
> 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 jboss-jira mailing list