diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/MultipleAuditParentsTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/MultipleAuditParentsTest.java index 369133496d..f768d77d4a 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/MultipleAuditParentsTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/MultipleAuditParentsTest.java @@ -3,13 +3,13 @@ package org.hibernate.envers.test.integration.superclass.auditparents; import org.hibernate.ejb.Ejb3Configuration; import org.hibernate.envers.Audited; import org.hibernate.envers.test.AbstractEntityTest; -import org.hibernate.envers.test.Priority; import org.hibernate.envers.test.entities.StrIntTestEntity; import org.hibernate.envers.test.tools.TestTools; import org.hibernate.mapping.Column; import org.hibernate.mapping.Table; -import org.junit.Assert; -import org.junit.Test; +import org.testng.Assert; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; import javax.persistence.EntityManager; import javax.persistence.MappedSuperclass; @@ -32,8 +32,7 @@ public class MultipleAuditParentsTest extends AbstractEntityTest { cfg.addAnnotatedClass(StrIntTestEntity.class); } - @Test - @Priority(10) + @BeforeClass(dependsOnMethods = "init") public void initData() { EntityManager em = getEntityManager(); // Revision 1 diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/SingleAuditParentsTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/SingleAuditParentsTest.java index 37c8b9f374..c8a7fcfec2 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/SingleAuditParentsTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/SingleAuditParentsTest.java @@ -3,13 +3,13 @@ package org.hibernate.envers.test.integration.superclass.auditparents; import org.hibernate.ejb.Ejb3Configuration; import org.hibernate.envers.Audited; import org.hibernate.envers.test.AbstractEntityTest; -import org.hibernate.envers.test.Priority; import org.hibernate.envers.test.entities.StrIntTestEntity; import org.hibernate.envers.test.tools.TestTools; import org.hibernate.mapping.Column; import org.hibernate.mapping.Table; -import org.junit.Assert; -import org.junit.Test; +import org.testng.Assert; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; import javax.persistence.EntityManager; import javax.persistence.MappedSuperclass; @@ -32,8 +32,7 @@ public class SingleAuditParentsTest extends AbstractEntityTest { cfg.addAnnotatedClass(StrIntTestEntity.class); } - @Test - @Priority(10) + @BeforeClass(dependsOnMethods = "init") public void initData() { EntityManager em = getEntityManager(); // Revision 1 diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TotalAuditParentsTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TotalAuditParentsTest.java index 0176ac0b91..5a6f55ea8f 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TotalAuditParentsTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TotalAuditParentsTest.java @@ -3,13 +3,13 @@ package org.hibernate.envers.test.integration.superclass.auditparents; import org.hibernate.ejb.Ejb3Configuration; import org.hibernate.envers.Audited; import org.hibernate.envers.test.AbstractEntityTest; -import org.hibernate.envers.test.Priority; import org.hibernate.envers.test.entities.StrIntTestEntity; import org.hibernate.envers.test.tools.TestTools; import org.hibernate.mapping.Column; import org.hibernate.mapping.Table; -import org.junit.Assert; -import org.junit.Test; +import org.testng.Assert; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; import javax.persistence.EntityManager; import java.util.Set; @@ -33,8 +33,7 @@ public class TotalAuditParentsTest extends AbstractEntityTest { cfg.addAnnotatedClass(BabyCompleteEntity.class); } - @Test - @Priority(10) + @BeforeClass(dependsOnMethods = "init") public void initData() { EntityManager em = getEntityManager(); // Revision 1 diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TransitiveAuditParentsTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TransitiveAuditParentsTest.java index 9cfa82d7de..3d8efc3041 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TransitiveAuditParentsTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/superclass/auditparents/TransitiveAuditParentsTest.java @@ -3,12 +3,12 @@ package org.hibernate.envers.test.integration.superclass.auditparents; import org.hibernate.ejb.Ejb3Configuration; import org.hibernate.envers.Audited; import org.hibernate.envers.test.AbstractEntityTest; -import org.hibernate.envers.test.Priority; import org.hibernate.envers.test.tools.TestTools; import org.hibernate.mapping.Column; import org.hibernate.mapping.Table; -import org.junit.Assert; -import org.junit.Test; +import org.testng.Assert; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; import javax.persistence.EntityManager; import java.util.Set; @@ -30,8 +30,7 @@ public class TransitiveAuditParentsTest extends AbstractEntityTest { cfg.addAnnotatedClass(ExplicitTransitiveChildEntity.class); } - @Test - @Priority(10) + @BeforeClass(dependsOnMethods = "init") public void initData() { EntityManager em = getEntityManager();