struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: rev 51824 - struts/trunk/src/test/org/apache/struts/validator
Date Sun, 03 Oct 2004 05:49:55 GMT
Author: niallp
Date: Sat Oct  2 22:49:55 2004
New Revision: 51824

Modified:
   struts/trunk/src/test/org/apache/struts/validator/TestValidWhen.java
Log:
Add validwhen test to compare two Strings containing numbers

Modified: struts/trunk/src/test/org/apache/struts/validator/TestValidWhen.java
==============================================================================
--- struts/trunk/src/test/org/apache/struts/validator/TestValidWhen.java	(original)
+++ struts/trunk/src/test/org/apache/struts/validator/TestValidWhen.java	Sat Oct  2 22:49:55
2004
@@ -1,7 +1,7 @@
 /*
  * $Header: /home/cvs/jakarta-struts/src/test/org/apache/struts/validator/TestValidWhen.java,v
1.1 2004/09/03 18:12:26 niallp Exp $
  * $Revision: 1.1 $
- * $Date: 2004/09/03 18:12:26 $
+ * $Date$
  *
  * Copyright 2004 The Apache Software Foundation.
  * 
@@ -176,6 +176,11 @@
 
         // Octal
         doParse("(integerValue1 == 0173)", testBean , 0, "integerValue1", true);
+
+        // Test 'String' numbers
+        PojoBean stringBean = new PojoBean("11", "2");
+        doParse("(stringValue1 > stringValue2)", stringBean , 0, "stringValue1", true);
+        doParse("(stringValue1 < stringValue2)", stringBean , 0, "stringValue1", false);
 
     }
     

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message