HHH-6014: The flush mode must be set before all test methods

This commit is contained in:
adamw 2011-04-01 23:16:01 +02:00
parent 0b844b609b
commit 3b83b6fd54
1 changed files with 2 additions and 4 deletions

View File

@ -27,9 +27,8 @@ 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;
import org.junit.Before;
import javax.persistence.EntityManager;
import java.io.IOException;
@ -59,8 +58,7 @@ public abstract class AbstractFlushTest extends AbstractEntityTest {
throw new RuntimeException("Invalid entity manager");
}
@Test
@Priority(20)
@Before
public void initFlush() throws IOException {
Session session = getSession(getEntityManager());
session.setFlushMode(getFlushMode());