diff --git a/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/CollectionPersisterWrapperFactoryTest.java b/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/CollectionPersisterWrapperFactoryTest.java index c0e998a58c..07534d5b5e 100644 --- a/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/CollectionPersisterWrapperFactoryTest.java +++ b/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/CollectionPersisterWrapperFactoryTest.java @@ -1,6 +1,7 @@ package org.hibernate.tool.orm.jbt.wrp; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.File; import java.io.FileWriter; @@ -13,6 +14,8 @@ import org.hibernate.persister.collection.CollectionPersister; import org.hibernate.tool.orm.jbt.util.MockConnectionProvider; import org.hibernate.tool.orm.jbt.util.MockDialect; +import org.hibernate.tool.orm.jbt.wrp.TypeWrapperFactory.TypeWrapper; +import org.hibernate.type.Type; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; @@ -76,4 +79,10 @@ public void testConstruction() { assertNotNull(wrappedCollectionPersister); } + @Test + public void testGetElementType() { + Type elementType = collectionPersisterWrapper.getElementType(); + assertTrue(elementType instanceof TypeWrapper); + } + }