Fix StaticMetadataTest

This commit is contained in:
Christian Beikov 2021-03-08 15:20:02 +01:00
parent 69564cd7c8
commit 4a1a084def
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import javax.persistence.metamodel.EmbeddableType;
import javax.persistence.metamodel.PluralAttribute;
import javax.persistence.metamodel.Type;
import org.hibernate.testing.orm.junit.EntityManagerFactoryScope;
import org.hibernate.testing.orm.junit.Jpa;
import org.junit.jupiter.api.Test;
@ -42,7 +43,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
public class StaticMetadataTest {
@Test
public void testInjections() {
public void testInjections(EntityManagerFactoryScope scope) {
// Make sure the entity manager factory is properly initialized
scope.getEntityManagerFactory();
// Address (embeddable)
assertNotNull( Address_.address1 );
assertNotNull( Address_.address2 );