HHH-6014: Adding @Priority(10) to all initData methods.

This commit is contained in:
adamw 2011-04-01 23:11:37 +02:00
parent 9165b0c235
commit 0b844b609b
169 changed files with 339 additions and 0 deletions

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.accesstype;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -42,6 +43,7 @@ public class FieldAccessType extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.accesstype;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -17,6 +18,7 @@ public class ImmutableClassAccessType extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.accesstype;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -41,6 +42,7 @@ public class MixedAccessType extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.accesstype;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -41,6 +42,7 @@ public class PropertyAccessType extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.auditReader;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.exception.NotAuditedException;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class AuditReaderAPITest extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class Delete extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -41,6 +42,7 @@ public class GlobalVersioned extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,8 @@ public class ManyOperationsInTransaction extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.exception.NotAuditedException;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -42,6 +43,7 @@ public class NotVersioned extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -61,6 +62,7 @@ public class NullProperties extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
id1 = addNewEntity("x", 1); // rev 1
id2 = addNewEntity(null, 20); // rev 2

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.IntTestEntity;
import org.junit.Test;
@ -42,6 +43,7 @@ public class Simple extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.exception.RevisionDoesNotExistException;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -63,6 +64,7 @@ public class SingleOperationInTransaction extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
id1 = addNewEntity("x", 1); // rev 1
id2 = addNewEntity("y", 20); // rev 2

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -60,6 +61,7 @@ public class UnversionedPropertiesChange extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
id1 = addNewEntity("x", "a"); // rev 1
modifyEntity(id1, "x", "a"); // no rev

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.basic;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.UnversionedEntity;
import org.junit.Test;
@ -42,6 +43,7 @@ public class UnversionedProperty extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.cache;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.onetomany.SetRefEdEntity;
import org.hibernate.envers.test.entities.onetomany.SetRefIngEntity;
import org.junit.Test;
@ -48,6 +49,7 @@ public class OneToManyCache extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.cache;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.integration.onetoone.bidirectional.BiRefEdEntity;
import org.hibernate.envers.test.integration.onetoone.bidirectional.BiRefIngEntity;
import org.junit.Test;
@ -47,6 +48,7 @@ public class OneToOneCache extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
BiRefEdEntity ed1 = new BiRefEdEntity(1, "data_ed_1");
BiRefEdEntity ed2 = new BiRefEdEntity(2, "data_ed_2");

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.cache;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.IntTestEntity;
import org.junit.Test;
@ -43,6 +44,7 @@ public class QueryCache extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.collection;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.collection.EnumSetEntity;
import org.hibernate.envers.test.entities.collection.EnumSetEntity.E1;
import org.hibernate.envers.test.entities.collection.EnumSetEntity.E2;
@ -45,6 +46,7 @@ public class EnumSet extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.collection;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.collection.StringListEntity;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -45,6 +46,7 @@ public class StringList extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.collection;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.collection.StringMapEntity;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -45,6 +46,7 @@ public class StringMap extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.collection;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.collection.StringSetEntity;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -45,6 +46,7 @@ public class StringSet extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.collection.mapkey;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.components.Component1;
import org.hibernate.envers.test.entities.components.Component2;
import org.hibernate.envers.test.entities.components.ComponentTestEntity;
@ -49,6 +50,7 @@ public class ComponentMapKey extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.collection.mapkey;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class IdMapKey extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.collection.norevision;
import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import java.net.URISyntaxException;
@ -22,6 +23,7 @@ public abstract class AbstractCollectionChangeTest extends AbstractSessionTest {
protected abstract List<Integer> getExpectedPersonRevisions();
@Test
@Priority(10)
public void initData() {
newSessionFactory();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.components;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.components.Component1;
import org.hibernate.envers.test.entities.components.Component2;
import org.hibernate.envers.test.entities.components.ComponentTestEntity;
@ -47,6 +48,7 @@ public class Components extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.components;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.components.DefaultValueComponent1;
import org.hibernate.envers.test.entities.components.DefaultValueComponent2;
import org.hibernate.envers.test.entities.components.DefaultValueComponentTestEntity;
@ -61,6 +62,7 @@ public class DefaultValueComponents extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.components.collections;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.components.Component1;
import org.hibernate.envers.test.entities.components.ComponentSetTestEntity;
import org.junit.Ignore;
@ -47,6 +48,7 @@ public class CollectionOfComponents extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.components.relations;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.components.relations.ManyToOneComponent;
import org.hibernate.envers.test.entities.components.relations.ManyToOneComponentTestEntity;
@ -47,6 +48,7 @@ public class ManyToOneInComponent extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.components.relations;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.UnversionedStrTestEntity;
import org.hibernate.envers.test.entities.components.relations.NotAuditedManyToOneComponent;
import org.hibernate.envers.test.entities.components.relations.NotAuditedManyToOneComponentTestEntity;
@ -45,6 +46,7 @@ public class NotAuditedManyToOneInComponent extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// No revision
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.components.relations;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.components.relations.OneToManyComponent;
import org.hibernate.envers.test.entities.components.relations.OneToManyComponentTestEntity;
@ -47,6 +48,7 @@ public class OneToManyInComponent extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.customtype;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.customtype.Component;
import org.hibernate.envers.test.entities.customtype.CompositeCustomTypeEntity;
import org.junit.Test;
@ -43,6 +44,7 @@ public class CompositeCustom extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.customtype;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.customtype.ParametrizedCustomTypeEntity;
import org.junit.Test;
@ -42,6 +43,7 @@ public class ParametrizedCustom extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.data;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -42,6 +43,7 @@ public class Dates extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.data;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -41,6 +42,7 @@ public class Enums extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.data;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -41,6 +42,7 @@ public class Lobs extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.data;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -41,6 +42,7 @@ public class Serializables extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.entityNames.auditedEntity;
import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractOneSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import java.io.File;
@ -32,6 +33,7 @@ public class ReadEntityWhitEntityNameTest extends AbstractOneSessionTest{
@Test
@Priority(10)
public void initData() {
initializeSession();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.entityNames.manyToManyAudited;
import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractOneSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import java.io.File;
@ -34,6 +35,7 @@ public class ReadEntityWithAuditedManyToManyTest extends AbstractOneSessionTest{
@Test
@Priority(10)
public void initData() {
initializeSession();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.entityNames.oneToManyAudited;
import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractOneSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import java.io.File;
@ -34,6 +35,7 @@ public class ReadEntityWithAuditedCollectionTest extends AbstractOneSessionTest{
@Test
@Priority(10)
public void initData() {
initializeSession();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.entityNames.oneToManyNotAudited;
import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractOneSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import java.io.File;
@ -33,6 +34,7 @@ public class ReadEntityWithAuditedCollectionTest extends AbstractOneSessionTest{
@Test
@Priority(10)
public void initData() {
initializeSession();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.entityNames.singleAssociatedAudite
import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractOneSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import java.io.File;
@ -36,6 +37,7 @@ public class ReadEntityAssociatedAuditedTest extends AbstractOneSessionTest{
@Test
@Priority(10)
public void initData() {
initializeSession();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.entityNames.singleAssociatedNotAud
import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractOneSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import java.io.File;
@ -34,6 +35,7 @@ public class ReadEntityAssociatedNotAuditedTest extends AbstractOneSessionTest {
}
@Test
@Priority(10)
public void initData() {
initializeSession();

View File

@ -27,6 +27,7 @@ import org.hibernate.FlushMode;
import org.hibernate.Session;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.junit.Test;
@ -59,6 +60,7 @@ public abstract class AbstractFlushTest extends AbstractEntityTest {
}
@Test
@Priority(20)
public void initFlush() throws IOException {
Session session = getSession(getEntityManager());
session.setFlushMode(getFlushMode());

View File

@ -24,6 +24,7 @@
package org.hibernate.envers.test.integration.flush;
import org.hibernate.FlushMode;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.junit.Test;
@ -41,6 +42,7 @@ public class DoubleFlushAddDel extends AbstractFlushTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.flush;
import org.hibernate.FlushMode;
import org.hibernate.envers.RevisionType;
import org.hibernate.envers.query.AuditEntity;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.junit.Test;
@ -46,6 +47,7 @@ public class DoubleFlushAddMod extends AbstractFlushTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.flush;
import org.hibernate.FlushMode;
import org.hibernate.envers.RevisionType;
import org.hibernate.envers.query.AuditEntity;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.junit.Test;
@ -46,6 +47,7 @@ public class DoubleFlushModDel extends AbstractFlushTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.flush;
import org.hibernate.FlushMode;
import org.hibernate.envers.RevisionType;
import org.hibernate.envers.query.AuditEntity;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.junit.Test;
@ -46,6 +47,7 @@ public class DoubleFlushModMod extends AbstractFlushTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.flush;
import org.hibernate.FlushMode;
import org.hibernate.envers.RevisionType;
import org.hibernate.envers.query.AuditEntity;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.junit.Test;
@ -46,6 +47,7 @@ public class ManualFlush extends AbstractFlushTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.hashcode;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -44,6 +45,7 @@ public class ChangingHashcode extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.ids;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.ids.CompositeDateIdTestEntity;
import org.hibernate.envers.test.entities.ids.DateEmbId;
import org.junit.Test;
@ -44,6 +45,7 @@ public class CompositeDateId extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.ids;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.ids.*;
import org.junit.Test;
@ -49,6 +50,7 @@ public class CompositeIds extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
id1 = new EmbId(1, 2);
id2 = new EmbId(10, 20);

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.ids;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.ids.DateIdTestEntity;
import org.junit.Test;
@ -43,6 +44,7 @@ public class DateId extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.ids;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.UnversionedStrTestEntity;
import org.hibernate.envers.test.entities.ids.ManyToOneIdNotAuditedTestEntity;
@ -25,6 +26,7 @@ public class ManyToOneIdNotAudited extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class ChildAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class ChildNullAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class ParentAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined.childrelation;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class ChildReferencing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined.emptychild;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class EmptyChildAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined.notownedrelatio
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class NotOwnedBidirectional extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined.primarykeyjoin;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.integration.inheritance.joined.ParentEntity;
import org.hibernate.mapping.Column;
import org.junit.Assert;
@ -46,6 +47,7 @@ public class ChildPrimaryKeyJoinAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined.relation;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class PolymorphicCollection extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.joined.relation.unidir
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -47,6 +48,7 @@ public class UnidirectionalDoubleAbstract extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.inheritance.single;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -42,6 +43,7 @@ public class ChildAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.inheritance.single;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -42,6 +43,7 @@ public class ParentAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.inheritance.single.childrelation;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -46,6 +47,7 @@ public class ChildReferencing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.single.notownedrelatio
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class NotOwnedBidirectional extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.inheritance.single.relation;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -46,6 +47,7 @@ public class PolymorphicCollection extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.tableperclass;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class ChildAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.tableperclass;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -43,6 +44,7 @@ public class ParentAuditing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.tableperclass.childrel
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class ChildReferencing extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.tableperclass.notowned
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class NotOwnedBidirectional extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.inheritance.tableperclass.relation
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.tools.TestTools;
import org.junit.Test;
@ -47,6 +48,7 @@ public class PolymorphicCollection extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.interfaces.components;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -41,6 +42,7 @@ public class InterfacesComponents extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.interfaces.hbm.allAudited;
import org.hibernate.envers.exception.NotAuditedException;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Assert;
import org.junit.Test;
@ -17,6 +18,7 @@ public abstract class AbstractAllAuditedTest extends AbstractEntityTest {
private long nai_id;
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.interfaces.hbm.propertiesAudited;
import org.hibernate.envers.exception.NotAuditedException;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -17,6 +18,7 @@ public abstract class AbstractPropertiesAuditedTest extends AbstractEntityTest {
private static int NUMERITO = 555;
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.interfaces.hbm.propertiesAudited2;
import org.hibernate.envers.exception.NotAuditedException;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -17,6 +18,7 @@ public abstract class AbstractPropertiesAudited2Test extends AbstractEntityTest
private static int NUMERITO = 555;
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.interfaces.relation;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -45,6 +46,7 @@ public class InterfacesRelation extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.jta;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.IntTestEntity;
import org.junit.Test;
@ -24,6 +25,7 @@ public class JtaTransaction extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() throws Exception {
tm.begin();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.manytomany.ListOwnedEntity;
import org.hibernate.envers.test.entities.manytomany.ListOwningEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -51,6 +52,7 @@ public class BasicList extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.manytomany.MapOwnedEntity;
import org.hibernate.envers.test.entities.manytomany.MapOwningEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -51,6 +52,7 @@ public class BasicMap extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.manytomany.SetOwnedEntity;
import org.hibernate.envers.test.entities.manytomany.SetOwningEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -51,6 +52,7 @@ public class BasicSet extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.IntNoAutoIdTestEntity;
import org.hibernate.envers.test.entities.manytomany.WhereJoinTableEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -53,6 +54,7 @@ public class BasicWhereJoinTable extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany.biowned;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.manytomany.biowned.ListBiowning1Entity;
import org.hibernate.envers.test.entities.manytomany.biowned.ListBiowning2Entity;
import org.hibernate.envers.test.tools.TestTools;
@ -50,6 +51,7 @@ public class BasicBiowned extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.manytomany.inverseToSuperclass;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -31,6 +32,7 @@ public class ManyToManyInverseToSuperclassTest extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.manytomany.sametable;
import org.hibernate.Session;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.manytomany.sametable.Child1Entity;
import org.hibernate.envers.test.entities.manytomany.sametable.Child2Entity;
import org.hibernate.envers.test.entities.manytomany.sametable.ParentEntity;
@ -54,6 +55,7 @@ public class BasicSametable extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany.ternary;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.IntTestEntity;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -53,6 +54,7 @@ public class TernaryMap extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany.ternary;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.IntTestEntity;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -53,6 +54,7 @@ public class TernaryMapFlush extends AbstractEntityTest {
}
@Test
@Priority(10)
public void createData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany.unidirectional;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.manytomany.unidirectional.ListUniEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -51,6 +52,7 @@ public class BasicUniList extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany.unidirectional;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.manytomany.unidirectional.MapUniEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -49,6 +50,7 @@ public class BasicUniMap extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany.unidirectional;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.entities.manytomany.unidirectional.SetUniEntity;
import org.hibernate.envers.test.tools.TestTools;
@ -51,6 +52,7 @@ public class BasicUniSet extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -2,6 +2,7 @@ package org.hibernate.envers.test.integration.manytomany.unidirectional;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.UnversionedStrTestEntity;
import org.hibernate.envers.test.entities.manytomany.unidirectional.M2MIndexedListTargetNotAuditedEntity;
import org.junit.Test;
@ -33,6 +34,7 @@ public class M2MIndexedListNotAuditedTarget extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.manytomany.unidirectional;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.UnversionedStrTestEntity;
import org.hibernate.envers.test.entities.manytomany.unidirectional.M2MTargetNotAuditedEntity;
import org.junit.Test;
@ -54,6 +55,7 @@ public class M2MRelationNotAuditedTarget extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -26,6 +26,7 @@ package org.hibernate.envers.test.integration.manytoone.unidirectional;
import org.hibernate.Hibernate;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.UnversionedStrTestEntity;
import org.hibernate.envers.test.entities.manytoone.unidirectional.TargetNotAuditedEntity;
import org.hibernate.proxy.HibernateProxy;
@ -52,6 +53,7 @@ public class RelationNotAuditedTarget extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.naming;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;
import javax.persistence.EntityManager;
@ -42,6 +43,7 @@ public class BasicNaming extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
NamingTestEntity1 nte1 = new NamingTestEntity1("data1");
NamingTestEntity1 nte2 = new NamingTestEntity1("data2");

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.naming;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.mapping.Column;
import org.junit.Test;
@ -46,6 +47,7 @@ public class JoinNaming extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
JoinNamingRefEdEntity ed1 = new JoinNamingRefEdEntity("data1");
JoinNamingRefEdEntity ed2 = new JoinNamingRefEdEntity("data2");

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.naming;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.tools.TestTools;
import org.hibernate.mapping.Column;
@ -48,6 +49,7 @@ public class OneToManyUnidirectionalNaming extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
DetachedNamingTestEntity uni1 = new DetachedNamingTestEntity(1, "data1");
StrTestEntity str1 = new StrTestEntity("str1");

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.naming;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.StrTestEntity;
import org.hibernate.envers.test.tools.TestTools;
import org.hibernate.mapping.Column;
@ -48,6 +49,7 @@ public class VersionsJoinTableNaming extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
VersionsJoinTableTestEntity uni1 = new VersionsJoinTableTestEntity(1, "data1");
StrTestEntity str1 = new StrTestEntity("str1");

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.naming;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.envers.test.entities.components.Component1;
import org.hibernate.mapping.Column;
import org.hibernate.mapping.PersistentClass;
@ -55,6 +56,7 @@ public class VersionsJoinTableRangeComponentNamingTest extends
}
@Test
@Priority(10)
public void initData() {
// Revision 1

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.naming.ids;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.mapping.Column;
import org.junit.Test;
@ -46,6 +47,7 @@ public class JoinEmbIdNaming extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
ed_id1 = new EmbIdNaming(10, 20);
ed_id2 = new EmbIdNaming(11, 21);

View File

@ -25,6 +25,7 @@ package org.hibernate.envers.test.integration.naming.ids;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.envers.test.AbstractEntityTest;
import org.hibernate.envers.test.Priority;
import org.hibernate.mapping.Column;
import org.junit.Test;
@ -46,6 +47,7 @@ public class JoinMulIdNaming extends AbstractEntityTest {
}
@Test
@Priority(10)
public void initData() {
ed_id1 = new MulIdNaming(10, 20);
ed_id2 = new MulIdNaming(11, 21);

Some files were not shown because too many files have changed in this diff Show More