incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1005251 - /incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
Date Wed, 06 Oct 2010 21:04:10 GMT
Author: mbenson
Date: Wed Oct  6 21:04:09 2010
New Revision: 1005251

URL: http://svn.apache.org/viewvc?rev=1005251&view=rev
Log:
verify that unconstrained field has no PropertyDescriptor

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=1005251&r1=1005250&r2=1005251&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
Wed Oct  6 21:04:09 2010
@@ -423,5 +423,6 @@ public class ValidationTest extends Test
         propertyDescriptor = bookBeanDescriptor.getConstraintsForProperty("author");
         Assert.assertTrue(propertyDescriptor.getConstraintDescriptors().size() == 1);
         Assert.assertTrue(propertyDescriptor.isCascaded());
+        Assert.assertNull(bookBeanDescriptor.getConstraintsForProperty("unconstraintField"));
     }
 }



Mime
View raw message