You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bval.apache.org by mb...@apache.org on 2010/10/06 23:04:10 UTC
svn commit: r1005251 -
/incubator/bval/sandbox/lang3-work/bval-jsr303/src/test/java/org/apache/bval/jsr303/ValidationTest.java
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"));
}
}