Updated the test due to HV-163 fix in Validator

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16815 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Hardy Ferentschik 2009-06-17 09:13:53 +00:00
parent 5b5042c85b
commit 2d457208c0
1 changed files with 15 additions and 16 deletions

View File

@ -1,13 +1,13 @@
package org.hibernate.test.annotations.beanvalidation;
import java.math.BigDecimal;
import javax.validation.ConstraintViolationException;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import org.hibernate.test.annotations.TestCase;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.test.annotations.TestCase;
/**
* @author Emmanuel Bernard
@ -131,8 +131,7 @@ public class HibernateTraversableResolverTest extends TestCase {
assertEquals( 1, e.getConstraintViolations().size() );
final ConstraintViolation constraintViolation = e.getConstraintViolations().iterator().next();
assertEquals( Screen.class, constraintViolation.getRootBeanClass() );
// connectors[0] should be connectors expect failure when bug is fixed in HV
assertEquals( "connectors[0].number", constraintViolation.getPropertyPath() );
assertEquals( "connectors[].number", constraintViolation.getPropertyPath() );
}
tx.rollback();