HHH-6014: The flush mode must be set before all test methods
This commit is contained in:
parent
0b844b609b
commit
3b83b6fd54
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue