[jboss-cvs] jboss-seam/doc/reference/en/modules ...

Gavin King gavin.king at jboss.com
Fri Oct 27 10:04:13 EDT 2006


  User: gavin   
  Date: 06/10/27 10:04:13

  Modified:    doc/reference/en/modules  testing.xml
  Log:
  minor
  
  Revision  Changes    Path
  1.11      +11 -2     jboss-seam/doc/reference/en/modules/testing.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: testing.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/testing.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- testing.xml	26 Oct 2006 19:32:13 -0000	1.10
  +++ testing.xml	27 Oct 2006 14:04:13 -0000	1.11
  @@ -192,11 +192,20 @@
         new FacesRequest() {
   
            @Override
  +         protected void processValidations() throws Exception
  +         {
  +            validateValue("#{user.username}", "1ovthafew");
  +            validateValue("#{user.name}", "Gavin King");
  +            validateValue("#{user.password}", "secret");
  +            assert !isValidationFailure();
  +         }
  +         
  +         @Override
            protected void updateModelValues() throws Exception
            {
               setValue("#{user.username}", "1ovthafew");
  -            setValue("#{user.password}", "secret");
               setValue("#{user.name}", "Gavin King");
  +            setValue("#{user.password}", "secret");
            }
   
            @Override
  @@ -209,8 +218,8 @@
            protected void renderResponse()
            {
               assert getValue("#{user.username}").equals("1ovthafew");
  -            assert getValue("#{user.password}").equals("secret");
               assert getValue("#{user.name}").equals("Gavin King");
  +            assert getValue("#{user.password}").equals("secret");
            }
            
         }.run();
  
  
  



More information about the jboss-cvs-commits mailing list