[jboss-cvs] jboss-seam/examples/registration/src/org/jboss/seam/example/registration/test ...
Gavin King
gavin.king at jboss.com
Thu Oct 26 17:16:28 EDT 2006
User: gavin
Date: 06/10/26 17:16:28
Modified: examples/registration/src/org/jboss/seam/example/registration/test
RegisterTest.java
Log:
test validation
Revision Changes Path
1.9 +17 -1 jboss-seam/examples/registration/src/org/jboss/seam/example/registration/test/RegisterTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: RegisterTest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/registration/src/org/jboss/seam/example/registration/test/RegisterTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- RegisterTest.java 26 Oct 2006 18:34:41 -0000 1.8
+++ RegisterTest.java 26 Oct 2006 21:16:28 -0000 1.9
@@ -1,4 +1,4 @@
-//$Id: RegisterTest.java,v 1.8 2006/10/26 18:34:41 gavin Exp $
+//$Id: RegisterTest.java,v 1.9 2006/10/26 21:16:28 gavin Exp $
package org.jboss.seam.example.registration.test;
import javax.faces.context.FacesContext;
@@ -16,6 +16,14 @@
new FacesRequest("/register.jspx") {
@Override
+ protected void processValidations() throws Exception
+ {
+ validateValue("#{user.username}", "1ovthafew");
+ validateValue("#{user.name}", "Gavin King");
+ validateValue("#{user.password}", "secret");
+ }
+
+ @Override
protected void updateModelValues() throws Exception
{
setValue("#{user.username}", "1ovthafew");
@@ -55,6 +63,14 @@
new FacesRequest("/register.jspx") {
@Override
+ protected void processValidations() throws Exception
+ {
+ validateValue("#{user.username}", "1ovthafew");
+ validateValue("#{user.name}", "Gavin A King");
+ validateValue("#{user.password}", "password");
+ }
+
+ @Override
protected void updateModelValues() throws Exception
{
setValue("#{user.username}", "1ovthafew");
More information about the jboss-cvs-commits
mailing list