From 2e0f128cbcb40dcefb43f87c210135b4449abc95 Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Mon, 28 Mar 2011 15:47:44 +0200 Subject: [PATCH] HHH-5947 Migrate tests to JUnit 4 infra --- .../uniqueconstraint/UniqueConstraintTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintTest.java b/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintTest.java index 74874563a4..7bb4055860 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintTest.java @@ -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 */ -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();