HHH-8026 corrected test

This commit is contained in:
Brett Meyer 2013-02-27 15:34:59 -05:00
parent f7363509bd
commit fa804c1577
1 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ import javax.persistence.UniqueConstraint;
import org.hibernate.JDBCException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.mapping.UniqueKey;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import org.junit.Test;
@ -85,8 +86,9 @@ public class UniqueConstraintTest extends BaseCoreFunctionalTestCase {
fail( "Could not find the expected tables." );
}
assertFalse( tableA.getUniqueKeyIterator().next().getName().equals(
tableB.getUniqueKeyIterator().next().getName() ) );
UniqueKey ukA = (UniqueKey) tableA.getUniqueKeyIterator().next();
UniqueKey ukB = (UniqueKey) tableB.getUniqueKeyIterator().next();
assertFalse( ukA.getName().equals( ukB.getName() ) );
}
@Entity