use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.
the class TypeFacadeTest method testIsInstanceOfPrimitiveType.
@Test
public void testIsInstanceOfPrimitiveType() {
IType typeFacade = null;
ClassType classType = new ClassType();
typeFacade = FACADE_FACTORY.createType(classType);
Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
StringType stringType = new StringType();
typeFacade = FACADE_FACTORY.createType(stringType);
Assert.assertFalse(typeFacade.isInstanceOfPrimitiveType());
IntegerType integerType = new IntegerType();
typeFacade = FACADE_FACTORY.createType(integerType);
Assert.assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.
the class TypeFactoryFacadeTest method testGetTimestampType.
@SuppressWarnings("deprecation")
@Test
public void testGetTimestampType() {
Type typeTarget = Hibernate.TIMESTAMP;
IType typeFacade = typeFactoryFacade.getTimestampType();
Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.
the class TypeFactoryFacadeTest method testGetCharacterType.
@SuppressWarnings("deprecation")
@Test
public void testGetCharacterType() {
Type typeTarget = Hibernate.CHARACTER;
IType typeFacade = typeFactoryFacade.getCharacterType();
Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.
the class TypeFactoryFacadeTest method testGetTrueFalseType.
@SuppressWarnings("deprecation")
@Test
public void testGetTrueFalseType() {
Type typeTarget = Hibernate.TRUE_FALSE;
IType typeFacade = typeFactoryFacade.getTrueFalseType();
Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.
the class TypeFactoryFacadeTest method testGetBigDecimalType.
@SuppressWarnings("deprecation")
@Test
public void testGetBigDecimalType() {
Type typeTarget = Hibernate.BIG_DECIMAL;
IType typeFacade = typeFactoryFacade.getBigDecimalType();
Assert.assertSame(typeTarget, ((IFacade) typeFacade).getTarget());
}
Aggregations