Skip to content

Commit

Permalink
HBX-2390: Create a JBoss Tools adaptation layer in Hibernate Tools
Browse files Browse the repository at this point in the history
  - Add new test case 'org.hibernate.tool.orm.jbt.wrp.CollectionPersisterWrapperFactoryTest#testGetElementType()'

Signed-off-by: Koen Aers <[email protected]>
  • Loading branch information
koentsje committed Jun 30, 2023
1 parent 6770197 commit 703ff2b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -76,4 +79,10 @@ public void testConstruction() {
assertNotNull(wrappedCollectionPersister);
}

@Test
public void testGetElementType() {
Type elementType = collectionPersisterWrapper.getElementType();
assertTrue(elementType instanceof TypeWrapper);
}

}

0 comments on commit 703ff2b

Please sign in to comment.