HHH-8026 corrected test
This commit is contained in:
parent
f7363509bd
commit
fa804c1577
|
@ -14,6 +14,7 @@ import javax.persistence.UniqueConstraint;
|
||||||
import org.hibernate.JDBCException;
|
import org.hibernate.JDBCException;
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.mapping.UniqueKey;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -85,8 +86,9 @@ public class UniqueConstraintTest extends BaseCoreFunctionalTestCase {
|
||||||
fail( "Could not find the expected tables." );
|
fail( "Could not find the expected tables." );
|
||||||
}
|
}
|
||||||
|
|
||||||
assertFalse( tableA.getUniqueKeyIterator().next().getName().equals(
|
UniqueKey ukA = (UniqueKey) tableA.getUniqueKeyIterator().next();
|
||||||
tableB.getUniqueKeyIterator().next().getName() ) );
|
UniqueKey ukB = (UniqueKey) tableB.getUniqueKeyIterator().next();
|
||||||
|
assertFalse( ukA.getName().equals( ukB.getName() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
|
Loading…
Reference in New Issue