Skip to content

Commit

Permalink
HSEARCH-4072 Speed up ValidationUtilComponentIT
Browse files Browse the repository at this point in the history
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
  • Loading branch information
yrodiere authored and fax4ever committed Nov 9, 2020
1 parent 30415a1 commit 8515ec2
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -19,8 +19,8 @@
import org.hibernate.search.integrationtest.batch.jsr352.util.PersistenceUnitTestUtil;
import org.hibernate.search.util.common.SearchException;

import org.junit.After;
import org.junit.Before;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

/**
Expand All @@ -32,15 +32,15 @@ public class ValidationUtilComponentIT {

private static final String EMF_SCOPE = "persistence-unit-name";

private EntityManagerFactory emf;
private static EntityManagerFactory emf;

@Before
public void setUp() throws Exception {
@BeforeClass
public static void setUp() {
emf = Persistence.createEntityManagerFactory( PERSISTENCE_UNIT_NAME );
}

@After
public void tearDown() throws Exception {
@AfterClass
public static void tearDown() {
if ( emf != null ) {
emf.close();
emf = null;
Expand Down

0 comments on commit 8515ec2

Please sign in to comment.