HHH-5917 Migrated test cases to TestNG
This commit is contained in:
parent
d3e889bac4
commit
5bce79192c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue