Author: hardy.ferentschik
Date: 2009-06-26 04:29:41 -0400 (Fri, 26 Jun 2009)
New Revision: 16955
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/beanvalidation/HibernateTraversableResolverTest.java
Log:
fixed the tests after the latest bean validation updates
Modified:
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/beanvalidation/HibernateTraversableResolverTest.java
===================================================================
---
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/beanvalidation/HibernateTraversableResolverTest.java 2009-06-26
08:23:23 UTC (rev 16954)
+++
core/trunk/annotations/src/test/java/org/hibernate/test/annotations/beanvalidation/HibernateTraversableResolverTest.java 2009-06-26
08:29:41 UTC (rev 16955)
@@ -52,7 +52,8 @@
assertEquals( 1, e.getConstraintViolations().size() );
ConstraintViolation<?> cv = e.getConstraintViolations().iterator().next();
assertEquals( Screen.class, cv.getRootBeanClass() );
- assertEquals( "stopButton.name", cv.getPropertyPath() );
+ // toString works since hibernate validator's Path implementation works
accordingly. Should do a Path comparison though
+ assertEquals( "stopButton.name", cv.getPropertyPath().toString() );
}
tx.rollback();
@@ -131,7 +132,8 @@
assertEquals( 1, e.getConstraintViolations().size() );
final ConstraintViolation constraintViolation =
e.getConstraintViolations().iterator().next();
assertEquals( Screen.class, constraintViolation.getRootBeanClass() );
- assertEquals( "connectors[].number", constraintViolation.getPropertyPath()
);
+ // toString works since hibernate validator's Path implementation works
accordingly. Should do a Path comparison though
+ assertEquals( "connectors[].number",
constraintViolation.getPropertyPath().toString() );
}
tx.rollback();
Show replies by date