2 Replies Latest reply on Mar 31, 2009 9:08 AM by Gerry Fisher

    SeamTest-TestNG - an example of applyRequestValues() usage

    Gerry Fisher Newbie

      Has any forum member actually used applyRequestValues() method because I have yet to see an example of its use in the various Seam References or online?

      The interaction I wish to test is fairly basic:

        <title>User Login</title>
               <td><h:inputText value="#{user.username}"/></td>
               <td><h:inputSecret value="#{user.password}"/></td>
           <h:commandButton type="submit" value="Login" action="#{Login.login}"/>

      I would like to see an example of how the JSF Apply Request Values phase is handled in a test case.

      new FacesRequest() {
      Override to implement the interactions between the JSF page and your
           components that occurs during the apply request values phase.
          protected void applyRequestValues() {