use of org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.IntegerType in project jbosstools-hibernate by jbosstools.
the class TypeFacadeTest method testGetPrimitiveClass.
// TODO JBIDE-28154: Investigate failure
@Disabled
@Test
public void testGetPrimitiveClass() {
IType typeFacade = null;
ClassType classType = new ClassType();
typeFacade = new TypeFacadeImpl(FACADE_FACTORY, classType) {
};
assertNull(typeFacade.getPrimitiveClass());
IntegerType integerType = new IntegerType();
typeFacade = new TypeFacadeImpl(FACADE_FACTORY, integerType) {
};
assertEquals(int.class, typeFacade.getPrimitiveClass());
}
use of org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.IntegerType in project jbosstools-hibernate by jbosstools.
the class TypeFacadeTest method testIsInstanceOfPrimitiveType.
// TODO JBIDE-28154: Investigate failure
@Disabled
@Test
public void testIsInstanceOfPrimitiveType() {
IType typeFacade = null;
ClassType classType = new ClassType();
typeFacade = new TypeFacadeImpl(FACADE_FACTORY, classType) {
};
assertFalse(typeFacade.isInstanceOfPrimitiveType());
StringType stringType = new StringType();
typeFacade = new TypeFacadeImpl(FACADE_FACTORY, stringType) {
};
assertFalse(typeFacade.isInstanceOfPrimitiveType());
IntegerType integerType = new IntegerType();
typeFacade = new TypeFacadeImpl(FACADE_FACTORY, integerType) {
};
assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
use of org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.IntegerType in project jbosstools-hibernate by jbosstools.
the class TypeFacadeTest method testIsIntegerType.
@Test
public void testIsIntegerType() {
IType typeFacade = null;
ClassType classType = new ClassType();
typeFacade = new TypeFacadeImpl(FACADE_FACTORY, classType) {
};
assertFalse(typeFacade.isIntegerType());
IntegerType integerType = new IntegerType();
typeFacade = new TypeFacadeImpl(FACADE_FACTORY, integerType) {
};
assertTrue(typeFacade.isIntegerType());
}
Aggregations