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