Author: hardy.ferentschik
Date: 2009-03-07 03:33:16 -0500 (Sat, 07 Mar 2009)
New Revision: 16105
Modified:
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/BeanDescriptorImplTest.java
Log:
HV-95, HV-84 Added some test.
Modified:
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/BeanDescriptorImplTest.java
===================================================================
---
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/BeanDescriptorImplTest.java 2009-03-07
08:25:39 UTC (rev 16104)
+++
validator/trunk/hibernate-validator/src/test/java/org/hibernate/validation/engine/BeanDescriptorImplTest.java 2009-03-07
08:33:16 UTC (rev 16105)
@@ -1,4 +1,4 @@
-// $Id:$
+// $Id$
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
@@ -77,6 +77,9 @@
assertNull( "There should be no descriptor",
beanDescriptor.getConstraintsForProperty( "foobar" ) );
+ // TODO Is this corect or should we get a IllegalArgumentException
+ assertNull( "There should be no descriptor",
beanDescriptor.getConstraintsForProperty( null ) );
+
beanDescriptor = validator.getConstraintsForClass( Customer.class );
propertyDescriptor = beanDescriptor.getConstraintsForProperty( "orderList"
);
assertEquals(
Show replies by date