Skip to content

Commit

Permalink
HHH-6014: Adding @priority(10) to all initData methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Apr 1, 2011
1 parent 9165b0c commit 0b844b6
Show file tree
Hide file tree
Showing 169 changed files with 339 additions and 0 deletions.
Expand Up @@ -26,6 +26,7 @@

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;
Expand All @@ -42,6 +43,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();
Expand Down
Expand Up @@ -2,6 +2,7 @@

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;
Expand All @@ -17,6 +18,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -41,6 +42,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -41,6 +42,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();
Expand Down
Expand Up @@ -26,6 +26,7 @@
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;
Expand All @@ -43,6 +44,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -43,6 +44,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -41,6 +42,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -43,6 +44,8 @@ public void configure(Ejb3Configuration cfg) {
}

@Test

@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();
Expand Down
Expand Up @@ -26,6 +26,7 @@
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;
Expand All @@ -42,6 +43,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand Down Expand Up @@ -61,6 +62,7 @@ private void modifyEntity(Integer id, String str, long lng) {
}

@Test
@Priority(10)
public void initData() {
id1 = addNewEntity("x", 1); // rev 1
id2 = addNewEntity(null, 20); // rev 2
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;

Expand All @@ -42,6 +43,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();
em.getTransaction().begin();
Expand Down
Expand Up @@ -26,6 +26,7 @@
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;
Expand Down Expand Up @@ -63,6 +64,7 @@ private void modifyEntity(Integer id, String str, long lng) {
}

@Test
@Priority(10)
public void initData() {
id1 = addNewEntity("x", 1); // rev 1
id2 = addNewEntity("y", 20); // rev 2
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand Down Expand Up @@ -60,6 +61,7 @@ private void modifyEntity(Integer id, String str1, String str2) {
}

@Test
@Priority(10)
public void initData() {
id1 = addNewEntity("x", "a"); // rev 1
modifyEntity(id1, "x", "a"); // no rev
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;

Expand All @@ -42,6 +43,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -48,6 +49,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -47,6 +48,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
BiRefEdEntity ed1 = new BiRefEdEntity(1, "data_ed_1");
BiRefEdEntity ed2 = new BiRefEdEntity(2, "data_ed_2");
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;

Expand All @@ -43,6 +44,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
// Revision 1
EntityManager em = getEntityManager();
Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -45,6 +46,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -45,6 +46,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -45,6 +46,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -45,6 +46,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -49,6 +50,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -25,6 +25,7 @@

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;
Expand All @@ -47,6 +48,7 @@ public void configure(Ejb3Configuration cfg) {
}

@Test
@Priority(10)
public void initData() {
EntityManager em = getEntityManager();

Expand Down
Expand Up @@ -2,6 +2,7 @@

import org.hibernate.MappingException;
import org.hibernate.envers.test.AbstractSessionTest;
import org.hibernate.envers.test.Priority;
import org.junit.Test;

import java.net.URISyntaxException;
Expand All @@ -22,6 +23,7 @@ protected void initMappings() throws MappingException, URISyntaxException {
protected abstract List<Integer> getExpectedPersonRevisions();

@Test
@Priority(10)
public void initData() {
newSessionFactory();

Expand Down

0 comments on commit 0b844b6

Please sign in to comment.