use of org.hibernate.type.ArrayType in project jbosstools-hibernate by jbosstools.
the class TypeFacadeTest method testGetReturnedClass.
@Test
public void testGetReturnedClass() {
IType typeFacade = null;
ClassType classType = new ClassType();
typeFacade = FACADE_FACTORY.createType(classType);
Assert.assertEquals(Class.class, typeFacade.getReturnedClass());
ArrayType arrayType = new ArrayType(null, null, null, String.class);
typeFacade = FACADE_FACTORY.createType(arrayType);
Assert.assertEquals(String[].class, typeFacade.getReturnedClass());
}