fixed the tests after the latest bean validation updates

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16955 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Hardy Ferentschik 2009-06-26 08:29:41 +00:00
parent d83fc6e17b
commit d30b61a305
1 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,8 @@ public class HibernateTraversableResolverTest extends TestCase {
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 @@ public class HibernateTraversableResolverTest extends TestCase {
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();