incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1002280 - /incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
Date Tue, 28 Sep 2010 17:28:41 GMT
Author: mbenson
Date: Tue Sep 28 17:28:41 2010
New Revision: 1002280

URL: http://svn.apache.org/viewvc?rev=1002280&view=rev
Log:
helper comments

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java?rev=1002280&r1=1002279&r2=1002280&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
Tue Sep 28 17:28:41 2010
@@ -231,13 +231,13 @@ public class ValidationTest extends Test
     }
 
     public void testPropertyPathRecursive() {
-        RecursiveFoo foo1 = new RecursiveFoo();
+        RecursiveFoo foo1 = new RecursiveFoo(); //root
         RecursiveFoo foo11 = new RecursiveFoo();
-        foo1.getFoos().add(foo11);
+        foo1.getFoos().add(foo11); //foos[0]
         RecursiveFoo foo12 = new RecursiveFoo();
-        foo1.getFoos().add(foo12);
+        foo1.getFoos().add(foo12); //foos[1]
         RecursiveFoo foo2 = new RecursiveFoo();
-        foo11.getFoos().add(foo2);
+        foo11.getFoos().add(foo2); //foos[0].foos[0]
 
         Set<ConstraintViolation<RecursiveFoo>> constraints = validator.validate(foo1);
         assertPropertyPath("foos[0].foos[0].foos", constraints);



Mime
View raw message