HHH-5947 Migrate tests to JUnit 4 infra

This commit is contained in:
Emmanuel Bernard 2011-03-28 15:47:44 +02:00
parent 93569a6c82
commit 2e0f128cbc
1 changed files with 6 additions and 2 deletions

View File

@ -1,14 +1,17 @@
package org.hibernate.test.annotations.uniqueconstraint;
import org.junit.Test;
import org.hibernate.JDBCException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.test.annotations.TestCase;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import static org.junit.Assert.fail;
/**
* @author Manuel Bernhardt <bernhardt.manuel@gmail.com>
*/
public class UniqueConstraintTest extends TestCase {
public class UniqueConstraintTest extends BaseCoreFunctionalTestCase {
protected Class[] getAnnotatedClasses() {
return new Class[]{
@ -18,6 +21,7 @@ public class UniqueConstraintTest extends TestCase {
};
}
@Test
public void testUniquenessConstraintWithSuperclassProperty() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();