use of org.jboss.tools.hibernate.runtime.spi.IType in project jbosstools-hibernate by jbosstools.
the class TypeFactoryFacadeTest method testGetTextType.
@Test
public void testGetTextType() {
Type typeTarget = StandardBasicTypes.TEXT;
IType typeFacade = typeFactoryFacade.getTextType();
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 testGetTimestampType.
@Test
public void testGetTimestampType() {
Type typeTarget = StandardBasicTypes.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 testGetFloatType.
@Test
public void testGetFloatType() {
Type typeTarget = StandardBasicTypes.FLOAT;
IType typeFacade = typeFactoryFacade.getFloatType();
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.
@Test
public void testGetTrueFalseType() {
Type typeTarget = StandardBasicTypes.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 ValueFacadeTest method testGetType.
@Test
public void testGetType() {
SimpleValue valueTarget = new SimpleValue(new Configuration().createMappings());
valueTarget.setTypeName("java.lang.Integer");
valueFacade = FACADE_FACTORY.createValue(valueTarget);
IType typeFacade = valueFacade.getType();
Assert.assertEquals("org.hibernate.type.IntegerType", ((IFacade) typeFacade).getTarget().getClass().getName());
}
Aggregations